section.order {
	display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}
section.order-show {
	display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}
/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none; /* по умолчанию скрыто */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-window {
    max-width: 480px;
    width: 100%;
	display: grid;
  	gap: 12px;
}

.modal-window h3 {
	margin: 0 0 6px;
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: #0B0F17;
}

.modal-window table {
	width: 100% !important;
}

.modal-window p {
	margin: 0 0 18px;
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(11, 15, 23, .7);
}

/* используем стили карточки регистрации, слегка дорабатывая */
.modal-card {
    position: relative;
    padding: 2.5rem 2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* кнопка закрытия (крестик) */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
}

/* поле ввода */
.modal-field {
    margin: 1.5rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-field label {
    font-size: 0.95rem;
    font-weight: 500;
}

.modal-field input {
	height: 42px;
	border-radius: 12px;
	padding: 0 14px;
	border: 1px solid rgba(11,15,23,.14);
	background: #fff;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 13px;
	outline: none;
	width: 100%;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-input:focus {
    border-color: #ff4b4b; /* или твой акцентный цвет */
}

.modal-window .modal-close {
	color: #A29E9E;
}

.modal-window .modal-close:hover {
	color: #000;
}

.modal-window .modal-close-btn {
	width: 100%;
	background: #000;
}

.modal-window .modal-close-btn:hover {
	background: #A29E9E;
}

/* кнопки внизу */
.modal-actions {
    margin-top: 1rem;
}

/* запрещаем прокрутку страницы, когда модалка открыта */
body.modal-open {
    overflow: hidden;
}

.nice-alert {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.45);
    z-index: 99999;
}

.nice-alert-window {
    background: #fff;
    padding: 24px 28px;
    border-radius: 14px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
    animation: fadeIn 0.25s ease-out;
}

.nice-alert-btn {
    margin-top: 16px;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
}

.card ul {
    list-style-type: none !important;
}

.nice-alert-btn:hover {
    background: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}