/* ============================================
   Alonak Booking - Modal & Form Styles
   ============================================ */
@font-face {
	font-family: est;
	src: url(../../admin/css/fonts/est.woff2) format("woff2");
}  
.ab-modal, 
.ab-modal [type="button"],
.ab-modal td,
.ab-modal tr,
.ab-modal th,
.ab-modal li,
.ab-modal h1, 
.ab-modal h2,
.ab-modal h3,
.ab-modal h4,
.ab-modal h5,
.ab-modal h6,
.ab-modal p,
.ab-modal span,
.ab-modal label {
	font-family: est;
}
/* ─── Modal Container ───────────────────────── */
.ab-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Backdrop ──────────────────────────────── */
.ab-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

/* ─── Modal Box ─────────────────────────────── */
.ab-modal__box {
    position: relative;
    background: #fff;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: abModalIn 0.2s ease-out;
    direction: rtl;
	padding: 20px;
}

@keyframes abModalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ─── Close Button ──────────────────────────── */
.ab-modal__close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.2s;
    z-index: 10;
    font-family: none;
}

.ab-modal__close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* ─── Title ─────────────────────────────────── */
.ab-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    padding: 24px 24px 16px;
    margin: 0;
    text-align: center;
}

/* ─── Summary Section ───────────────────────── */
.ab-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    background: #f9fafb;
    margin: 0;
    border: 1px solid #e5ebe7;
	border-radius: 10px;
}

.ab-summary__item {
    text-align: center;
}

.ab-summary__item span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.ab-summary__item strong {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.ab-summary__sep {
    font-size: 18px;
    color: #9ca3af;
}

/* ─── Form ──────────────────────────────────── */
.ab-form {
    padding: 15px 0;
	display: flex;
    flex-wrap: wrap;
}

.ab-field {
    margin-bottom: 20px;
	width: 50%;
	padding: 0 5px;
}

.ab-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.ab-req {
    color: #ef4444;
}
.ab-choice-list {
    display: flex;
    gap: 10px;
}
/* ─── Inputs ────────────────────────────────── */
.ab-input, .ab-textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
    background: #fff;
    font-family: inherit !important;
    box-sizing: border-box !important;
}
.ab-input {
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
}
.ab-textarea {
	height: inherit !important;
    min-height: inherit !important;
    max-height: inherit !important;
}
.ab-input:focus,
.ab-textarea:focus {
    outline: none !important;
    border-color: var(--al-green) !important;
    box-shadow: 0 0 0 3px rgba(59, 246, 134, 0.1) !important;
}

.ab-textarea {
    resize: vertical;
    min-height: 70px;
}

/* ─── Gateway Options ───────────────────────── */
.ab-gateway-opts {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.ab-gw-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.ab-gw-card.active {
    border-color: var(--al-green);
    background: #effff2;
}

.ab-gw-card input {
    display: none;
}

.ab-gw-card span {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.ab-gw-card.active span {
    color: var(--al-green);
}

/* ─── Error Box ─────────────────────────────── */
.ab-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 13px;
    text-align: center;
}

/* ─── Submit Button ─────────────────────────── */
.ab-submit-btn {
    width: 100%;
    background: var(--al-green);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    opacity: 0.9;
}

.ab-submit-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.ab-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* ─── WooCommerce Only Mode ─────────────────── */
.ab-form-woo {
    padding: 0;
}

.ab-woo-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
	width: 100%;
}

.ab-woo-notice p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #166534;
}

.ab-woo-notice .ab-woo-sub {
    font-size: 13px;
    color: #4b5563;
    margin-top: 6px;
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 560px) {
    .ab-modal__box {
        width: 95%;
        border-radius: 24px;
    }

    .ab-summary {
        padding: 16px;
    }

    .ab-form {
        padding: 20px;
    }

    .ab-gateway-opts {
        flex-direction: column;
        gap: 8px;
    }
}