.booknetic .booknetic_service_card.rcs-loyalty-service-locked,
.booknetic_appointment_container_body .booknetic_service_card.rcs-loyalty-service-locked {
    position: relative;
    overflow: hidden;
    filter: saturate(.35);
    opacity: .78;
}

.rcs-loyalty-service-lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, .74);
    backdrop-filter: blur(4px);
    text-align: center;
    z-index: 3;
    pointer-events: auto;
    cursor: not-allowed;
}

.rcs-loyalty-service-lock__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef4fb;
    color: #35506b;
    font-weight: 700;
}

.rcs-loyalty-service-lock__text {
    color: #24384d;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.rcs-loyalty-booking-guard-modal[hidden] {
    display: none !important;
}

.rcs-loyalty-booking-guard-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    --rcs-booknetic-accent: var(--booknetic_theme_color, #4E90FF);
    --rcs-booknetic-accent-soft: rgba(78, 144, 255, .10);
    --rcs-booknetic-accent-border: rgba(78, 144, 255, .22);
    --rcs-booknetic-text: #102235;
    --rcs-booking-upgrade-border: var(--rcs-booknetic-accent-border);
    --rcs-booking-upgrade-border-hover: var(--rcs-booknetic-accent);
    --rcs-booking-secondary-border: var(--rcs-booknetic-accent-border);
    --rcs-booking-secondary-hover-border: var(--rcs-booknetic-accent);
    --rcs-booking-secondary-hover-bg: #eef4fa;
    --rcs-booking-primary-bg: var(--rcs-booknetic-accent);
    --rcs-booking-primary-hover-bg: var(--rcs-booknetic-accent);
}

.rcs-loyalty-booking-guard-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 24, 39, .52);
}

.rcs-loyalty-booking-guard-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100vw - 28px));
    padding: 24px;
    border-radius: 24px;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #ffffff, #f6fbff);
    box-shadow: 0 30px 80px rgba(11, 26, 47, .22);
}

.rcs-loyalty-booking-guard-modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--rcs-booknetic-accent-border), rgba(255, 255, 255, .88));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rcs-loyalty-booking-guard-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 999px;
    background: #edf4fb;
    color: #1c3044;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.rcs-loyalty-booking-guard-modal__eyebrow {
    margin-bottom: 10px;
    color: #5d7892;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rcs-loyalty-booking-guard-modal__title {
    margin: 0 0 10px;
    color: #102235;
    font-size: 28px;
    line-height: 1.08;
}

.rcs-loyalty-booking-guard-modal__message {
    margin: 0;
    color: #496077;
    font-size: 15px;
    line-height: 1.6;
}

.rcs-loyalty-booking-guard-modal__loading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--rcs-booknetic-accent-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.rcs-loyalty-booking-guard-modal__loading-spinner {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, .08);
    border-top-color: var(--rcs-booknetic-accent);
    animation: rcs-loyalty-spin .8s linear infinite;
}

.rcs-loyalty-booking-guard-modal__loading-title {
    color: var(--rcs-booknetic-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.rcs-loyalty-booking-guard-modal__loading-text {
    margin-top: 4px;
    color: #5a6f85;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.rcs-loyalty-booking-guard-modal__upgrade {
    margin-top: 18px;
    padding: 18px 18px 16px;
    border: 1px solid var(--rcs-booking-upgrade-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, var(--rcs-booknetic-accent-soft), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
    color: #15395c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rcs-loyalty-booking-guard-modal__upgrade:hover {
    border-color: var(--rcs-booking-upgrade-border-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 14px 26px rgba(15, 30, 51, .08);
    transform: translateY(-1px);
}

.rcs-loyalty-booking-guard-modal__upgrade-label {
    margin-bottom: 8px;
    color: var(--rcs-booknetic-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rcs-loyalty-booking-guard-modal__upgrade-title {
    color: #102235;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.rcs-loyalty-booking-guard-modal__upgrade-meta {
    margin-top: 6px;
    color: #35506b;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.rcs-loyalty-booking-guard-modal__upgrade-slot {
    margin-top: 10px;
    color: #53708c;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

.rcs-loyalty-booking-guard-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.rcs-loyalty-booking-guard-modal__actions--single {
    justify-content: flex-end;
}

.rcs-loyalty-booking-guard-modal__actions--single .booknetic_appointment_btn {
    flex: 0 0 auto;
    min-width: 120px;
}

.rcs-loyalty-booking-guard-modal__actions .booknetic_appointment_btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
}

.rcs-loyalty-booking-guard-modal__action {
    min-height: 46px;
    padding: 0 16px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    line-height: 1.2 !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.rcs-loyalty-booking-guard-modal__action:hover {
    transform: translateY(-1px);
}

.rcs-loyalty-booking-guard-modal__action--secondary {
    border: 1px solid var(--rcs-booking-secondary-border) !important;
    background: #f6f9fc !important;
    color: #1f3750 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.rcs-loyalty-booking-guard-modal__action--secondary:hover {
    border-color: var(--rcs-booking-secondary-hover-border) !important;
    background: var(--rcs-booking-secondary-hover-bg) !important;
}

.rcs-loyalty-booking-guard-modal__action--primary {
    border: 0 !important;
    background: var(--rcs-booking-primary-bg) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(15, 30, 51, .18);
}

.rcs-loyalty-booking-guard-modal__action--primary:hover {
    background: var(--rcs-booking-primary-hover-bg) !important;
    box-shadow: 0 18px 34px rgba(15, 30, 51, .24);
}

.rcs-loyalty-booking-guard-modal__action[disabled] {
    opacity: .62;
    cursor: wait !important;
    transform: none !important;
}

@media (max-width: 560px) {
    .rcs-loyalty-booking-guard-modal__dialog {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .rcs-loyalty-booking-guard-modal__title {
        font-size: 24px;
    }

    .rcs-loyalty-booking-guard-modal__actions {
        gap: 8px;
    }

    .rcs-loyalty-booking-guard-modal__actions .booknetic_appointment_btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .rcs-loyalty-booking-guard-modal__action {
        min-height: 42px;
        padding: 0 12px !important;
        border-radius: 14px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 420px) {
    .rcs-loyalty-booking-guard-modal__actions .booknetic_appointment_btn {
        flex-basis: 100%;
    }
}

.rcs-loyalty-booking-guard-next--loading {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: .88;
}

.rcs-loyalty-booking-guard-next__spinner {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: rcs-loyalty-spin .8s linear infinite;
}

@keyframes rcs-loyalty-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .rcs-loyalty-booking-guard-modal__dialog {
        width: calc(100vw - 20px);
        padding: 20px;
        border-radius: 20px;
    }

    .rcs-loyalty-booking-guard-modal__title {
        font-size: 24px;
    }

    .rcs-loyalty-booking-guard-modal__actions {
        flex-direction: column;
    }
}
