.rx-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}
.rx-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}
.rx-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 36, 28, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.rx-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(186, 128, 92, 0.3) transparent;
    background: #ffffff;
    border-radius: 26px;
    border: 1px solid rgba(186, 128, 92, 0.35);
    box-shadow: 0 28px 70px rgba(9, 36, 28, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6);
    transform: scale(0.92) translateY(24px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rx-modal-backdrop.is-open .rx-modal-dialog {
    transform: scale(1) translateY(0);
}

.rx-modal-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(9, 36, 28, 0.06);
    border: 1px solid rgba(144, 113, 85, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a3e37;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.22s ease;
    z-index: 10;
}
html[dir="ltr"] .rx-modal-close-btn {
    left: auto;
    right: 20px;
}
.rx-modal-close-btn:hover {
    background: #ba805c;
    color: #ffffff;
    border-color: #ba805c;
    transform: rotate(90deg) scale(1.08);
}

.rx-modal-content-wrap {
    padding: 34px 36px 36px;
}

.rx-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.rx-modal-emblem {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #09241c 0%, #173b30 100%);
    border: 1px solid rgba(186, 128, 92, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e9b395;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(9, 36, 28, 0.2);
}
.rx-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #8c5b3c;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.rx-modal-title {
    font-family: 'Thmanyah Sans', var(--font-primary), sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #09241c;
    line-height: 1.25;
    margin: 0;
}

.rx-modal-service-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(9, 36, 28, 0.05) 0%, rgba(186, 128, 92, 0.08) 100%);
    border: 1px solid rgba(186, 128, 92, 0.25);
    border-radius: 14px;
    margin-bottom: 24px;
}
.rx-mss-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #09241c;
}
.rx-mss-item i {
    color: #ba805c;
}
.rx-mss-divider {
    width: 1px;
    height: 20px;
    background: rgba(144, 113, 85, 0.2);
}

.rx-form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 22px;
}
.rx-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2a2019;
    margin-bottom: 10px;
}
.rx-form-label i {
    color: #ba805c;
    font-size: 0.95rem;
}

.rx-specialist-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rx-chip-radio {
    cursor: pointer;
    position: relative;
}
.rx-chip-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.rx-chip-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.18);
    font-size: 0.84rem;
    font-weight: 600;
    color: #4a3e37;
    transition: all 0.22s ease;
    text-align: center;
}
.rx-chip-radio input:checked + .rx-chip-pill {
    background: rgba(9, 36, 28, 0.06);
    border-color: #09241c;
    color: #09241c;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(9, 36, 28, 0.08);
}
.rx-chip-radio input:checked + .rx-chip-pill i {
    color: #ba805c;
}

.rx-date-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.rx-date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 8px;
    border-radius: 12px;
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.18);
    cursor: pointer;
    transition: all 0.2s ease;
}
.rx-date-btn .rx-db-day {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2a2019;
}
.rx-date-btn .rx-db-date {
    font-size: 0.72rem;
    color: #79685e;
}
.rx-date-btn:hover {
    border-color: #ba805c;
    background: #ffffff;
}
.rx-date-btn.active {
    background: #09241c;
    border-color: #09241c;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(9, 36, 28, 0.25);
}
.rx-date-btn.active .rx-db-day {
    color: #ffffff;
}
.rx-date-btn.active .rx-db-date {
    color: #e9b395;
}

.rx-time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.rx-time-pill {
    padding: 9px 6px;
    border-radius: 10px;
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.18);
    font-size: 0.82rem;
    font-weight: 700;
    color: #4a3e37;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}
.rx-time-pill:hover {
    border-color: #ba805c;
    background: #ffffff;
}
.rx-time-pill.active {
    background: linear-gradient(135deg, #ba805c 0%, #a96a45 100%);
    color: #ffffff;
    border-color: #ba805c;
    box-shadow: 0 4px 12px rgba(186, 128, 92, 0.35);
}

.rx-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.rx-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rx-input-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #3b3028;
}
.rx-input-label .req {
    color: #ba805c;
}
.rx-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.rx-input-icon {
    position: absolute;
    right: 14px;
    color: #9e8e84;
    font-size: 0.9rem;
    pointer-events: none;
}
html[dir="ltr"] .rx-input-icon {
    right: auto;
    left: 14px;
}
.rx-input {
    width: 100%;
    padding: 12px 38px 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(144, 113, 85, 0.22);
    background: #faf7f4;
    font-family: inherit;
    font-size: 0.9rem;
    color: #2a2019;
    outline: none;
    transition: all 0.22s ease;
}
html[dir="ltr"] .rx-input {
    padding: 12px 14px 12px 38px;
}
.rx-input:focus {
    background: #ffffff;
    border-color: #09241c;
    box-shadow: 0 0 0 3px rgba(9, 36, 28, 0.08);
}
.rx-phone-wrap .rx-country-code {
    position: absolute;
    right: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #55483f;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}
html[dir="ltr"] .rx-phone-wrap .rx-country-code {
    right: auto;
    left: 12px;
}
.rx-phone-input {
    padding-right: 76px;
}
html[dir="ltr"] .rx-phone-input {
    padding-right: 14px;
    padding-left: 76px;
}

.rx-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(144, 113, 85, 0.22);
    background: #faf7f4;
    font-family: inherit;
    font-size: 0.88rem;
    color: #2a2019;
    outline: none;
    resize: none;
    transition: all 0.22s ease;
}
.rx-textarea:focus {
    background: #ffffff;
    border-color: #09241c;
    box-shadow: 0 0 0 3px rgba(9, 36, 28, 0.08);
}

.rx-modal-trust-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(69, 95, 58, 0.05);
    border-radius: 10px;
    margin-bottom: 22px;
}
.rx-mt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #455f3a;
}
.rx-mt-item i {
    font-size: 0.85rem;
}

.rx-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rx-btn-confirm {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #09241c 0%, #184135 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.98rem;
    border: 1px solid rgba(186, 128, 92, 0.35);
    box-shadow: 0 8px 24px rgba(9, 36, 28, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
button.btn-card-book {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.rx-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(9, 36, 28, 0.35);
    background: linear-gradient(135deg, #11382d 0%, #215545 100%);
}
.rx-btn-confirm i {
    color: #e9b395;
    font-size: 1.05rem;
}
.rx-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(186, 128, 92, 0.25), transparent);
    animation: rxShine 3s infinite;
}
@keyframes rxShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
.rx-btn-modal-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 9999px;
    background: rgba(37, 211, 102, 0.09);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #17823c;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.22s ease;
}
.rx-btn-modal-wa:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
    transform: translateY(-1px);
}

.rx-modal-success {
    padding: 48px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rx-success-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}
.rx-success-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(186, 128, 92, 0.2);
    animation: rxPulseRing 2s infinite;
}
@keyframes rxPulseRing {
    0% { transform: scale(0.9); opacity: 0.8; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}
.rx-success-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #09241c 0%, #1f5041 100%);
    border: 2px solid #ba805c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e9b395;
    font-size: 2rem;
    box-shadow: 0 10px 28px rgba(9, 36, 28, 0.3);
}
.rx-success-title {
    font-family: 'Thmanyah Sans', var(--font-primary), sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #09241c;
    margin-bottom: 12px;
}
.rx-success-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #65554b;
    max-width: 480px;
    margin-bottom: 28px;
}
.rx-success-card {
    width: 100%;
    max-width: 480px;
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.18);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    text-align: right;
}
html[dir="ltr"] .rx-success-card {
    text-align: left;
}
.rx-sc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    color: #4a3e37;
}
.rx-sc-row span i {
    color: #ba805c;
    margin-left: 6px;
}
html[dir="ltr"] .rx-sc-row span i {
    margin-left: 0;
    margin-right: 6px;
}
.rx-success-actions {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rx-btn-close-modal {
    padding: 12px 20px;
    border-radius: 9999px;
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.2);
    color: #55483f;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rx-btn-close-modal:hover {
    background: #ffffff;
    border-color: #09241c;
    color: #09241c;
}

@media (max-width: 600px) {
    .rx-modal-content-wrap {
        padding: 24px 20px 28px;
    }
    .rx-modal-header {
        flex-direction: column;
        gap: 10px;
    }
    .rx-form-row-2 {
        grid-template-columns: 1fr;
    }
    .rx-specialist-chips {
        grid-template-columns: 1fr;
    }
    .rx-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   BOOKING WIZARD v2  (step 1: choose / step 2: date+time /
   step 3: details & confirm  -  WhatsApp manual submit)
   ========================================================= */
.rx-wizard-dialog {
    max-width: 760px;
}

/* ---- steps bar ---- */
.rx-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 26px;
}
.rx-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.45;
    transition: opacity 0.25s ease;
}
.rx-step.is-active,
.rx-step.is-done {
    opacity: 1;
}
.rx-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.2);
    color: #4a3e37;
    font-weight: 800;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.rx-step.is-active .rx-step-num {
    background: linear-gradient(135deg, #ba805c 0%, #a96a45 100%);
    color: #ffffff;
    border-color: #ba805c;
    box-shadow: 0 4px 12px rgba(186, 128, 92, 0.35);
}
.rx-step.is-done .rx-step-num {
    background: #09241c;
    color: #e9b395;
    border-color: #09241c;
}
.rx-step-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #2a2019;
    white-space: nowrap;
}
.rx-step-line {
    height: 2px;
    width: 46px;
    border-radius: 2px;
    background: rgba(144, 113, 85, 0.18);
}

/* ---- step sections ---- */
.rx-bstep {
    display: none;
}
.rx-bstep.is-visible {
    display: block;
    animation: rxStepIn 0.35s ease;
}
@keyframes rxStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.rx-shake {
    animation: rxShake 0.4s;
}
@keyframes rxShake {
    0%, 100% { transform: none; }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.rx-step-error {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(186, 128, 92, 0.1);
    border: 1px solid rgba(186, 128, 92, 0.35);
    color: #a34a24;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}
.rx-bstep-head {
    margin-bottom: 16px;
}
.rx-bstep-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Thmanyah Sans', var(--font-primary), sans-serif;
    font-size: 1.06rem;
    font-weight: 800;
    color: #09241c;
    margin: 0 0 4px;
}
.rx-bstep-title i {
    color: #ba805c;
}
.rx-bstep-sub {
    font-size: 0.84rem;
    color: #79685e;
    margin: 0;
}

/* ---- tabs ---- */
.rx-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 5px;
    background: #f5f0eb;
    border-radius: 14px;
    margin-bottom: 16px;
}
.rx-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 10px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: #65554b;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}
.rx-tab i {
    font-size: 0.95rem;
}
.rx-tab.is-active {
    background: #ffffff;
    color: #09241c;
    box-shadow: 0 3px 12px rgba(9, 36, 28, 0.12);
}
.rx-tab.is-active i {
    color: #ba805c;
}
.rx-panel {
    display: none;
}
.rx-panel.is-active {
    display: block;
    animation: rxStepIn 0.3s ease;
}

/* ---- treatment cards ---- */
.rx-treat-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 262px;
    overflow-y: auto;
}
.rx-treat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    border-radius: 14px;
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.16);
    cursor: pointer;
    text-align: start;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
}
.rx-treat-card:hover {
    border-color: #ba805c;
    background: #ffffff;
}
.rx-treat-card.is-selected {
    border-color: #09241c;
    background: rgba(9, 36, 28, 0.04);
    box-shadow: 0 4px 14px rgba(9, 36, 28, 0.1);
}
.rx-treat-thumb {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(9, 36, 28, 0.06) 0%, rgba(186, 128, 92, 0.12) 100%);
    color: #ba805c;
    font-size: 1.15rem;
    border: 1px solid rgba(186, 128, 92, 0.25);
}
.rx-treat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rx-treat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rx-treat-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #2a2019;
    line-height: 1.3;
}
.rx-treat-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    color: #79685e;
    font-weight: 600;
}
.rx-treat-type-tag {
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(69, 95, 58, 0.1);
    color: #455f3a;
}
.rx-tag-offer {
    background: rgba(186, 128, 92, 0.12);
    color: #a34a24;
}
.rx-treat-offer-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ba805c;
}
.rx-treat-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cdbfae;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.rx-treat-card.is-selected .rx-treat-check {
    color: #ba805c;
}
.rx-treat-empty {
    text-align: center;
    color: #79685e;
    font-size: 0.85rem;
    padding: 18px 0;
}

/* ---- selected summary bar ---- */
.rx-sel-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: linear-gradient(135deg, rgba(9, 36, 28, 0.05) 0%, rgba(186, 128, 92, 0.09) 100%);
    border: 1px solid rgba(186, 128, 92, 0.3);
    border-radius: 14px;
    margin-bottom: 20px;
}
.rx-sel-hidden {
    display: none;
}
.rx-sel-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #09241c;
    color: #e9b395;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.rx-sel-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.rx-sel-txt strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: #09241c;
}
.rx-sel-txt span {
    font-size: 0.76rem;
    color: #79685e;
    font-weight: 600;
}
.rx-sel-change {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid rgba(144, 113, 85, 0.25);
    color: #4a3e37;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.rx-sel-change:hover {
    border-color: #09241c;
    color: #09241c;
}

/* ---- calendar ---- */
.rx-cal-card {
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.2);
    border-radius: 16px;
    padding: 14px;
}
.rx-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.rx-cal-nav {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(144, 113, 85, 0.2);
    background: #ffffff;
    color: #2a2019;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rx-cal-nav:hover:not(:disabled) {
    border-color: #09241c;
    color: #09241c;
}
.rx-cal-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.rx-cal-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #09241c;
}
.rx-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.rx-cal-dow {
    text-align: center;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ba805c;
    padding: 5px 0;
}
.rx-cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2a2019;
    font-family: inherit;
    background: #ffffff;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.rx-cal-cell:hover:not(:disabled) {
    border-color: #ba805c;
}
.rx-cal-today {
    box-shadow: inset 0 0 0 1.5px rgba(9, 36, 28, 0.4);
}
.rx-cal-off {
    color: #c9bdb3;
    background: #f1ece6;
    cursor: not-allowed;
}
.rx-cal-blank {
    background: transparent;
}
.rx-cal-cell.is-selected {
    background: #09241c;
    color: #ffffff;
    border-color: #09241c;
}
.rx-cal-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}
.rx-cal-foot-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #79685e;
}
.rx-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}
.rx-dot-avail {
    background: #ffffff;
    border: 1px solid rgba(144, 113, 85, 0.35);
}
.rx-dot-pick {
    background: #09241c;
}
.rx-dot-off {
    background: #e6dfd8;
}
.rx-cal-sel {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #09241c;
    margin: 10px 0 2px;
    min-height: 1em;
}

/* ---- time slots ---- */
.rx-time-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.rx-pill-txt {
    line-height: 1.2;
}
.rx-pill-state {
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    color: #ba805c;
}
.rx-pill-pause {
    background: #f7f2ec;
    border-style: dashed;
    color: #a39386;
    cursor: not-allowed;
}
.rx-pill-taken {
    background: #f7f2ec;
    border-color: rgba(186, 128, 92, 0.3);
    color: #b39a8a;
    cursor: not-allowed;
}
.rx-pill-off {
    background: #f1ece6;
    color: #c9bdb3;
    cursor: not-allowed;
}
.rx-slot-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #455f3a;
    min-height: 1em;
}

/* ---- review card ---- */
.rx-review-card {
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.18);
    border-radius: 16px;
    padding: 6px 16px 14px;
    margin-bottom: 16px;
    text-align: center;
}
.rx-review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(144, 113, 85, 0.16);
    font-size: 0.86rem;
}
.rx-review-row:last-of-type {
    border-bottom: none;
}
.rx-review-lab {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #79685e;
    font-weight: 600;
}
.rx-review-lab i {
    color: #ba805c;
}
.rx-review-row strong {
    color: #09241c;
}
.rx-review-edit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 7px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(144, 113, 85, 0.25);
    background: #ffffff;
    color: #4a3e37;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rx-review-edit:hover {
    border-color: #09241c;
    color: #09241c;
}

/* ---- input error ---- */
.rx-invalid {
    border-color: #c0392b !important;
    background: #fff7f5 !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08) !important;
}

/* ---- wizard nav ---- */
.rx-wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}
.rx-btn-back,
.rx-btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    padding: 13px 22px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s ease;
}
.rx-btn-back {
    background: #faf7f4;
    border: 1px solid rgba(144, 113, 85, 0.2);
    color: #55483f;
}
.rx-btn-back:hover {
    border-color: #09241c;
    color: #09241c;
}
.rx-btn-next {
    background: linear-gradient(135deg, #09241c 0%, #184135 100%);
    border: 1px solid rgba(186, 128, 92, 0.35);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(9, 36, 28, 0.22);
}
.rx-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(9, 36, 28, 0.32);
}
.rx-btn-next i,
.rx-btn-back i {
    color: #e9b395;
}
#rxBtnSubmit {
    width: auto;
    min-width: 170px;
    padding: 13px 26px;
}
html[dir="rtl"] .rx-cal-nav i,
html[dir="rtl"] .rx-btn-back i,
html[dir="rtl"] .rx-btn-next i {
    transform: scaleX(-1);
}

/* ---- success: encrypted code ---- */
.rx-code-box {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 480px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(9, 36, 28, 0.05);
    border: 2px dashed #ba805c;
    margin-bottom: 20px;
    text-align: start;
}
.rx-code-ico {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #09241c;
    color: #e9b395;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.rx-code-txt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.rx-code-lab {
    font-size: 0.72rem;
    font-weight: 700;
    color: #79685e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rx-code-lab i {
    color: #ba805c;
}
.rx-code-val {
    font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #09241c;
    overflow-wrap: anywhere;
}

/* ---- whatsapp manual send ---- */
.rx-wa-manual {
    width: 100%;
    max-width: 480px;
    text-align: center;
    background: rgba(37, 211, 102, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 18px;
}
.rx-wa-manual-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #17823c;
    margin: 0 0 3px;
}
.rx-wa-manual-title i {
    font-size: 1.05rem;
}
.rx-wa-manual-hint {
    font-size: 0.76rem;
    color: #4a3e37;
    margin: 0;
}

@media (max-width: 600px) {
    .rx-steps {
        gap: 8px;
        margin-bottom: 20px;
    }
    .rx-step-label {
        display: none;
    }
    .rx-step-line {
        width: 24px;
    }
    .rx-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
    .rx-tab {
        font-size: 0.76rem;
        gap: 6px;
        padding: 10px 6px;
    }
    .rx-treat-list {
        max-height: 230px;
    }
    .rx-wizard-nav {
        flex-direction: column-reverse;
    }
    .rx-btn-back,
    .rx-btn-next,
    #rxBtnSubmit {
        width: 100%;
        min-width: 0;
    }
    .rx-cal-grid {
        gap: 3px;
    }
    .rx-code-box {
        padding: 12px 14px;
        gap: 10px;
    }
}