@font-face {
    font-family: "IRANYekanX";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/IRANYekanX-Light.woff2") format("woff2");
}

@font-face {
    font-family: "IRANYekanX";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "IRANYekanX";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/IRANYekanX-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "IRANYekanX";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/IRANYekanX-DemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "IRANYekanX";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2");
}

/* Booklio Frontend - GitHub-inspired appointment picker */

html.booklio-has-picker,
body.booklio-has-picker {
    overflow-x: hidden;
}

.booklio-appt-picker {
    --gf-gh-bg: #f6f8fa;
    --gf-gh-surface: #ffffff;
    --gf-gh-border: #d0d7de;
    --gf-gh-text: #1f2328;
    --gf-gh-text-muted: #656d76;
    --gf-gh-blue: #0969da;
    --gf-gh-blue-soft: #ddf4ff;
    --gf-gh-green: #1a7f37;
    --gf-gh-green-soft: #dafbe1;
    --gf-gh-disabled: #8c959f;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    direction: rtl;
    max-width: 720px;
    margin: 14px 0;
    padding: 16px;
    border: 1px solid var(--gf-gh-border);
    border-radius: 12px;
    box-shadow: none;
}

.booklio-appt-picker {
    position: relative;
}

.booklio-form-loading-scope {
    position: relative;
}

.booklio-form-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.booklio-form-loading-scope.booklio-form-loading > .booklio-form-loading-overlay,
.booklio-appt-picker.booklio-form-loading .booklio-form-loading-overlay {
    opacity: 1;
    pointer-events: auto;
}

.booklio-form-loading-scope.booklio-form-loading > *:not(.booklio-form-loading-overlay),
.booklio-appt-picker.booklio-form-loading > *:not(.booklio-form-loading-overlay) {
    pointer-events: none;
    user-select: none;
}

.booklio-form-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d7de;
    border-top-color: #0969da;
    border-radius: 50%;
    animation: booklioFormSpin 0.85s linear infinite;
}

@keyframes booklioFormSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.booklio-appt-service-name {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 10px;
    border: 1px solid var(--gf-gh-border);
    border-radius: 999px;
    background: var(--gf-gh-blue-soft);
    color: var(--gf-gh-blue);
    font-size: 12px;
    font-weight: 700;
}

.booklio-duration-picker {
    display: block;
    margin: 0 0 16px;
}

.booklio-duration-picker-label {
    display: block;
    margin: 0 0 8px;
}

.booklio-duration-picker-description {
    display: block;
    margin: 8px 0 0;
    width: 100%;
}

.booklio-duration-picker-select {
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    border: 1px solid var(--gf-gh-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--gf-gh-text);
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
}

.booklio-occupancy-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 4px;
}

.booklio-occupancy-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gf-gh-text);
}

.booklio-duration-picker .booklio-service-checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.booklio-recurring-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 6px 10px;
    width: 100%;
    margin-top: 4px;
}

.booklio-recurring-options .booklio-duration-picker-label,
.booklio-recurring-options .booklio-duration-picker-select {
    width: 100%;
}

.booklio-recurring-options .booklio-duration-picker-label {
    flex-basis: auto;
    order: initial;
}

.booklio-recurring-options .booklio-duration-picker-select {
    order: initial;
}

.booklio-recurring-options .booklio-duration-picker-label:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
}

.booklio-recurring-options .booklio-duration-picker-select:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
}

.booklio-recurring-options .booklio-duration-picker-label:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

.booklio-recurring-options .booklio-duration-picker-select:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
}

.booklio-calendar-picker {
    margin-bottom: 14px;
}

.booklio-calendar-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.booklio-calendar-field > span {
    font-size: 12px;
    font-weight: 800;
    color: var(--booklio-ui-subtext);
}

.booklio-calendar-field input[type="date"] {
    min-height: 36px;
    border: 1px solid var(--gf-gh-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--gf-gh-text);
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
}

.booklio-calendar-field .booklio-jalali-input {
    min-height: 44px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 12px;
    background: var(--booklio-ui-surface);
    color: var(--booklio-ui-text);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    cursor: pointer;
}

.booklio-calendar-field .booklio-jalali-input:hover {
    border-color: rgba(32, 76, 229, 0.28);
    background: #fbfdff;
}

.booklio-calendar-field .booklio-jalali-input:focus-visible {
    outline: none;
    border-color: rgba(32, 76, 229, 0.52);
    box-shadow: 0 0 0 3px rgba(32, 76, 229, 0.14);
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) {
    position: fixed;
    z-index: 99999;
    width: 284px;
    max-width: calc(100vw - 16px);
    padding: 12px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 16px;
    background: var(--booklio-ui-surface);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    font-family: inherit;
}

.booklio-appt-picker {
    gap: 16px;
    display: flex;
    flex-direction: column;
}

.booklio-appt-picker p.description {
    font-size: 13px;
    color: #535f6e;
    margin: 4px 0;
}

.booklio-jalali-dropdown[hidden] {
    display: none !important;
}

.booklio-jalali-dropdown .jalali-cal {
    direction: rtl;
}

.booklio-jalali-dropdown .jalali-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.booklio-jalali-dropdown .jalali-month-title {
    color: var(--booklio-ui-text);
    font-size: 14px;
    font-weight: 800;
}

.booklio-jalali-dropdown .jnav {
    width: 32px;
    height: 32px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 10px;
    background: var(--booklio-ui-surface);
    color: var(--booklio-ui-text);
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.booklio-jalali-dropdown .jnav:hover {
    background: #f8faff;
    border-color: rgba(32, 76, 229, 0.24);
    color: var(--booklio-ui-accent);
}

.booklio-jalali-dropdown .jalali-tbl {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.booklio-jalali-dropdown .jalali-tbl th {
    padding: 7px 4px;
    color: var(--booklio-ui-subtext);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.booklio-jalali-dropdown .jth-fri {
    color: #b91c1c;
}

.booklio-jalali-dropdown .jalali-tbl td {
    padding: 2px;
}

.booklio-jalali-dropdown .jday {
    border-radius: 10px;
    display: table-cell;
    width: 14.285%;
    height: 36px;
    line-height: 36px;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    font-size: 13px;
    color: var(--booklio-ui-text);
    cursor: pointer;
    user-select: none;
}

.booklio-jalali-dropdown .jday:hover {
    background: #f8faff;
    color: var(--booklio-ui-accent);
}

.booklio-jalali-dropdown .jday.jtoday {
    background: var(--booklio-ui-accent-soft);
    color: var(--booklio-ui-accent);
    font-weight: 700;
}

.booklio-jalali-dropdown .jday.jsel {
    background: var(--booklio-ui-accent);
    color: #ffffff;
    font-weight: 700;
}

.booklio-jalali-dropdown .jday.jrange {
    background: rgba(32, 76, 229, 0.12);
    color: var(--booklio-ui-accent);
    font-weight: 600;
    border-radius: 0;
}

.booklio-jalali-dropdown .jday.jrange.jrange-start,
.booklio-jalali-dropdown .jday.jrange.jrange-end {
    background: var(--booklio-ui-accent);
    color: #ffffff;
    font-weight: 700;
}

.booklio-jalali-dropdown .jday.jrange.jrange-start {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.booklio-jalali-dropdown .jday.jrange.jrange-end {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.booklio-jalali-dropdown .jday.jrange-preview {
    background: #e8eefc;
    color: #274690;
    font-weight: 600;
    border-radius: 0;
}

.booklio-jalali-dropdown .jday.jrange-preview.jrange-preview-end {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.booklio-jalali-dropdown .jday.jdis {
    opacity: 0.4;
    cursor: not-allowed;
}

.booklio-calendar-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 10px;
}

.gfield_price {
    font-family: inherit !important;
}

.gform_wrapper .booklio-hidden-total-source {
    display: none !important;
}

.booklio-appt-picker {
    gap: 16px !important;
    display: flex !important;
    flex-direction: column !important;
}

.gfield--type-jalali_appointment {
    gap: 16px !important;
    display: flex !important;
    flex-direction: column !important;
}

.gform_wrapper .gfield--type-jalali_appointment > .gfield_label {
    display: none !important;
}

.booklio-range-summary {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(32, 76, 229, 0.22);
    border-radius: 12px;
    background: var(--booklio-ui-accent-soft);
    color: var(--booklio-ui-text);
    font-size: 13px;
    line-height: 1.75;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    max-height: 720px;
    opacity: 0;
    transform: translateY(-3px);
    overflow: hidden;
    transition: max-height .12s ease, opacity .1s ease, transform .1s ease, margin-top .12s ease;
}

.booklio-range-summary.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.booklio-range-summary.is-dismissing {
    max-height: 0;
    margin-top: 0 !important;
    opacity: 0;
    transform: translateY(-3px);
    pointer-events: none;
}

.booklio-booking-calendar-surface {
    margin-top: 10px;
    padding: 16px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 16px;
    background: var(--booklio-ui-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.booklio-booking-calendar-header,
.booklio-time-slots-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.booklio-booking-calendar-title {
    display: grid;
    gap: 4px;
}

.booklio-booking-calendar-heading,
.booklio-time-slots-heading {
    margin: 0;
    color: var(--booklio-ui-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.booklio-booking-calendar-description {
    margin: 0;
    color: var(--booklio-ui-subtext);
    font-size: 13px;
    line-height: 1.75;
}

.booklio-range-summary::before {
    content: "خلاصه بازه انتخابی";
    display: block;
    margin-bottom: 6px;
    color: var(--booklio-ui-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.booklio-day-carousel {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 2px 0 12px;
}

.booklio-appt-picker button.booklio-day-card,
.gform_wrapper .booklio-appt-picker button.booklio-day-card,
.gform_wrapper.gravity-theme .booklio-appt-picker button.booklio-day-card {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid #d0d7de !important;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
}

.booklio-day-card {
    position: relative;
    width: 100%;
    min-height: 94px;
    padding: 12px 8px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 14px;
    background: var(--booklio-ui-surface);
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.15;
    color: var(--booklio-ui-text);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.booklio-day-name {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--booklio-ui-subtext);
}

.booklio-day-card:hover {
    border-color: rgba(32, 76, 229, 0.28);
    background: #f8faff;
    transform: translateY(-1px);
}

.booklio-day-card.selected {
    border-color: var(--booklio-ui-accent);
    background: var(--booklio-ui-accent);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(32, 76, 229, 0.18);
}

.booklio-day-card.booklio-day-today {
    border-color: rgba(32, 76, 229, 0.24);
    background: var(--booklio-ui-accent-soft);
}

.booklio-day-card.booklio-day-today::after {
    content: "";
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gf-gh-green);
    box-shadow: 0 0 0 4px rgba(26, 127, 55, 0.14);
}

.booklio-day-card.booklio-day-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8fafc;
    box-shadow: none;
}

.booklio-day-card.booklio-day-disabled:hover {
    border-color: var(--gf-gh-border);
    background: #f6f8fa;
}

.booklio-day-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: currentColor;
    letter-spacing: -0.02em;
}

.booklio-day-month {
    font-size: 12px;
    line-height: 1.25;
    color: var(--booklio-ui-subtext);
}

.booklio-day-card.selected .booklio-day-month,
.booklio-day-card.selected .booklio-day-num,
.booklio-day-card.selected .booklio-day-name {
    color: #ffffff;
}

.booklio-time-slots-wrap {
    margin-top: 16px;
    min-height: auto;
    padding: 14px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.booklio-time-slots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 0;
}

.booklio-appt-picker button.time-slot-btn,
.gform_wrapper .booklio-appt-picker button.time-slot-btn,
.gform_wrapper.gravity-theme .booklio-appt-picker button.time-slot-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
}

.time-slot-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 12px;
    background: var(--booklio-ui-surface);
    color: var(--booklio-ui-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    line-height: 1.3;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.time-slot-btn.booklio-slot-range {
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    gap: 0;
}

.time-slot-btn .booklio-slot-start,
.time-slot-btn .booklio-slot-end {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.time-slot-btn .booklio-slot-sep {
    display: inline-flex;
    align-items: center;
    margin-inline: 4px;
    opacity: 0.9;
    font-weight: 700;
}

.time-slot-btn:hover {
    border-color: rgba(32, 76, 229, 0.28);
    background: #f8faff;
    color: var(--booklio-ui-accent);
    transform: translateY(-1px);
}

.time-slot-btn.selected {
    border-color: var(--booklio-ui-accent);
    background: var(--booklio-ui-accent);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(32, 76, 229, 0.18);
}

.time-slot-btn.time-slot-booked {
    background: #f8fafc;
    color: var(--gf-gh-disabled);
    border-color: var(--booklio-ui-border);
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.9;
    box-shadow: none;
}

.time-slot-btn.time-slot-booked:hover {
    background: #f6f8fa;
    color: var(--gf-gh-disabled);
    border-color: var(--gf-gh-border);
}

.slots-placeholder,
.no-slots {
    margin: 0;
    padding: 10px 8px;
    color: var(--gf-gh-text-muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.slots-empty-calendar {
    color: #d1242f;
    font-weight: 700;
}

.slots-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    color: var(--gf-gh-blue);
    font-size: 13px;
    font-weight: 600;
}

.slot-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(9, 105, 218, 0.18);
    border-top-color: var(--gf-gh-blue);
    border-radius: 50%;
    animation: booklio-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes booklio-spin {
    to {
        transform: rotate(360deg);
    }
}

.booklio-appt-confirm {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(26, 127, 55, 0.2);
    border-radius: 8px;
    background: var(--gf-gh-green-soft);
    color: #0f5323;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.booklio-appt-confirm [id^="confirmtxt_"] {
    display: grid;
    gap: 4px;
    font-weight: 500;
}

.booklio-appt-confirm-line {
    color: inherit;
    font-size: 13px;
    line-height: 1.55;
}

.booklio-appt-confirm-line.is-main {
    margin-bottom: 2px;
    font-weight: 800;
}

.booklio-appt-confirm.is-warning {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #9a3412;
}

.booklio-appt-confirm.is-warning .confirm-icon {
    background: #ffedd5;
    color: #c2410c;
}

.confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(26, 127, 55, 0.12);
    color: var(--gf-gh-green);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 760px) {
    .booklio-appt-picker {
        padding: 14px;
        border-radius: 10px;
    }

    .booklio-day-carousel,
    .booklio-time-slots {
        grid-template-columns: repeat(4, 1fr);
    }

    .booklio-day-num {
        font-size: 18px;
    }

    .booklio-calendar-range-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .booklio-day-carousel,
    .booklio-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .booklio-time-slots-wrap {
        padding: 10px;
    }
}

.gform-theme--framework .gf_progressbar .percentbar_blue {
    background-color: #aebcd0 !important;
}
.gform-theme--framework .gf_progressbar {
    background-color: rgb(130 144 159 / 10%) !important;
}
.gform_confirmation_message_7 p {
    margin: 0 !important;
}

/* Booklio frontend booking patterns */
.booklio-calendar-pane[hidden],
.booklio-time-slots-section[hidden] {
    display: none !important;
}

.booklio-booking-calendar-surface {
    display: grid;
    gap: 18px;
    margin-top: 10px;
    padding: 20px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 20px;
    background: var(--booklio-ui-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.booklio-booking-calendar-header,
.booklio-time-slots-header {
    gap: 6px;
    margin: 0;
}

.booklio-booking-calendar-title {
    gap: 6px;
}

.booklio-booking-calendar-heading,
.booklio-time-slots-heading {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}

.booklio-booking-calendar-description,
.booklio-time-slots-description {
    max-width: 64ch;
    color: var(--booklio-ui-subtext);
    font-size: 13px;
    line-height: 1.8;
}

.booklio-calendar-picker {
    display: grid;
    gap: 12px;
}

.booklio-calendar-field {
    display: grid;
    gap: 8px;
}

.booklio-calendar-field > span {
    color: var(--booklio-ui-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.booklio-jalali-input {
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 16px;
    background: var(--booklio-ui-surface);
    color: var(--booklio-ui-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.booklio-jalali-input:hover {
    border-color: rgba(32, 76, 229, 0.24);
    background: #fdfdff;
}

.booklio-jalali-input:focus,
.booklio-jalali-input:focus-visible {
    outline: none;
    border-color: rgba(32, 76, 229, 0.42);
    box-shadow: 0 0 0 4px rgba(47, 83, 217, 0.12);
}

.booklio-day-carousel {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 12px;
    padding: 0;
}

.booklio-day-card {
    min-height: 118px;
    padding: 16px 10px;
    border-radius: 20px;
    gap: 8px;
}

.booklio-day-name,
.booklio-day-month {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.booklio-day-num {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.booklio-first-slot-row {
    display: flex;
    justify-content: flex-start;
}

.booklio-first-slot-button {
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 14px;
}

.booklio-time-slots-wrap {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.booklio-time-slots {
    gap: 12px;
}

.time-slot-btn {
    min-height: 52px;
    padding: 12px 10px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
}

.booklio-jalali-dropdown {
    width: 312px;
    max-width: calc(100vw - 24px);
    padding: 14px;
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.booklio-jalali-dropdown .jalali-hdr {
    margin-bottom: 12px;
}

.booklio-jalali-dropdown .jalali-month-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
}

.booklio-jalali-dropdown .jnav {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.booklio-jalali-dropdown .jalali-tbl th {
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 800;
}

.booklio-jalali-dropdown .jday {
    height: 38px;
    line-height: 38px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.booklio-appt-confirm {
    padding: 16px;
    border-radius: 18px;
    background: var(--booklio-ui-surface);
    border-color: var(--booklio-ui-border);
    color: var(--booklio-ui-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.booklio-appt-confirm .confirm-icon {
    width: 28px;
    height: 28px;
    margin-top: 0;
}

.booklio-appt-confirm-body {
    display: grid;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.booklio-appt-confirm-title {
    color: var(--booklio-ui-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
}

.booklio-appt-confirm-list {
    margin: 0;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(250, 250, 252, 0.88);
}

.booklio-appt-confirm-item {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.42fr) 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
}

.booklio-appt-confirm-item + .booklio-appt-confirm-item {
    border-top: 1px solid rgba(228, 228, 231, 0.9);
}

.booklio-appt-confirm-item.is-inline {
    grid-template-columns: 1fr;
}

.booklio-appt-confirm-label {
    margin: 0;
    color: var(--booklio-ui-subtext);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.booklio-appt-confirm-value {
    margin: 0;
    color: var(--booklio-ui-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.75;
}

.booklio-appt-confirm-item.is-total {
    background: rgba(47, 83, 217, 0.06);
}

.booklio-appt-confirm-item.is-total .booklio-appt-confirm-label,
.booklio-appt-confirm-item.is-total .booklio-appt-confirm-value {
    color: var(--booklio-ui-accent);
    font-weight: 800;
}

/* Local shadcn-style frontend skin */
.booklio-appt-picker {
    --sh-bg: #fafafa;
    --sh-card: #ffffff;
    --sh-border: #e4e4e7;
    --sh-muted: #f4f4f5;
    --sh-foreground: #09090b;
    --sh-muted-foreground: #71717a;
    --sh-primary: #18181b;
    --sh-primary-foreground: #fafafa;
    --sh-ring: #18181b;
    --sh-success-bg: #f0fdf4;
    --sh-success-fg: #166534;
    border: 1px solid var(--sh-border);
    border-radius: 12px;
    background: var(--sh-card);
    box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04);
}

.booklio-appt-service-name {
    border: 1px solid var(--sh-border);
    background: #ffffff;
    color: var(--sh-muted-foreground);
    border-radius: 999px;
}

.booklio-day-card {
    border: 1px solid var(--sh-border);
    background: #ffffff;
    color: var(--sh-foreground);
    border-radius: 10px;
    box-shadow: none;
}

.booklio-day-card:hover {
    background: var(--sh-muted);
    border-color: #d4d4d8;
}

.booklio-day-card.selected {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    color: var(--sh-primary-foreground);
}

.booklio-day-name,
.booklio-day-month {
    color: var(--sh-muted-foreground);
}

.booklio-day-card.selected .booklio-day-name,
.booklio-day-card.selected .booklio-day-month,
.booklio-day-card.selected .booklio-day-num {
    color: var(--sh-primary-foreground);
}

.booklio-time-slots-wrap {
    border: 1px solid var(--sh-border);
    border-radius: 10px;
    background: #fcfcfc;
}

.time-slot-btn {
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--sh-foreground);
}

.time-slot-btn:hover {
    background: var(--sh-muted);
    border-color: #d4d4d8;
}

.time-slot-btn.selected {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    color: var(--sh-primary-foreground);
}

.slots-placeholder,
.no-slots {
    color: var(--sh-muted-foreground);
}

.booklio-appt-confirm {
    border: 1px solid #86efac;
    background: var(--sh-success-bg);
    color: var(--sh-success-fg);
    border-radius: 10px;
}

.booklio-appt-confirm.is-warning {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #9a3412;
}

.confirm-icon {
    background: #dcfce7;
    color: var(--sh-success-fg);
}

.booklio-appt-confirm.is-warning .confirm-icon {
    background: #ffedd5;
    color: #c2410c;
}

/* Vercel/Geist local theme */
.booklio-appt-picker {
    --vz-card: #ffffff;
    --vz-muted: #f4f4f5;
    --vz-border: #e4e4e7;
    --vz-text: #09090b;
    --vz-subtext: #71717a;
    --vz-accent: #18181b;
    --vz-accent-text: #fafafa;
    --vz-radius: 10px;
    --vz-control-h: 32px;
    font-family: inherit;
    border: 1px solid var(--vz-border);
    border-radius: 12px;
    background: var(--vz-card);
    box-shadow: none;
    padding: 14px;
}

.booklio-appt-service-name {
    border: 1px solid var(--vz-border);
    background: #fff;
    color: var(--vz-subtext);
    border-radius: 999px;
    font-size: 11px;
}

.booklio-day-card {
    border: 1px solid var(--vz-border);
    border-radius: var(--vz-radius);
    background: #fff;
    color: var(--vz-text);
}

.booklio-day-card:hover {
    background: var(--vz-muted);
    border-color: #d4d4d8;
}

.booklio-day-card.selected {
    background: var(--vz-accent);
    border-color: var(--vz-accent);
    color: var(--vz-accent-text);
}

.booklio-day-name,
.booklio-day-month {
    color: var(--vz-subtext);
}

.booklio-day-card.selected .booklio-day-name,
.booklio-day-card.selected .booklio-day-month,
.booklio-day-card.selected .booklio-day-num {
    color: var(--vz-accent-text);
}

.booklio-time-slots-wrap {
    border: 1px solid var(--vz-border);
    border-radius: var(--vz-radius);
    background: #fcfcfc;
}

.time-slot-btn {
    min-height: var(--vz-control-h);
    height: var(--vz-control-h);
    line-height: calc(var(--vz-control-h) - 2px);
    border: 1px solid var(--vz-border);
    border-radius: 8px;
    background: #fff;
    color: var(--vz-text);
    font-size: 12px;
}

.time-slot-btn:hover {
    background: var(--vz-muted);
    border-color: #d4d4d8;
}

.time-slot-btn.selected {
    background: var(--vz-accent);
    border-color: var(--vz-accent);
    color: var(--vz-accent-text);
}

.slots-placeholder,
.no-slots {
    color: var(--vz-subtext);
    font-size: 12px;
}

.booklio-appt-confirm {
    border: 1px solid #86efac;
    border-radius: var(--vz-radius);
    background: #ecfdf3;
    color: #166534;
    font-size: 12px;
}

.booklio-appt-confirm.is-warning {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #9a3412;
}

/* Customer Panel Styles */
.booklio-customer-panel {
    font-family: inherit !important;
    direction: rtl;
    width: 100%;
}

.booklio-customer-panel * {
    font-family: inherit !important;
}

.booklio-customer-panel h3 {
    color: #1f2328;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.booklio-customer-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.booklio-customer-panel-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.booklio-customer-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.booklio-customer-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}

.booklio-customer-tabs a:hover,
.booklio-customer-tabs a.is-active {
    border-color: #dbe3ef;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.booklio-customer-card {
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #ffffff;
    padding: 18px;
}

.booklio-customer-card h4 {
    margin: 0 0 14px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 800;
}

.booklio-customer-otp-panel {
    max-width: 460px;
    margin: 18px auto;
}

.booklio-customer-otp-card {
    padding: 16px;
}

.booklio-customer-otp-card .booklio-otp-stack {
    display: grid;
    gap: 14px;
}

.booklio-customer-otp-panel [hidden] {
    display: none !important;
}

.booklio-customer-otp-field {
    display: grid;
    gap: 7px;
}

.booklio-customer-otp-field label {
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
}

.booklio-customer-otp-field input {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2328;
    font-size: 14px;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.booklio-customer-otp-field input::placeholder {
    color: #94a3b8;
}

.booklio-customer-otp-field input:focus {
    outline: none;
    border-color: #204ce5;
    box-shadow: 0 0 0 4px rgba(32, 76, 229, 0.10);
}

.booklio-customer-otp-field input[dir="ltr"] {
    text-align: left;
}

.booklio-customer-otp-help {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.booklio-otp-feedback {
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    opacity: 0;
    transform: translateY(-6px);
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    line-height: 1.8;
    transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease, padding 220ms ease, border-width 220ms ease;
}

.booklio-otp-feedback.is-visible {
    max-height: 160px;
    opacity: 1;
    transform: translateY(0);
}

.booklio-otp-feedback:not(.is-visible) {
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0;
    border-bottom-width: 0;
    opacity: 0;
    transform: translateY(-6px);
}

.booklio-customer-otp-card,
.booklio-customer-otp-dialog {
    transition: height 220ms ease;
}

.booklio-otp-feedback.is-success {
    border-color: rgba(31, 136, 61, 0.16);
    background: #dafbe1;
    color: #116329;
}

.booklio-otp-feedback.is-error {
    border-color: rgba(207, 34, 46, 0.16);
    background: #ffebe9;
    color: #cf222e;
}

.booklio-otp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.booklio-otp-actions .button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(228, 228, 231, 0.96);
    background: #ffffff;
    color: #18181b;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.booklio-customer-otp-panel .booklio-customer-panel-header {
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.booklio-customer-otp-panel .booklio-customer-panel-header h3 {
    font-size: 20px;
    line-height: 1.5;
}

.booklio-customer-otp-panel .booklio-customer-panel-header p {
    font-size: 12px;
    line-height: 1.7;
}

.booklio-customer-otp-modal-launcher {
    display: flex;
    justify-content: center;
    margin: 16px auto;
}

.booklio-customer-otp-modal-trigger {
    cursor: pointer;
}

.booklio-customer-otp-panel.is-modal-content {
    max-width: none;
    margin: 0;
}

.booklio-customer-otp-modal .booklio-customer-panel-header {
    display: none;
}

.booklio-customer-otp-modal {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 0 0% 100%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 5.2% 33.9%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.625rem;
    --booklio-token-font-size-label: 13px;
    --booklio-token-font-size-helper: 13px;
    --booklio-token-font-weight-label: 500;
    --booklio-token-font-weight-title: 600;
    --booklio-token-letter-spacing-title: -0.025em;
    --booklio-token-label: 0 0% 12%;
    --booklio-token-helper: 240 5.2% 33.9%;
    --booklio-token-icon-muted: 0 0% 40%;
    --booklio-token-control-focus-border: 217 91% 52%;
    --booklio-token-control-focus-ring: 214 95% 88%;
    --booklio-token-control-shadow: 0 0% 0%;
    --booklio-token-control-shadow-alpha: 0.05;
    --booklio-token-control-radius: var(--radius);
    --booklio-token-overlay: 0 0% 0%;
    --booklio-token-overlay-alpha: 0.5;
    --booklio-token-layer-overlay: 100000;
    --booklio-token-layer-modal: 100001;
    position: fixed;
    inset: 0;
    z-index: 100000 !important;
    display: grid;
    align-items: center;
    justify-items: center;
    place-items: center;
    padding: 1rem;
    isolation: isolate;
    font-family: inherit !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.booklio-customer-otp-modal,
.booklio-customer-otp-modal * {
    box-sizing: border-box;
}

.booklio-customer-otp-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.booklio-customer-otp-modal .booklio-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--booklio-token-layer-overlay);
    background: hsl(var(--booklio-token-overlay) / var(--booklio-token-overlay-alpha));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.booklio-customer-otp-modal .booklio-customer-otp-dialog {
    position: relative !important;
    inset: auto !important;
    z-index: var(--booklio-token-layer-modal) !important;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    width: calc(100vw - 2rem) !important;
    max-width: 32rem !important;
    max-height: calc(100dvh - 2rem) !important;
    min-width: 0;
    overflow: hidden !important;
    padding: 1rem;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: 14px !important;
    background: hsl(var(--background)) !important;
    color: hsl(var(--foreground));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    outline: none;
    text-align: right;
    opacity: 0;
    transform: scale(0.95) !important;
    transition: opacity 180ms ease, transform 180ms ease;
}

.booklio-customer-otp-modal.is-open .booklio-customer-otp-dialog {
    opacity: 1;
    transform: scale(1) !important;
}

.booklio-customer-otp-modal .booklio-customer-otp-dialog-header {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.75rem;
    margin-right: -1rem;
    margin-left: -1rem;
    padding: 0 1rem 1rem 3.5rem !important;
    border-bottom: 1px solid hsl(var(--border)) !important;
    text-align: right;
    align-items: stretch;
}

.booklio-customer-otp-dialog-heading {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.5rem;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    text-align: right;
}

.booklio-customer-otp-modal .booklio-customer-otp-dialog-heading h3 {
    margin: 0;
    color: hsl(var(--foreground)) !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    letter-spacing: var(--booklio-token-letter-spacing-title) !important;
    line-height: 30px !important;
}

.booklio-customer-otp-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.booklio-customer-otp-dialog-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.booklio-customer-otp-modal .booklio-customer-otp-dialog-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0;
    border: 0 !important;
    border-radius: calc(var(--radius) - 2px);
    background: transparent !important;
    color: hsl(var(--booklio-token-icon-muted)) !important;
    box-shadow: none !important;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.16s ease, background-color 0.16s ease;
}

.booklio-customer-otp-modal .booklio-customer-otp-dialog-close:hover,
.booklio-customer-otp-modal .booklio-customer-otp-dialog-close:focus-visible {
    background: hsl(var(--accent)) !important;
    color: hsl(var(--accent-foreground)) !important;
    opacity: 1;
}

.booklio-customer-otp-modal .booklio-customer-otp-dialog-close svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.booklio-customer-otp-modal .booklio-modal-body {
    min-width: 0;
    min-height: 0;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 1.25rem 5px !important;
    scrollbar-width: thin;
}

.booklio-customer-otp-dialog-description {
    margin: 0 0 1.5rem;
    color: hsl(var(--foreground) / 0.8);
    font-size: 16px;
    line-height: 1.85rem;
}

.booklio-customer-otp-modal .booklio-customer-otp-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.booklio-customer-otp-modal .booklio-otp-stack {
    gap: 1.5rem;
}

.booklio-customer-otp-modal .booklio-customer-otp-field label {
    margin-bottom: 0;
    color: hsl(var(--booklio-token-label));
    font-size: 15px;
    font-weight: var(--booklio-token-font-weight-label);
    line-height: 1.25rem;
}

.booklio-customer-otp-modal .booklio-customer-otp-field input {
    width: 100%;
    min-width: 0;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: hsl(var(--foreground));
    font-size: 16px;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 hsl(var(--booklio-token-control-shadow) / var(--booklio-token-control-shadow-alpha, 0.05));
}

.booklio-customer-otp-modal .booklio-customer-otp-field input:focus,
.booklio-customer-otp-modal .booklio-customer-otp-field input:focus-visible {
    outline: none;
    border-color: hsl(var(--booklio-token-control-focus-border));
    box-shadow: 0 0 0 3px hsl(var(--booklio-token-control-focus-ring));
}

.booklio-customer-otp-modal .booklio-customer-otp-help {
    margin-top: 0;
    color: hsl(var(--booklio-token-helper));
    font-size: 15px;
    line-height: 1.75rem;
}

.booklio-customer-otp-modal .booklio-otp-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
    max-width: calc(100% + 2rem);
    margin: 4px -1rem 0;
    padding: 1rem 1rem 0;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    overflow-x: hidden;
}

.booklio-customer-otp-modal .booklio-otp-actions [data-booklio-otp-modal-close] {
    order: 1;
}

.booklio-customer-otp-modal .booklio-otp-actions [data-send] {
    order: 2;
    margin-inline-end: 0;
}

.booklio-customer-otp-modal .booklio-otp-actions [data-verify] {
    order: 3;
}

.booklio-customer-otp-modal .booklio-otp-actions.is-code-step [data-send] {
    order: -1;
    margin-inline-end: auto;
}

.booklio-customer-otp-modal .booklio-otp-phone {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-weight: 700;
}

.booklio-customer-otp-modal .booklio-otp-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--booklio-token-control-radius);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
}

.booklio-customer-otp-modal .booklio-otp-actions .button[hidden] {
    display: none !important;
}

.booklio-customer-otp-modal .booklio-otp-actions .button.button-primary {
    border-width: 0 !important;
    border-color: hsl(var(--primary)) !important;
    background: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
}

.booklio-customer-otp-modal .booklio-otp-actions .button.button-secondary {
    border-color: hsl(var(--border)) !important;
    background: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
}

.booklio-otp-actions .button.button-primary {
    background: #2f53d9;
    border-color: #2f53d9;
    color: #ffffff;
}

.booklio-otp-actions .button.button-primary:hover {
    background: #2848be;
    border-color: #2848be;
}

.booklio-otp-actions .button.button-secondary:hover {
    background: #fafafa;
    border-color: rgba(161, 161, 170, 0.6);
}

.booklio-otp-actions .button[disabled] {
    opacity: 0.65;
    cursor: wait;
}

.booklio-customer-otp-panel:not(.is-modal-content) {
    width: 100%;
    max-width: var(--wp--style--global--content-size, 645px);
    margin: 24px auto;
    display: grid;
    gap: 0;
    color: #0f172a;
}

.booklio-customer-otp-panel:not(.is-modal-content),
.booklio-customer-otp-panel:not(.is-modal-content) * {
    box-sizing: border-box;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-panel-header {
    display: none;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-panel-header h3 {
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-panel-header p {
    margin-top: 4px;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-status {
    display: none;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-status-completed {
    border-color: rgba(31, 136, 61, 0.18);
    background: #eaf6ec;
    color: #116329;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: none;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card-header {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card-header h3 {
    margin: 0;
    color: hsl(var(--foreground));
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card-header p {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-stack {
    gap: 16px;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field {
    gap: 10px;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field label {
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-color: #d8e0ec;
    border-radius: 16px;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field input:focus,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field input:focus-visible {
    border-color: #3b64f5;
    box-shadow: 0 0 0 4px rgba(59, 100, 245, 0.14), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-help {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-feedback {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions {
    justify-content: flex-start;
    gap: 10px;
    padding-top: 4px;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions .button.button-primary {
    border-color: #2f53d9;
    background: #2f53d9;
    color: #ffffff;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions .button.button-primary:hover {
    border-color: #2848be;
    background: #2848be;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions .button.button-secondary {
    border-color: #d8e0ec;
    background: #ffffff;
    color: #111827;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-phone {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-weight: 800;
}

/* Keep the standalone OTP page on the same primitive contract as Booklio UI. */
.booklio-customer-otp-panel:not(.is-modal-content) {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 0 0% 100%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 5.2% 33.9%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.625rem;
    --booklio-token-font-size-label: 13px;
    --booklio-token-font-size-helper: 13px;
    --booklio-token-font-weight-label: 500;
    --booklio-token-font-weight-title: 600;
    --booklio-token-line-height-label: 1.25rem;
    --booklio-token-line-height-helper: 1.25rem;
    --booklio-token-label: 0 0% 12%;
    --booklio-token-helper: 240 5.2% 33.9%;
    --booklio-token-control-focus-border: 217 91% 52%;
    --booklio-token-control-focus-ring: 214 95% 88%;
    --booklio-token-control-shadow: 0 0% 0%;
    --booklio-token-control-shadow-alpha: 0.05;
    --booklio-token-control-radius: var(--radius);
    color: hsl(var(--foreground));
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-panel-header,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card {
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: none;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-panel-header {
    padding: 1rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card {
    padding: 1rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-panel-header h3 {
    color: hsl(var(--foreground));
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75rem;
    letter-spacing: 0;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-panel-header p,
.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="form-description"] {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="form-label"] {
    min-width: 0;
    color: hsl(var(--booklio-token-label));
    font-size: var(--booklio-token-font-size-label);
    font-weight: var(--booklio-token-font-weight-label);
    line-height: var(--booklio-token-line-height-label);
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="input"] {
    width: 100%;
    min-width: 0;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    background: transparent;
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    outline: none;
    box-shadow: 0 1px 2px 0 hsl(var(--booklio-token-control-shadow) / var(--booklio-token-control-shadow-alpha));
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="input"]::placeholder {
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="input"]:focus,
.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="input"]:focus-visible {
    border-color: hsl(var(--booklio-token-control-focus-border));
    box-shadow: 0 0 0 3px hsl(var(--booklio-token-control-focus-ring));
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--booklio-token-control-radius);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="button"][data-variant="default"] {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="button"][data-variant="default"]:not(:disabled):hover {
    background: hsl(var(--primary) / 0.9);
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="button"][data-variant="outline"] {
    border-color: hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 2px 0 hsl(var(--booklio-token-control-shadow) / var(--booklio-token-control-shadow-alpha));
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="button"][data-variant="outline"]:not(:disabled):hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="button"]:focus-visible {
    border-color: hsl(var(--booklio-token-control-focus-border));
    box-shadow: 0 0 0 3px hsl(var(--booklio-token-control-focus-ring));
}

.booklio-customer-otp-panel:not(.is-modal-content) [data-slot="button"]:disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field [data-slot="form-label"] {
    color: hsl(var(--booklio-token-label));
    font-size: var(--booklio-token-font-size-label);
    font-weight: var(--booklio-token-font-weight-label);
    line-height: var(--booklio-token-line-height-label);
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field [data-slot="form-description"] {
    color: hsl(var(--booklio-token-helper));
    font-size: var(--booklio-token-font-size-helper);
    font-weight: 400;
    line-height: var(--booklio-token-line-height-helper);
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field [data-slot="input"] {
    width: 100%;
    min-width: 0;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    background: transparent;
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    outline: none;
    box-shadow: 0 1px 2px 0 hsl(var(--booklio-token-control-shadow) / var(--booklio-token-control-shadow-alpha));
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions [data-slot="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--booklio-token-control-radius);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    box-shadow: none;
}

/* The standalone OTP form reuses the exact same control primitives as the OTP modal. */
.booklio-customer-otp-panel:not(.is-modal-content) {
    font-family: inherit !important;
    color: hsl(var(--foreground));
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card {
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: none;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card-header {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: right;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card-header h3 {
    margin: 0;
    color: hsl(var(--foreground)) !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    letter-spacing: var(--booklio-token-letter-spacing-title, -0.025em) !important;
    line-height: 30px !important;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card-header p {
    margin: 0;
    color: hsl(var(--foreground) / 0.8);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-stack {
    gap: 1.5rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field {
    gap: 0.75rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field label,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field [data-slot="form-label"] {
    margin-bottom: 0;
    color: hsl(var(--booklio-token-label));
    font-size: 15px;
    font-weight: var(--booklio-token-font-weight-label);
    line-height: 1.25rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field input,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field [data-slot="input"] {
    width: 100%;
    min-width: 0;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25rem;
    outline: none;
    box-shadow: 0 1px 2px 0 hsl(var(--booklio-token-control-shadow) / var(--booklio-token-control-shadow-alpha, 0.05));
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field input::placeholder,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field [data-slot="input"]::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field input:focus,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field input:focus-visible,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field [data-slot="input"]:focus,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field [data-slot="input"]:focus-visible {
    outline: none;
    border-color: hsl(var(--booklio-token-control-focus-border));
    box-shadow: 0 0 0 3px hsl(var(--booklio-token-control-focus-ring));
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-help,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-field [data-slot="form-description"] {
    margin-top: 0;
    color: hsl(var(--booklio-token-helper));
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75rem;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
    max-width: calc(100% + 2rem);
    margin: 4px -1rem 0;
    padding: 1rem 1rem 0;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    overflow-x: hidden;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions [data-send] {
    order: 2;
    margin-inline-end: 0;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions [data-verify] {
    order: 3;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions.is-code-step [data-send] {
    order: -1;
    margin-inline-end: auto;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-phone {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-weight: 700;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions .button,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions [data-slot="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--booklio-token-control-radius);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions .button[hidden],
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions [data-slot="button"][hidden] {
    display: none !important;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions .button.button-primary,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions [data-slot="button"][data-variant="default"] {
    border-width: 0 !important;
    border-color: hsl(var(--primary)) !important;
    background: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
}

.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions .button.button-secondary,
.booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions [data-slot="button"][data-variant="outline"] {
    border-color: hsl(var(--border)) !important;
    background: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
}

@media (max-width: 640px) {
    .booklio-customer-otp-panel:not(.is-modal-content) {
        margin: 20px auto;
        gap: 0;
    }

    .booklio-customer-otp-panel:not(.is-modal-content) .booklio-customer-otp-card {
        padding: 16px;
        border-radius: 18px;
    }

    .booklio-customer-otp-panel:not(.is-modal-content) .booklio-otp-actions .button {
        width: 100%;
    }

    .booklio-customer-otp-modal {
        align-items: center;
        justify-items: center;
        padding: 12px;
    }

    .booklio-customer-otp-modal .booklio-customer-otp-dialog {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        padding: 14px;
    }

    .booklio-customer-otp-modal .booklio-customer-otp-dialog-header {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px !important;
        padding-left: 52px !important;
        padding-bottom: 14px !important;
    }

    .booklio-customer-otp-modal .booklio-modal-body {
        padding: 16px 4px !important;
    }

    .booklio-customer-otp-modal .booklio-otp-actions {
        margin-right: -14px;
        margin-left: -14px;
        padding: 14px 14px 0;
    }

    .booklio-customer-otp-modal .booklio-otp-actions .button {
        flex: 0 0 auto;
    }
}

.booklio-customer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.booklio-customer-info-grid div {
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #f8fafc;
}

.booklio-customer-info-grid span,
.booklio-wallet-card-head span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.booklio-customer-info-grid strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.booklio-wallet-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.booklio-wallet-card-head strong {
    color: #1e3a8a;
    font-size: 24px;
    font-weight: 900;
}

.booklio-wallet-card-head small {
    max-width: 310px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.9;
}

.booklio-wallet-transactions h4 {
    margin-top: 0;
}

.booklio-wallet-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booklio-wallet-transaction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #ffffff;
}

.booklio-wallet-transaction strong {
    display: block;
    margin-bottom: 3px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
}

.booklio-wallet-transaction span {
    color: #94a3b8;
    font-size: 11px;
}

.booklio-wallet-transaction b {
    color: #dc2626;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.booklio-wallet-transaction.is-credit b {
    color: #16a34a;
}

.booklio-empty-state {
    margin: 0;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.booklio-reservations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booklio-reservation-item {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #ffffff;
    padding: 20px;
    font-family: inherit !important;
}

.booklio-reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.booklio-reservation-header h4 {
    margin: 0;
    color: #1f2328;
    font-size: 18px;
    font-weight: 600;
}

.booklio-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    font-family: inherit;
}

.booklio-status-confirmed,
.booklio-status-success,
.booklio-status-payment-success {
    background: #dafbe1;
    border-color: rgba(31, 136, 61, 0.16);
    color: #116329;
}

.booklio-status-pending,
.booklio-status-pending_approval,
.booklio-status-payment-pending {
    background: #fff8c5;
    border-color: rgba(154, 103, 0, 0.16);
    color: #9a6700;
}

.booklio-status-cancelled,
.booklio-status-rejected,
.booklio-status-no_show,
.booklio-status-payment-unsuccess {
    background: #ffebe9;
    border-color: rgba(207, 34, 46, 0.16);
    color: #cf222e;
}

.booklio-status-completed {
    background: #ddf4ff;
    border-color: rgba(9, 105, 218, 0.16);
    color: #0550ae;
}

.booklio-status-refunded {
    background: #eef2f7;
    border-color: rgba(71, 85, 105, 0.18);
    color: #334155;
}

.booklio-reservation-details {
    margin-bottom: 16px;
}

.booklio-reservation-details p {
    margin: 4px 0;
    color: #656d76;
    font-size: 14px;
}

.booklio-reservation-details strong {
    color: #1f2328;
    font-weight: 500;
}

.booklio-reservation-notes {
    margin-top: 12px;
    padding: 12px;
    background: #f6f8fa;
    border-radius: 6px;
    border: 1px solid #d0d7de;
}

.booklio-reservation-notes strong {
    display: block;
    margin-bottom: 8px;
    color: #1f2328;
}

.booklio-reservation-notes ul {
    margin: 0;
    padding-right: 16px;
    list-style: none;
}

.booklio-reservation-notes li {
    margin-bottom: 4px;
    color: #656d76;
    font-size: 14px;
}

.booklio-reservation-notes li strong {
    display: inline;
    margin-bottom: 0;
    color: #1f2328;
    font-weight: 500;
}

.booklio-reservation-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.booklio-reservation-actions .button {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #d0d7de;
    background: #f6f8fa;
    color: #1f2328;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booklio-reservation-actions .button:hover {
    background: #f3f4f6;
    border-color: #8b949e;
}

.booklio-reservation-actions .button.button-secondary {
    background: #ffffff;
    border-color: #d0d7de;
}

.booklio-reservation-actions .button.button-secondary:hover {
    background: #f6f8fa;
}

/* Modal Styles */
.booklio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    direction: rtl;
}

.booklio-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.booklio-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 1px solid rgba(228, 228, 231, 0.96);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 10px 20px rgba(15, 23, 42, 0.08);
    max-width: 680px;
    width: min(92vw, 680px);
    max-height: min(80vh, 840px);
    overflow: hidden;
    z-index: 2;
}

.booklio-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(228, 228, 231, 0.9);
}

.booklio-modal-header h3 {
    margin: 0;
    color: #18181b;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.6;
}

.booklio-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 20px;
    color: #71717a;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    opacity: 0.75;
}

.booklio-modal-close:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #18181b;
    opacity: 1;
}

.booklio-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    max-height: calc(min(80vh, 840px) - 82px);
}

#booklio-wallet-pay-confirm-text {
    white-space: pre-line;
}

.booklio-change-calendar {
    margin-bottom: 20px;
}

.booklio-day-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 0;
}

.booklio-day-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booklio-day-card:hover:not(.booklio-day-disabled) {
    border-color: #0969da;
    background: #f6f8fa;
}

.booklio-day-card.selected {
    border-color: #0969da;
    background: #0969da;
    color: #ffffff;
}

.booklio-day-card.booklio-day-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.booklio-day-card.booklio-day-today {
    border-color: #0969da;
    font-weight: 600;
}

.booklio-day-name {
    font-size: 12px;
    margin-bottom: 4px;
}

.booklio-day-num {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.booklio-day-month {
    font-size: 10px;
}

.booklio-time-slots-wrap {
    min-height: 100px;
}

.booklio-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.booklio-time-slot {
    padding: 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.booklio-time-slot:hover {
    border-color: #0969da;
    background: #f6f8fa;
}

.booklio-time-slot.selected {
    border-color: #0969da;
    background: #0969da;
    color: #ffffff;
}

.slots-placeholder,
.no-slots {
    text-align: center;
    color: #656d76;
    padding: 20px;
    margin: 0;
}

.slots-loading {
    text-align: center;
    color: #656d76;
    padding: 20px;
    margin: 0;
}

.slot-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #d0d7de;
    border-radius: 50%;
    border-top-color: #0969da;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.booklio-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(228, 228, 231, 0.9);
}

.booklio-modal-actions .button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(228, 228, 231, 0.96);
    background: #ffffff;
    color: #18181b;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.booklio-modal-actions .button.button-primary {
    background: #2f53d9;
    border-color: #2f53d9;
    color: #ffffff;
}

.booklio-modal-actions .button.button-primary:hover {
    background: #2848be;
    border-color: #2848be;
}

.booklio-modal-actions .button.button-secondary {
    background: #ffffff;
    border-color: rgba(228, 228, 231, 0.96);
    color: #18181b;
}

.booklio-modal-actions .button.button-secondary:hover {
    background: #fafafa;
    border-color: rgba(161, 161, 170, 0.6);
}

.booklio-modal-actions .button.booklio-button-danger {
    background: #fff5f5;
    border-color: rgba(180, 35, 24, 0.24);
    color: #8f1d1d;
}

.booklio-modal-actions .button.booklio-button-danger:hover {
    background: #feecec;
    border-color: rgba(180, 35, 24, 0.36);
}

.booklio-modal-content .booklio-booking-calendar-surface,
.booklio-modal-content .booklio-range-summary,
.booklio-modal-content .booklio-appt-confirm {
    box-shadow: none;
}

@media (max-width: 768px) {
    .booklio-customer-panel-header,
    .booklio-wallet-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .booklio-customer-tabs {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .booklio-customer-tabs a {
        white-space: nowrap;
    }

    .booklio-customer-info-grid {
        grid-template-columns: 1fr;
    }

    .booklio-customer-otp-panel {
        margin: 16px 0;
    }

    .booklio-otp-actions {
        flex-direction: column;
    }

    .booklio-otp-actions .button {
        width: 100%;
    }

    .booklio-reservation-item {
        padding: 16px;
    }

    .booklio-reservation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .booklio-reservation-header h4 {
        font-size: 16px;
    }

    .booklio-reservation-actions {
        flex-direction: column;
        width: 100%;
    }

    .booklio-reservation-actions .button {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .booklio-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }

    .booklio-form-group input,
    .booklio-form-group select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .booklio-modal-actions {
        flex-direction: column;
    }

    .booklio-modal-actions .button {
        width: 100%;
        margin-bottom: 8px;
    }
}

.booklio-one-time-notice {
    color: #d97706;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.booklio-customer-pagination-wrap {
    margin-top: 16px;
    padding-top: 8px;
}

.booklio-customer-pagination-wrap .tablenav-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.booklio-customer-pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0 2px;
    padding: 0 8px;
    border: 1px solid #d0d7de;
    border-radius: 9px;
    background: #ffffff;
    color: #1f2328;
    font-size: 13px;
    text-decoration: none;
    box-sizing: border-box;
}

.booklio-customer-pagination-wrap .page-numbers.current,
.booklio-customer-pagination-wrap .page-numbers:hover {
    border-color: transparent;
    background: #0969da;
    color: #ffffff;
}

.booklio-change-success-notice {
    color: #15803d;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.booklio-already-changed {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
}

/* Unified frontend theme for booking picker and customer-panel dialogs */
.booklio-appt-picker,
.booklio-modal-content,
.booklio-customer-panel {
    --booklio-ui-surface: #ffffff;
    --booklio-ui-muted: #f6f8fa;
    --booklio-ui-border: #d0d7de;
    --booklio-ui-text: #1f2328;
    --booklio-ui-subtext: #656d76;
    --booklio-ui-accent: #204ce5;
    --booklio-ui-accent-strong: #1739b7;
    --booklio-ui-accent-soft: #eef2ff;
    --booklio-ui-success: #1a7f37;
    --booklio-ui-success-soft: #eaf6ec;
    --booklio-ui-danger: #cf222e;
    --booklio-ui-danger-soft: #ffebe9;
    font-family: inherit !important;
}

.booklio-appt-picker,
.booklio-modal,
.booklio-modal-content,
.booklio-modal-content *,
.booklio-customer-panel,
.booklio-customer-panel * {
    font-family: inherit !important;
}

.booklio-appt-picker {
    max-width: 760px;
    margin: 14px 0;
    padding: 18px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 16px;
    background: var(--booklio-ui-surface);
    box-shadow: none;
}

.booklio-appt-service-name {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(32, 76, 229, 0.16);
    border-radius: 999px;
    background: var(--booklio-ui-accent-soft);
    color: var(--booklio-ui-accent);
    font-size: 12px;
    font-weight: 700;
}

.booklio-appt-picker .booklio-day-carousel,
.booklio-modal-content .booklio-day-carousel,
.booklio-appt-picker .booklio-time-slots,
.booklio-modal-content .booklio-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.booklio-appt-picker .booklio-day-card,
.booklio-modal-content .booklio-day-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 12px 6px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 12px;
    background: var(--booklio-ui-surface);
    color: var(--booklio-ui-text);
    text-align: center;
    line-height: 1.15;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.booklio-appt-picker .booklio-day-card:hover:not(.booklio-day-disabled),
.booklio-modal-content .booklio-day-card:hover:not(.booklio-day-disabled) {
    border-color: rgba(32, 76, 229, 0.28);
    background: #f8faff;
    transform: translateY(-1px);
}

.booklio-appt-picker .booklio-day-card.selected,
.booklio-modal-content .booklio-day-card.selected {
    border-color: var(--booklio-ui-accent);
    background: var(--booklio-ui-accent);
    color: #ffffff;
}

.booklio-appt-picker .booklio-day-card.booklio-day-today,
.booklio-modal-content .booklio-day-card.booklio-day-today {
    border-color: rgba(32, 76, 229, 0.22);
    background: var(--booklio-ui-surface);
}

.booklio-appt-picker .booklio-day-card.booklio-day-disabled,
.booklio-modal-content .booklio-day-card.booklio-day-disabled {
    background: var(--booklio-ui-muted);
    border-color: var(--booklio-ui-border);
    color: var(--booklio-ui-subtext);
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.booklio-appt-picker .booklio-day-name,
.booklio-modal-content .booklio-day-name {
    margin-bottom: 4px;
    color: var(--booklio-ui-subtext);
    font-size: 11px;
    font-weight: 500;
}

.booklio-appt-picker .booklio-day-num,
.booklio-modal-content .booklio-day-num {
    margin-bottom: 3px;
    color: currentColor;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.booklio-appt-picker .booklio-day-month,
.booklio-modal-content .booklio-day-month {
    color: var(--booklio-ui-subtext);
    font-size: 12px;
}

.booklio-appt-picker .booklio-day-card.selected .booklio-day-name,
.booklio-appt-picker .booklio-day-card.selected .booklio-day-num,
.booklio-appt-picker .booklio-day-card.selected .booklio-day-month,
.booklio-modal-content .booklio-day-card.selected .booklio-day-name,
.booklio-modal-content .booklio-day-card.selected .booklio-day-num,
.booklio-modal-content .booklio-day-card.selected .booklio-day-month {
    color: #ffffff;
}

.booklio-appt-picker .booklio-time-slots-wrap,
.booklio-modal-content .booklio-time-slots-wrap {
    margin-top: 8px;
    padding: 14px;
    min-height: 68px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 14px;
    background: var(--booklio-ui-muted);
}

.booklio-appt-picker .time-slot-btn,
.booklio-modal-content .booklio-time-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--booklio-ui-border);
    border-radius: 10px;
    background: var(--booklio-ui-surface);
    color: var(--booklio-ui-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.booklio-appt-picker .time-slot-btn:hover,
.booklio-modal-content .booklio-time-slot:hover {
    border-color: rgba(32, 76, 229, 0.26);
    background: #f8faff;
    transform: translateY(-1px);
}

.booklio-appt-picker .time-slot-btn.selected,
.booklio-modal-content .booklio-time-slot.selected {
    border-color: var(--booklio-ui-accent);
    background: var(--booklio-ui-accent);
    color: #ffffff;
}

.booklio-appt-picker .time-slot-btn.time-slot-booked {
    background: var(--booklio-ui-muted);
    border-color: var(--booklio-ui-border);
    color: var(--booklio-ui-subtext);
    transform: none;
}

.booklio-appt-confirm,
.booklio-feedback-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(26, 127, 55, 0.18);
    border-radius: 12px;
    background: var(--booklio-ui-success-soft);
    color: #116329;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.booklio-feedback-box {
    display: none;
}

.confirm-icon,
.booklio-feedback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(26, 127, 55, 0.12);
    color: var(--booklio-ui-success);
    font-size: 14px;
    flex-shrink: 0;
}

.booklio-feedback-box.is-error {
    border-color: rgba(207, 34, 46, 0.18);
    background: var(--booklio-ui-danger-soft);
    color: #a40e26;
}

.booklio-feedback-box.is-error .booklio-feedback-icon {
    background: rgba(207, 34, 46, 0.12);
    color: var(--booklio-ui-danger);
}

.slots-placeholder,
.no-slots,
.slots-loading {
    margin: 0;
    text-align: center;
    font-size: 13px;
}

.slots-placeholder,
.no-slots {
    padding: 12px 8px;
    color: var(--booklio-ui-subtext);
    line-height: 1.5;
}

.slots-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    color: var(--booklio-ui-accent);
    font-weight: 600;
}

.slot-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(32, 76, 229, 0.18);
    border-top-color: var(--booklio-ui-accent);
    border-radius: 50%;
    animation: booklio-spin 0.7s linear infinite;
}

.booklio-modal-overlay {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(2px);
}

.booklio-modal-content {
    width: min(640px, calc(100% - 32px));
    max-height: 90vh;
    border: 1px solid rgba(208, 215, 222, 0.9);
    border-radius: 18px;
    background: var(--booklio-ui-surface);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
}

.booklio-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--booklio-ui-border);
}

.booklio-modal-header h3 {
    color: var(--booklio-ui-text);
    font-size: 19px;
    font-weight: 700;
}

.booklio-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--booklio-ui-subtext);
}

.booklio-modal-close:hover {
    background: var(--booklio-ui-muted);
    color: var(--booklio-ui-text);
}

.booklio-modal-body {
    padding: 20px;
}

.booklio-modal-actions {
    margin-top: 18px;
    margin-bottom: 20px;
    gap: 10px;
}

.booklio-modal-actions .button,
.booklio-reservation-actions .button {
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--booklio-ui-border);
    background: var(--booklio-ui-surface);
    color: var(--booklio-ui-text);
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
}

.booklio-reservation-actions .button {
    border: 1px solid #d0d7de;
}

.booklio-modal-actions .button:hover,
.booklio-reservation-actions .button:hover {
    border-color: rgba(32, 76, 229, 0.24);
    background: #f8faff;
    color: var(--booklio-ui-text);
}

.booklio-modal-actions .button.button-primary {
    border-color: var(--booklio-ui-accent);
    background: var(--booklio-ui-accent);
    color: #ffffff;
}

.booklio-modal-actions .button.button-primary:hover {
    border-color: var(--booklio-ui-accent-strong);
    background: var(--booklio-ui-accent-strong);
    color: #ffffff;
}

.booklio-modal-actions .button[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .booklio-appt-picker .booklio-day-carousel,
    .booklio-modal-content .booklio-day-carousel,
    .booklio-appt-picker .booklio-time-slots,
    .booklio-modal-content .booklio-time-slots-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .booklio-modal-content {
        width: calc(100% - 24px);
    }
}

@media (max-width: 480px) {
    .booklio-appt-picker,
    .booklio-modal-body {
        padding: 14px;
    }

    .booklio-appt-picker .booklio-day-carousel,
    .booklio-modal-content .booklio-day-carousel,
    .booklio-appt-picker .booklio-time-slots,
    .booklio-modal-content .booklio-time-slots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Final reference-tight overrides (wins against theme button resets) */
.booklio-appt-picker button.booklio-day-card,
.booklio-modal-content button.booklio-day-card {
    position: relative;
    width: 100%;
    padding: 10px 6px 11px;
    border: 1px solid #d0d7de !important;
    border-radius: 8px;
    font-family: inherit !important;
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.15;
    color: #111827 !important;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.booklio-appt-picker button.booklio-day-card:hover:not(.booklio-day-disabled):not(.selected),
.booklio-modal-content button.booklio-day-card:hover:not(.booklio-day-disabled):not(.selected) {
    border-color: rgba(32, 76, 229, 0.28) !important;
    background-color: #f8faff !important;
    transform: translateY(-1px);
}

.booklio-modal-content button.booklio-day-card:hover:not(.booklio-day-disabled):not(.selected) {
    border-color: #d0d7de !important;
    background-color: #ffffff !important;
    transform: none;
}

.booklio-appt-picker,
.booklio-appt-picker.vz-card,
.gform_wrapper .booklio-appt-picker,
.gform_wrapper.gravity-theme .booklio-appt-picker,
.booklio-modal-content,
.booklio-modal-content .booklio-change-calendar,
.booklio-appt-picker .booklio-time-slots,
.booklio-modal-content .booklio-time-slots-grid,
.booklio-feedback-box {
    background-color: #ffffff !important;
}

/* Remove background from specific selectors */
.booklio-appt-picker,
.booklio-appt-picker.vz-card,
.gform_wrapper .booklio-appt-picker {
    background-color: transparent !important;
}

.booklio-time-slots-wrap {
    margin-top: 16px !important;
    min-height: auto !important;
    padding: 12px !important;
    border: 1px solid #d0d7de !important;
    border-radius: 10px !important;
    background: #f6f8fa !important;
}

.booklio-feedback-box.is-success {
    border: 1px solid rgba(26, 127, 55, 0.18) !important;
    border-radius: 12px !important;
    background: #dafbe1 !important;
    color: #116329 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

.booklio-feedback-box {
    border-radius: 12px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

.booklio-feedback-box.is-error {
    border: 1px solid rgba(207, 34, 46, 0.18) !important;
    background: #ffebe9 !important;
    color: #a40e26 !important;
}

.booklio-feedback-box.is-error .booklio-feedback-icon {
    background: rgba(207, 34, 46, 0.12) !important;
    color: #cf222e !important;
}

.booklio-appt-confirm.is-warning {
    border-color: rgba(245, 158, 11, 0.45) !important;
    border-right-color: #f59e0b !important;
    background: #fff7ed !important;
    color: #9a3412 !important;
    box-shadow: none !important;
}

.booklio-appt-confirm.is-warning .confirm-icon {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #9a3412 !important;
}

.booklio-appt-confirm {
    grid-column: 1 / -1 !important;
    width: 100%;
    box-sizing: border-box !important;
    margin: 14px 0 10px !important;
    padding: 12px 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-right: 3px solid #2da44e !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

.booklio-appt-confirm.is-dismissing {
    animation: booklioInvoiceDismiss 180ms ease forwards !important;
    pointer-events: none !important;
}

@keyframes booklioInvoiceDismiss {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.gform_wrapper .gfield--type-booklio_service,
.gform_wrapper .gfield--type-booklio_employee,
.gform_wrapper .gfield--type-booklio_resource,
.gform_wrapper .gfield--type-booklio_occupancy,
.gform_wrapper .gfield--type-booklio_extra_services,
.gform_wrapper .gfield--type-booklio_recurring,
.gform_wrapper .gfield--type-booklio_booking_time {
    display: none !important;
}

.booklio-appt-confirm [data-booklio-confirm-text] {
    display: grid !important;
    gap: 2px !important;
    width: 100% !important;
}

.booklio-appt-confirm [data-booklio-confirm-text]:empty {
    display: none !important;
}

.booklio-appt-confirm:has([data-booklio-confirm-text]:empty),
.booklio-appt-confirm--runtime:has([data-booklio-confirm-text]:empty) {
    display: none !important;
}

.booklio-appt-confirm-line {
    align-items: center !important;
    border-bottom: 1px solid #eef2f7 !important;
    direction: rtl !important;
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: minmax(86px, 38%) minmax(0, 1fr) !important;
    min-width: 0 !important;
    padding: 6px 0 !important;
    width: 100% !important;
}

.booklio-appt-confirm-line.is-main {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 6px 0 !important;
}

.booklio-appt-confirm-label {
    color: #5f6b7a !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    justify-self: start !important;
    line-height: 1.55 !important;
    min-width: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

.booklio-appt-confirm-value {
    color: #1f2937 !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    justify-self: end !important;
    line-height: 1.55 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
}

.booklio-appt-confirm-line .booklio-appt-confirm-value:only-child {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    text-align: right !important;
}

.booklio-appt-confirm-line.is-main .booklio-appt-confirm-label,
.booklio-appt-confirm-line.is-main .booklio-appt-confirm-value,
.booklio-appt-confirm-line:last-child .booklio-appt-confirm-label,
.booklio-appt-confirm-line:last-child .booklio-appt-confirm-value {
    color: inherit;
    font-weight: inherit;
}

.booklio-appt-confirm-line:last-child {
    border-bottom: 0 !important;
    margin-top: 4px !important;
    padding-bottom: 0 !important;
}

html[dir="rtl"] .booklio-appt-confirm-value,
body.rtl .booklio-appt-confirm-value {
    text-align: left;
}

@media (max-width: 520px) {
    .booklio-appt-confirm-line {
        align-items: center !important;
        gap: 10px !important;
        grid-template-columns: minmax(78px, 42%) minmax(0, 1fr) !important;
    }

    .booklio-appt-confirm-value,
    html[dir="rtl"] .booklio-appt-confirm-value,
    body.rtl .booklio-appt-confirm-value {
        text-align: left;
    }

    .booklio-appt-confirm-label {
        white-space: normal !important;
    }
}

.gform_wrapper:has(.booklio-appt-picker) .gform_page_footer .gform_next_button,
.gform_wrapper:has(.booklio-appt-picker) .gform_page_footer .gform_previous_button,
.gform_wrapper:has(.booklio-appt-picker) .gform_footer .gform_button,
.gform_wrapper:has(.booklio-appt-picker) .gform_footer button,
.gform_wrapper:has(.booklio-appt-picker) .gform_footer input[type="submit"] {
    font-family: inherit !important;
}

.booklio-front-toast {
    align-items: flex-start;
    background: #fff5f5;
    border: 1px solid rgba(180, 35, 24, 0.24);
    border-radius: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    box-sizing: border-box;
    color: #8f1d1d;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    inset-inline: 12px;
    justify-content: flex-start;
    line-height: 1.8;
    margin: 0 auto;
    max-width: min(420px, calc(100vw - 24px));
    opacity: 0;
    padding: 14px 16px;
    pointer-events: none;
    position: fixed;
    text-align: right;
    transform: translateY(14px);
    transition: opacity 180ms ease, transform 180ms ease;
    width: max-content;
    z-index: 999999;
}

.booklio-front-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.booklio-front-toast.is-success {
    background: #f0fdf4;
    border-color: rgba(22, 112, 58, 0.22);
    color: #166534;
}

.booklio-front-toast.is-error {
    background: #fff5f5;
    border-color: rgba(180, 35, 24, 0.24);
    color: #8f1d1d;
}

.booklio-appt-picker,
.booklio-appt-confirm,
.booklio-appt-confirm--runtime {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.booklio-appt-confirm,
.booklio-appt-confirm--runtime {
    overflow-wrap: anywhere;
}

.booklio-appt-picker,
.booklio-appt-picker *,
.booklio-modal-content,
.booklio-modal-content *,
.booklio-appt-picker button,
.booklio-appt-picker button *,
.booklio-modal-content button,
.booklio-modal-content button *,
.booklio-appt-picker .booklio-day-name,
.booklio-appt-picker .booklio-day-num,
.booklio-appt-picker .booklio-day-month,
.booklio-modal-content .booklio-day-name,
.booklio-modal-content .booklio-day-num,
.booklio-modal-content .booklio-day-month,
.booklio-appt-picker .time-slot-btn,
.booklio-modal-content .booklio-time-slot {
    font-family: inherit !important;
}

.booklio-appt-picker button.booklio-day-card.booklio-day-disabled,
.booklio-modal-content button.booklio-day-card.booklio-day-disabled {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
}

.booklio-appt-picker button.booklio-day-card.selected,
.booklio-modal-content button.booklio-day-card.selected {
    background-color: #2f53d9 !important;
    border-color: #2f53d9 !important;
    color: #ffffff !important;
}

.booklio-modal-content button.booklio-day-card.selected {
    background-color: #2f53d9 !important;
    border-color: #2f53d9 !important;
    color: #ffffff !important;
}

.booklio-appt-picker button.booklio-day-card.selected .booklio-day-name,
.booklio-appt-picker button.booklio-day-card.selected .booklio-day-num,
.booklio-appt-picker button.booklio-day-card.selected .booklio-day-month,
.booklio-modal-content button.booklio-day-card.selected .booklio-day-name,
.booklio-modal-content button.booklio-day-card.selected .booklio-day-num,
.booklio-modal-content button.booklio-day-card.selected .booklio-day-month {
    color: #ffffff !important;
}

.booklio-appt-picker button.time-slot-btn,
.booklio-modal-content button.booklio-time-slot {
    border: 1px solid #d0d7de !important;
    border-radius: 6px;
    min-height: 36px;
    padding: 8px 6px;
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
    color: #111827 !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.booklio-appt-picker button.time-slot-btn:hover:not(.selected):not(.time-slot-booked),
.booklio-modal-content button.booklio-time-slot:hover:not(.selected):not(.time-slot-booked) {
    border-color: rgba(32, 76, 229, 0.26) !important;
    background-color: #f8faff !important;
    transform: translateY(-1px);
}

.booklio-appt-picker button.time-slot-btn.selected,
.booklio-modal-content button.booklio-time-slot.selected {
    background-color: #2f53d9 !important;
    border-color: #2f53d9 !important;
    color: #ffffff !important;
}

.booklio-modal-content .booklio-customer-full-day-picker .booklio-calendar-field .booklio-jalali-input {
    min-height: 36px !important;
    border: 1px solid #d0d7de !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111827 !important;
    padding: 8px 10px !important;
    box-sizing: border-box;
}

.booklio-modal-content button.booklio-time-slot.selected {
    background-color: #2f53d9 !important;
    border-color: #2f53d9 !important;
}

.booklio-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.booklio-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.booklio-modal-overlay {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.booklio-modal.is-open .booklio-modal-overlay {
    opacity: 1;
}

.booklio-modal-content {
    width: min(700px, calc(100% - 32px)) !important;
    max-height: min(86vh, 760px) !important;
    overflow: hidden !important;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.985);
    transition: transform 0.22s ease, opacity 0.22s ease;
    will-change: transform, opacity;
}

.booklio-modal.is-open .booklio-modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.booklio-modal-body {
    max-height: calc(min(86vh, 760px) - 84px) !important;
    overflow-y: auto !important;
}

.booklio-modal-content .booklio-time-slots-wrap {
    max-height: none;
    overflow-y: visible;
    background-color: #f6f8fa !important;
}

.booklio-modal-header {
    border-bottom: 1px solid #eee !important;
}

.booklio-modal-actions .button {
    border: 1px solid #eee !important;
    background: #f8faff !important;
    color: #333333 !important;
}

.booklio-modal-actions .button.button-primary,
.booklio-modal-actions .button.button-primary:hover {
    border-color: #2f53d9 !important;
    background: #2f53d9 !important;
    color: #ffffff !important;
}

.booklio-modal-content .booklio-time-slots-grid,
.booklio-appt-picker .booklio-time-slots {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.booklio-modal-content .booklio-time-slots-grid,
.booklio-appt-picker .booklio-time-slots {
    gap: 6px !important;
    background-color: transparent !important;
}

.booklio-appt-picker .booklio-time-slots {
    gap: 6px !important;
}

@media (max-width: 760px) {
    .booklio-modal-content .booklio-time-slots-grid,
    .booklio-appt-picker .booklio-time-slots {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .booklio-modal-content .booklio-time-slots-grid,
    .booklio-appt-picker .booklio-time-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .booklio-modal-content {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        transform: translateY(-50%) !important;
        max-height: 92vh !important;
        border-radius: 12px !important;
    }

    .booklio-modal-header {
        padding: 14px 16px !important;
    }

    .booklio-modal-header h3 {
        font-size: 16px !important;
    }

    .booklio-modal-body {
        padding: 14px !important;
        max-height: calc(92vh - 66px) !important;
    }

    .booklio-modal-content .booklio-day-carousel,
    .booklio-modal-content .booklio-time-slots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .booklio-modal-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        margin-top: 14px !important;
    }

    .booklio-modal-actions .button {
        width: 100% !important;
        min-height: 40px !important;
        padding: 8px 10px !important;
    }
}

@media (max-width: 480px) {
    .booklio-modal-content {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        transform: translateY(-50%) !important;
        max-height: 94vh !important;
        border-radius: 10px !important;
    }

    .booklio-modal-body {
        padding: 12px !important;
        max-height: calc(94vh - 62px) !important;
    }

    .booklio-modal-content .booklio-day-carousel,
    .booklio-modal-content .booklio-time-slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .booklio-modal-actions {
        grid-template-columns: 1fr !important;
    }
}

/* Customer-panel modal enhancements */
.booklio-cancel-confirm-text {
    margin: 0 0 14px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(207, 34, 46, 0.2) !important;
    border-radius: 12px !important;
    background: #ffebe9 !important;
    color: #7d1022 !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
}

.booklio-cancel-confirm-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
    padding: 12px 14px !important;
    border: 1px solid #d0d7de !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1f2328 !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease !important;
}

.booklio-cancel-confirm-check:hover {
    border-color: rgba(47, 83, 217, 0.28) !important;
    background: #f8faff !important;
    transform: translateY(-1px);
}

.booklio-cancel-confirm-check input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    accent-color: #cf222e;
    flex-shrink: 0;
}

.booklio-cancel-confirm-check span {
    font-size: 13px !important;
    line-height: 1.75 !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.booklio-modal-actions .button.booklio-button-danger {
    border-color: #cf222e !important;
    background: #cf222e !important;
    color: #ffffff !important;
}

.booklio-modal-actions .button.booklio-button-danger:hover {
    border-color: #a40e26 !important;
    background: #a40e26 !important;
}

.booklio-modal-actions .button.booklio-button-danger[disabled] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

/* Gravity frontend migration polish: only Booklio-owned UI should be themed; standard Gravity controls stay native. */
.booklio-modal-actions .button:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(32, 76, 229, 0.18) !important;
}

.booklio-modal-actions .button[disabled] {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.booklio-front-toast {
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    padding: 12px 16px;
}

.booklio-front-toast.is-success {
    background: var(--booklio-ui-success) !important;
    border-color: rgba(26, 127, 55, 0.22);
    color: #ffffff;
}

.booklio-front-toast.is-error {
    background: var(--booklio-ui-danger) !important;
    border-color: rgba(207, 34, 46, 0.22);
    color: #ffffff;
}

.booklio-appt-confirm,
.booklio-appt-confirm--runtime {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(26, 127, 55, 0.16);
    border-radius: 14px;
    background: var(--booklio-ui-success-soft);
    color: #0f5132;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    line-height: 1.7;
}

.booklio-appt-confirm-body {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.booklio-appt-confirm-title {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.booklio-appt-confirm [id^="confirmtxt_"],
.booklio-appt-confirm--runtime [id^="confirmtxt_"] {
    gap: 6px;
}

.booklio-appt-confirm-line {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: inherit;
}

.booklio-appt-confirm-line .booklio-appt-confirm-label {
    color: rgba(15, 81, 50, 0.76);
    font-weight: 700;
}

.booklio-appt-confirm-line .booklio-appt-confirm-value {
    font-weight: 600;
}

.booklio-appt-confirm-line.is-total {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(32, 76, 229, 0.12);
}

.booklio-appt-confirm-line.is-total .booklio-appt-confirm-label,
.booklio-appt-confirm-line.is-total .booklio-appt-confirm-value {
    color: var(--booklio-ui-accent);
    font-weight: 800;
}

.booklio-appt-confirm-line.is-total .booklio-appt-confirm-value {
    font-size: 15px;
}

.booklio-appt-confirm.is-warning,
.booklio-appt-confirm--runtime.is-warning {
    border-color: rgba(245, 158, 11, 0.25);
    background: #fff7ed;
    color: #9a3412;
}

.booklio-appt-confirm.is-warning .confirm-icon,
.booklio-appt-confirm--runtime.is-warning .confirm-icon {
    background: #ffedd5;
    color: #c2410c;
}

.booklio-appt-confirm.is-warning .booklio-appt-confirm-label,
.booklio-appt-confirm--runtime.is-warning .booklio-appt-confirm-label {
    color: rgba(154, 52, 18, 0.78);
}

.booklio-form-loading-overlay {
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 16px;
}

.booklio-form-loading-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
    border-color: rgba(208, 215, 222, 0.9);
    border-top-color: var(--booklio-ui-accent);
}

.booklio-modal-actions {
    gap: 10px;
    margin-top: 18px;
}

.booklio-modal-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    border: 1px solid var(--booklio-ui-border) !important;
    background: var(--booklio-ui-surface) !important;
    color: var(--booklio-ui-text) !important;
    box-shadow: var(--booklio-front-button-shadow) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}

.booklio-modal-actions .button:hover {
    border-color: rgba(32, 76, 229, 0.22) !important;
    background: #f8faff !important;
    transform: translateY(-1px);
}

.booklio-modal-actions .button.button-primary,
.booklio-modal-actions .button.button-primary:hover {
    border-color: var(--booklio-ui-accent) !important;
    background: var(--booklio-ui-accent) !important;
    color: #ffffff !important;
}

.booklio-modal-actions .button.button-primary:hover {
    border-color: var(--booklio-ui-accent-strong) !important;
    background: var(--booklio-ui-accent-strong) !important;
}

.booklio-modal-actions .button.button-secondary {
    border-color: var(--booklio-ui-border) !important;
    background: var(--booklio-ui-surface) !important;
    color: var(--booklio-ui-text) !important;
}

.booklio-modal-actions .button.button-secondary:hover {
    border-color: rgba(31, 35, 40, 0.16) !important;
    background: #f8fafc !important;
}

#booklio-change-success-feedback {
    animation: booklioSuccessPulse 0.42s ease;
}

#booklio-change-success-feedback .booklio-feedback-icon {
    animation: booklioSuccessPop 0.32s ease;
}

@keyframes booklioSuccessPulse {
    0% {
        transform: scale(0.985);
        opacity: 0.72;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes booklioSuccessPop {
    0% {
        transform: scale(0.7);
    }
    80% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.booklio-addon-picker {
    display: block;
}

.booklio-addon-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.booklio-addon-option {
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 0;
    padding: 0;
    margin: 0 !important;
    align-items: center;
}

.booklio-addon-option:hover {
    background-color: transparent !important;
}

.booklio-addon-option-check {
    display: none;
}

.booklio-addon-option:has(.booklio-addon-checkbox:checked) {
    background: transparent !important;
    border-color: transparent !important;
    border-width: 0 !important;
}

.booklio-addon-option:has(.booklio-addon-checkbox:checked) > span.booklio-addon-option-body strong,
.booklio-addon-option:has(.booklio-addon-checkbox:checked) > .booklio-addon-option-meta{
    color: #2f53d9 !important;
}
.booklio-addon-option-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.booklio-addon-option-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.booklio-addon-option-description {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.booklio-addon-option-meta {
    color: #444;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
    white-space: nowrap;
}

.booklio-addon-option:has(.booklio-addon-checkbox:checked) .booklio-addon-option-title {
    color: #333 !important;
}

.booklio-addon-option:has(.booklio-addon-checkbox:checked) .booklio-addon-option-description {
    color: #6b7280 !important;
}

@media (max-width: 520px) {
    .booklio-addon-option {
        align-items: flex-start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .booklio-addon-option-meta {
        grid-column: 2;
        text-align: right;
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .booklio-recurring-options {
        grid-template-columns: 1fr;
    }

    .booklio-recurring-options .booklio-duration-picker-label:nth-of-type(1),
    .booklio-recurring-options .booklio-duration-picker-select:nth-of-type(1),
    .booklio-recurring-options .booklio-duration-picker-label:nth-of-type(2),
    .booklio-recurring-options .booklio-duration-picker-select:nth-of-type(2) {
        grid-column: 1;
    }

    .booklio-recurring-options .booklio-duration-picker-label:nth-of-type(1) {
        grid-row: 1;
    }

    .booklio-recurring-options .booklio-duration-picker-select:nth-of-type(1) {
        grid-row: 2;
    }

    .booklio-recurring-options .booklio-duration-picker-label:nth-of-type(2) {
        grid-row: 3;
    }

    .booklio-recurring-options .booklio-duration-picker-select:nth-of-type(2) {
        grid-row: 4;
    }
}

.booklio-first-slot-row {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    margin: 0 0 10px;
}

.booklio-first-slot-button {
    appearance: none;
    background: var(--booklio-ui-surface);
    border: 1px solid var(--booklio-ui-border) !important;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    color: var(--booklio-ui-text) !important;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 40px;
    padding: 8px 14px;
    text-decoration: none !important;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.booklio-first-slot-button:hover:not(:disabled) {
    background: #f8faff;
    border-color: rgba(32, 76, 229, 0.22) !important;
    color: var(--booklio-ui-accent) !important;
    transform: translateY(-1px);
}

.booklio-first-slot-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

@media (max-width: 520px) {
    .booklio-first-slot-button {
        width: 100%;
    }
}

.gform_wrapper:has(.booklio-appt-picker) .booklio-payment-total-empty {
    display: none !important;
}

.gform_wrapper:has(.booklio-appt-picker) .booklio-hidden-price-source {
    display: none !important;
}

.gform_wrapper:has(.booklio-appt-picker) .booklio-hidden-total-source {
    display: none !important;
}

.gform_wrapper:has(.booklio-appt-picker) .booklio-appt-confirm,
.gform_wrapper:has(.booklio-appt-picker) .booklio-appt-confirm--runtime,
.gform_wrapper:has(.booklio-appt-picker) .booklio-inline-summary,
.gform_wrapper:has(.booklio-appt-picker) .booklio-inline-summary--runtime,
.gform_wrapper:has(.booklio-appt-picker) [data-booklio-runtime-confirm],
.gform_wrapper:has(.booklio-appt-picker) .gfield_total,
.gform_wrapper:has(.booklio-appt-picker) .gform_footer,
.gform_wrapper:has(.booklio-appt-picker) .gform_page_footer {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    margin-inline: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

.gform_wrapper:has(.booklio-appt-picker) .gfield_total .ginput_container_total,
.gform_wrapper:has(.booklio-appt-picker) .gfield_total .ginput_total {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

.gform_wrapper:has(.booklio-appt-picker) .gform_footer,
.gform_wrapper:has(.booklio-appt-picker) .gform_page_footer {
    margin-bottom: 32px !important;
    padding-bottom: 32px !important;
}

.booklio-time-slots-description {
    color: var(--booklio-ui-subtext) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    .booklio-appt-picker {
        gap: 10px !important;
    }

    .booklio-appt-picker .booklio-day-carousel {
        margin-bottom: 0 !important;
    }

    .booklio-appt-picker .booklio-time-slots-wrap {
        margin-top: 6px !important;
        min-height: 84px !important;
        padding: 12px !important;
    }

    .booklio-appt-confirm,
    .booklio-appt-confirm--runtime {
        margin-top: 12px !important;
        padding: 10px 12px !important;
    }

    .gform_wrapper:has(.booklio-appt-picker) .gform_footer,
    .gform_wrapper:has(.booklio-appt-picker) .gform_page_footer {
        align-items: stretch !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .gform_wrapper:has(.booklio-appt-picker) .gform_footer > *,
    .gform_wrapper:has(.booklio-appt-picker) .gform_page_footer > * {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .booklio-time-slots-description {
        margin: 4px 0 4px !important;
    }
}

@media (max-width: 480px) {
    .booklio-appt-picker {
        padding: 12px !important;
    }

    .booklio-appt-picker .booklio-day-carousel,
    .booklio-appt-picker .booklio-time-slots {
        gap: 5px !important;
    }

    .booklio-appt-picker .booklio-time-slots-wrap {
        border-radius: 12px !important;
    }
}

/* Final frontend overrides for Booklio-owned Gravity booking UI.
   Keep standard Gravity controls untouched; only align Booklio calendar/invoice surfaces with the UI library patterns. */
.booklio-appt-picker .booklio-booking-calendar-surface {
    margin-top: 10px !important;
    padding: 16px !important;
    border: 1px solid var(--booklio-ui-border) !important;
    border-radius: 16px !important;
    background: var(--booklio-ui-surface) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.booklio-appt-picker .booklio-booking-calendar-header,
.booklio-appt-picker .booklio-time-slots-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
}

.booklio-appt-picker .booklio-booking-calendar-heading,
.booklio-appt-picker .booklio-time-slots-heading {
    margin: 0 !important;
    color: var(--booklio-ui-text) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
}

.booklio-appt-picker .booklio-booking-calendar-description {
    margin: 0 !important;
    color: var(--booklio-ui-subtext) !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
}

.booklio-appt-picker .booklio-calendar-picker {
    margin-bottom: 14px !important;
}

.booklio-appt-picker .booklio-calendar-field {
    gap: 8px !important;
}

.booklio-appt-picker .booklio-calendar-field > span {
    color: var(--booklio-ui-subtext) !important;
    font-weight: 800 !important;
}

.booklio-appt-picker .booklio-calendar-field .booklio-jalali-input {
    min-height: 44px !important;
    border: 1px solid var(--booklio-ui-border) !important;
    border-radius: 12px !important;
    background: var(--booklio-ui-surface) !important;
    color: var(--booklio-ui-text) !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.booklio-appt-picker .booklio-calendar-field .booklio-jalali-input:hover {
    border-color: rgba(32, 76, 229, 0.28) !important;
    background: #f8faff !important;
}

.booklio-jalali-dropdown {
    width: 284px !important;
    padding: 12px !important;
    border: 1px solid var(--booklio-ui-border) !important;
    border-radius: 16px !important;
    background: var(--booklio-ui-surface) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
}

.booklio-jalali-dropdown .jalali-month-title {
    color: var(--booklio-ui-text) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.booklio-jalali-dropdown .jnav {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid var(--booklio-ui-border) !important;
    border-radius: 10px !important;
    background: var(--booklio-ui-surface) !important;
    color: var(--booklio-ui-text) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.booklio-jalali-dropdown .jnav:hover {
    border-color: rgba(32, 76, 229, 0.24) !important;
    background: #f8faff !important;
    color: var(--booklio-ui-accent) !important;
}

.booklio-jalali-dropdown .jalali-tbl th {
    color: var(--booklio-ui-subtext) !important;
    padding: 7px 4px !important;
}

.booklio-jalali-dropdown .jday {
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 10px !important;
    color: var(--booklio-ui-text) !important;
}

.booklio-jalali-dropdown .jday:hover {
    background: #f8faff !important;
    color: var(--booklio-ui-accent) !important;
}

.booklio-jalali-dropdown .jday.jtoday {
    background: var(--booklio-ui-accent-soft) !important;
    color: var(--booklio-ui-accent) !important;
}

.booklio-jalali-dropdown .jday.jsel,
.booklio-jalali-dropdown .jday.jrange.jrange-start,
.booklio-jalali-dropdown .jday.jrange.jrange-end {
    background: var(--booklio-ui-accent) !important;
    color: #ffffff !important;
}

.booklio-jalali-dropdown .jday.jrange {
    background: rgba(32, 76, 229, 0.12) !important;
    color: var(--booklio-ui-accent) !important;
}

.booklio-appt-picker .booklio-first-slot-button {
    min-height: 40px !important;
    padding: 8px 14px !important;
    border: 1px solid var(--booklio-ui-border) !important;
    border-radius: 12px !important;
    background: var(--booklio-ui-surface) !important;
    color: var(--booklio-ui-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.booklio-appt-picker .booklio-first-slot-button:hover:not(:disabled) {
    border-color: rgba(32, 76, 229, 0.22) !important;
    background: #f8faff !important;
    color: var(--booklio-ui-accent) !important;
}

.booklio-appt-picker .booklio-day-carousel {
    gap: 10px !important;
}

.booklio-appt-picker .booklio-day-card {
    min-height: 94px !important;
    padding: 12px 8px !important;
    border: 1px solid var(--booklio-ui-border) !important;
    border-radius: 14px !important;
    background: var(--booklio-ui-surface) !important;
    color: var(--booklio-ui-text) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.booklio-appt-picker .booklio-day-name,
.booklio-appt-picker .booklio-day-month {
    color: var(--booklio-ui-subtext) !important;
}

.booklio-appt-picker .booklio-day-card:hover {
    border-color: rgba(32, 76, 229, 0.28) !important;
    background: #f8faff !important;
    transform: translateY(-1px);
}

.booklio-appt-picker .booklio-day-card.selected {
    border-color: var(--booklio-ui-accent) !important;
    background: var(--booklio-ui-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(32, 76, 229, 0.18) !important;
}

.booklio-appt-picker .booklio-day-card.booklio-day-today {
    border-color: rgba(32, 76, 229, 0.24) !important;
    background: var(--booklio-ui-accent-soft) !important;
}

.booklio-appt-picker .booklio-time-slots-wrap {
    padding: 14px !important;
    border: 1px solid var(--booklio-ui-border) !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
}

.booklio-appt-picker .booklio-time-slots {
    gap: 10px !important;
}

.booklio-appt-picker .time-slot-btn {
    min-height: 44px !important;
    padding: 10px 8px !important;
    border: 1px solid var(--booklio-ui-border) !important;
    border-radius: 12px !important;
    background: var(--booklio-ui-surface) !important;
    color: var(--booklio-ui-text) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.booklio-appt-picker .time-slot-btn:hover {
    border-color: rgba(32, 76, 229, 0.28) !important;
    background: #f8faff !important;
    color: var(--booklio-ui-accent) !important;
    transform: translateY(-1px);
}

.booklio-appt-picker .time-slot-btn.selected {
    border-color: var(--booklio-ui-accent) !important;
    background: var(--booklio-ui-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(32, 76, 229, 0.18) !important;
}

.booklio-appt-picker .booklio-range-summary {
    border-color: rgba(32, 76, 229, 0.18) !important;
    border-radius: 14px !important;
    background: var(--booklio-ui-accent-soft) !important;
    color: var(--booklio-ui-text) !important;
}

.booklio-appt-picker .booklio-appt-confirm,
.booklio-appt-picker .booklio-appt-confirm--runtime {
    border-color: var(--booklio-ui-border) !important;
    border-radius: 16px !important;
    background: var(--booklio-ui-surface) !important;
    color: var(--booklio-ui-text) !important;
}

.booklio-appt-picker .booklio-appt-confirm-title {
    color: var(--booklio-ui-text) !important;
}

.booklio-appt-picker .booklio-appt-confirm-line {
    border-top: 1px solid rgba(208, 215, 222, 0.7);
    padding-top: 8px;
}

.booklio-appt-picker .booklio-appt-confirm-line:first-child {
    border-top: 0;
    padding-top: 0;
}

.booklio-appt-picker .booklio-appt-confirm-line .booklio-appt-confirm-label {
    color: var(--booklio-ui-subtext) !important;
}

.booklio-appt-picker .booklio-appt-confirm-line.is-total .booklio-appt-confirm-label,
.booklio-appt-picker .booklio-appt-confirm-line.is-total .booklio-appt-confirm-value {
    color: var(--booklio-ui-accent) !important;
}

/* Gravity frontend Booklio-only UI alignment */
.booklio-appt-picker .booklio-jalali-dropdown {
    overflow: hidden !important;
    isolation: isolate;
    padding: 0 !important;
    border: 1px solid rgba(228, 228, 231, 0.96) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 10px 20px rgba(15, 23, 42, 0.08) !important;
}

.booklio-appt-picker .booklio-jalali-dropdown::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

.booklio-appt-picker .booklio-jalali-dropdown .jalali-cal {
    display: grid;
    gap: 12px;
    padding: 12px;
    background: transparent !important;
}

.booklio-appt-picker .booklio-jalali-dropdown .jalali-hdr {
    margin-bottom: 0 !important;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(228, 228, 231, 0.9);
}

.booklio-appt-picker .booklio-jalali-dropdown .jalali-month-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.7;
}

.booklio-appt-picker .booklio-jalali-dropdown .jnav {
    width: 28px;
    height: 28px;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.booklio-appt-picker .booklio-jalali-dropdown .jnav:hover {
    background: rgba(47, 83, 217, 0.08) !important;
}

.booklio-appt-picker .booklio-jalali-dropdown .jalali-tbl th {
    padding: 5px 4px 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.booklio-appt-picker .booklio-jalali-dropdown .jalali-tbl td {
    padding: 3px !important;
}

.booklio-appt-picker .booklio-jalali-dropdown .jday {
    height: 38px !important;
    line-height: 38px !important;
    border: 1px solid transparent;
    border-radius: 12px !important;
    background: #ffffff;
    font-size: 13px !important;
    font-weight: 700;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.booklio-appt-picker .booklio-jalali-dropdown .jday:hover {
    border-color: rgba(47, 83, 217, 0.18);
    background: rgba(47, 83, 217, 0.05) !important;
}

.booklio-appt-picker .booklio-jalali-dropdown .jday.jtoday {
    border-color: rgba(47, 83, 217, 0.18);
    background: rgba(47, 83, 217, 0.08) !important;
}

.booklio-appt-picker .booklio-jalali-dropdown .jday.jsel,
.booklio-appt-picker .booklio-jalali-dropdown .jday.jrange.jrange-start,
.booklio-appt-picker .booklio-jalali-dropdown .jday.jrange.jrange-end {
    border-color: var(--booklio-ui-accent) !important;
    background: var(--booklio-ui-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(47, 83, 217, 0.22);
}

.booklio-appt-picker .booklio-jalali-dropdown .jday.jrange,
.booklio-appt-picker .booklio-jalali-dropdown .jday.jrange-preview {
    background: rgba(47, 83, 217, 0.1) !important;
    color: var(--booklio-ui-accent) !important;
}

.booklio-appt-picker .booklio-jalali-dropdown .jday.jdis {
    background: #f8fafc !important;
    color: rgba(9, 9, 11, 0.36) !important;
    border-color: transparent !important;
    opacity: 1 !important;
}

.booklio-appt-picker .booklio-range-summary {
    padding: 0 !important;
    border: 1px solid rgba(228, 228, 231, 0.96) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden;
}

.booklio-appt-picker .booklio-range-summary::before {
    content: none !important;
}

.booklio-appt-picker .booklio-range-summary-shell,
.booklio-appt-picker .booklio-appt-confirm-shell {
    display: grid;
    gap: 10px;
}

.booklio-appt-picker .booklio-summary-eyebrow {
    padding: 14px 16px 0;
    color: var(--booklio-ui-subtext);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.6;
}

.booklio-appt-picker .booklio-summary-title {
    padding: 0 16px;
    color: var(--booklio-ui-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
}

.booklio-appt-picker .booklio-range-summary-list,
.booklio-appt-picker .booklio-appt-confirm-list {
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.booklio-appt-picker .booklio-range-summary-body .booklio-appt-confirm-item,
.booklio-appt-picker .booklio-appt-confirm-body-list .booklio-appt-confirm-item,
.booklio-appt-picker .booklio-appt-confirm-list .booklio-appt-confirm-item {
    grid-template-columns: minmax(7rem, 0.45fr) 1fr;
    gap: 20px;
    align-items: start;
    padding: 11px 16px;
}

.booklio-appt-picker .booklio-range-summary-body .booklio-appt-confirm-item + .booklio-appt-confirm-item,
.booklio-appt-picker .booklio-appt-confirm-body-list .booklio-appt-confirm-item + .booklio-appt-confirm-item,
.booklio-appt-picker .booklio-appt-confirm-list .booklio-appt-confirm-item + .booklio-appt-confirm-item {
    border-top: 1px solid rgba(228, 228, 231, 0.9);
}

.booklio-appt-picker .booklio-range-summary-body .booklio-appt-confirm-label,
.booklio-appt-picker .booklio-appt-confirm-body-list .booklio-appt-confirm-label,
.booklio-appt-picker .booklio-appt-confirm-list .booklio-appt-confirm-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--booklio-ui-subtext) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

.booklio-appt-picker .booklio-range-summary-body .booklio-appt-confirm-value,
.booklio-appt-picker .booklio-appt-confirm-body-list .booklio-appt-confirm-value,
.booklio-appt-picker .booklio-appt-confirm-list .booklio-appt-confirm-value {
    color: var(--booklio-ui-text) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.booklio-appt-picker .booklio-range-summary-body .booklio-appt-confirm-item.is-total,
.booklio-appt-picker .booklio-appt-confirm-body-list .booklio-appt-confirm-item.is-total,
.booklio-appt-picker .booklio-appt-confirm-list .booklio-appt-confirm-item.is-total {
    background: rgba(47, 83, 217, 0.05);
}

.booklio-appt-picker .booklio-appt-confirm,
.booklio-appt-picker .booklio-appt-confirm--runtime {
    padding: 0 !important;
    border: 1px solid rgba(228, 228, 231, 0.96) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    gap: 0 !important;
}

.booklio-appt-picker .booklio-appt-confirm .confirm-icon {
    display: none;
}

.booklio-appt-picker .booklio-appt-confirm-body {
    gap: 0;
}

.booklio-appt-picker .booklio-appt-confirm-title {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(228, 228, 231, 0.9);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
}

/* Final semantic overrides for frontend dialog + toast */
.booklio-front-toast {
    background: #fff5f5 !important;
    background-color: #fff5f5 !important;
    border: 1px solid rgba(180, 35, 24, 0.24) !important;
    color: #8f1d1d !important;
}

.booklio-front-toast.is-success {
    background: #f0fdf4 !important;
    background-color: #f0fdf4 !important;
    border-color: rgba(22, 112, 58, 0.22) !important;
    color: #166534 !important;
}

.booklio-front-toast.is-error {
    background: #fff5f5 !important;
    background-color: #fff5f5 !important;
    border-color: rgba(180, 35, 24, 0.24) !important;
    color: #8f1d1d !important;
}

.booklio-modal-content {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(228, 228, 231, 0.96) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 10px 20px rgba(15, 23, 42, 0.08) !important;
}

.booklio-modal.booklio-customer-otp-modal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: grid !important;
    place-items: center !important;
    align-items: center !important;
    justify-items: center !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 16px !important;
    overflow: hidden !important;
    transform: none !important;
}

.booklio-modal.booklio-customer-otp-modal .booklio-modal-content.booklio-customer-otp-dialog,
.booklio-modal.booklio-customer-otp-modal.is-open .booklio-modal-content.booklio-customer-otp-dialog {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    justify-self: center !important;
    align-self: center !important;
    width: min(32rem, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    margin: 0 auto !important;
    opacity: 1;
    transform: none !important;
    translate: none !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button'] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: auto !important;
    min-width: 0 !important;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--booklio-token-control-radius) !important;
    border-width: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button']:not(:disabled):hover {
    transform: translateY(-1px) !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button']:not(:disabled):active {
    transform: translateY(0) !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button']:focus-visible {
    outline: none !important;
    border-color: hsl(var(--booklio-token-control-focus-border)) !important;
    box-shadow: 0 0 0 3px hsl(var(--booklio-token-control-focus-ring)) !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button']:disabled {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    transform: none !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button'][data-variant='default'] {
    border-color: hsl(var(--primary)) !important;
    background: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button'][data-variant='default']:not(:disabled):hover {
    background: hsl(var(--primary) / 0.9) !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button'][data-variant='outline'] {
    border-width: 1px !important;
    border-color: hsl(var(--border)) !important;
    background: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
    box-shadow: 0 1px 2px 0 hsl(var(--booklio-token-control-shadow) / var(--booklio-token-control-shadow-alpha, 0.05)) !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button'][data-variant='outline']:not(:disabled):hover {
    background: hsl(var(--accent)) !important;
    color: hsl(var(--accent-foreground)) !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button'][data-variant='ghost'] {
    border-width: 0 !important;
    background: transparent !important;
    color: hsl(var(--booklio-token-icon-muted)) !important;
}

.booklio-modal.booklio-customer-otp-modal [data-slot='button'][data-variant='ghost']:not(:disabled):hover {
    background: hsl(var(--accent)) !important;
    color: hsl(var(--accent-foreground)) !important;
}

@media (max-width: 640px) {
    .booklio-modal.booklio-customer-otp-modal {
        padding: 12px !important;
    }

    .booklio-modal.booklio-customer-otp-modal .booklio-modal-content.booklio-customer-otp-dialog,
    .booklio-modal.booklio-customer-otp-modal.is-open .booklio-modal-content.booklio-customer-otp-dialog {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
    }
}

/* Monthly calendar dropdown is mounted outside the picker root. */
.booklio-jalali-dropdown {
    overflow: hidden !important;
    isolation: isolate;
    width: 336px !important;
    max-width: min(336px, calc(100vw - 24px)) !important;
    padding: 0 !important;
    border: 1px solid rgba(228, 228, 231, 0.96) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 10px 20px rgba(15, 23, 42, 0.08) !important;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) > div {
    background: #ffffff !important;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jalali-cal {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: transparent !important;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jalali-hdr {
    margin-bottom: 0 !important;
    min-height: 36px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(228, 228, 231, 0.9);
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jalali-month-title {
    color: #18181b !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.8;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jnav {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(228, 228, 231, 0.96) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #52525b !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jnav:hover {
    border-color: rgba(47, 83, 217, 0.2) !important;
    background: rgba(47, 83, 217, 0.06) !important;
    color: #2f53d9 !important;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jnav svg {
    width: 16px;
    height: 16px;
    display: block;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jalali-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jweekday {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0 6px !important;
    color: #71717a !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.5;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jalali-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px 6px;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jempty {
    display: block;
    min-width: 40px;
    height: 44px;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 40px;
    height: 44px !important;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 14px !important;
    background: transparent;
    color: #18181b !important;
    font-size: 13px !important;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday:hover {
    border-color: transparent;
    background: rgba(47, 83, 217, 0.08) !important;
    color: #2f53d9 !important;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jtoday {
    border-color: transparent;
    background: rgba(47, 83, 217, 0.1) !important;
    color: #2f53d9 !important;
    font-weight: 700;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jsel,
:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jrange.jrange-start,
:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jrange.jrange-end {
    border-color: #2f53d9 !important;
    background: #2f53d9 !important;
    color: #ffffff !important;
    box-shadow: none;
    font-weight: 700;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jrange,
:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jrange-preview {
    background: #eef2ff !important;
    color: #2f53d9 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jdis {
    background: transparent !important;
    color: rgba(113, 113, 122, 0.48) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    opacity: 0.45 !important;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.junavailable {
    position: relative;
    opacity: 0.72 !important;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.junavailable::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 18%;
    right: 18%;
    height: 1.5px;
    background: currentColor;
    border-radius: 999px;
    transform: translateY(-50%) rotate(-18deg);
    opacity: 0.95;
    pointer-events: none;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jrange.jrange-start {
    border-top-right-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jrange.jrange-end,
:is(.booklio-jalali-dropdown, .booklio-booking-field-dropdown) .jday.jrange-preview.jrange-preview-end {
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.booklio-range-picker-popover {
    position: fixed;
    z-index: 999999;
    width: min(20rem, calc(100vw - 2rem));
    direction: rtl;
    opacity: 0;
    transform: translateY(-2px) scale(0.995);
    transform-origin: top right;
    transition: opacity .08s ease, transform .08s ease;
    will-change: opacity, transform;
}

.booklio-range-picker-popover.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.booklio-range-picker-popover.is-closing {
    opacity: 0;
    transform: translateY(-2px) scale(0.995);
}

.booklio-range-picker-popover[hidden] {
    display: none !important;
}

.booklio-range-picker-surface {
    overflow: hidden;
    border: 1px solid var(--booklio-border, rgba(228, 228, 231, 0.96));
    border-radius: 0.75rem;
    background: var(--booklio-surface, #fff) !important;
    box-shadow: var(--booklio-shadow-lg, 0 24px 60px rgba(15, 23, 42, 0.16), 0 10px 20px rgba(15, 23, 42, 0.08));
}

.booklio-range-picker-header {
    display: grid;
    grid-template-columns: 1.5rem 1fr 1.5rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem 0.5rem;
}

.booklio-range-picker-title {
    text-align: center;
    color: var(--booklio-foreground, #18181b);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5rem;
}

.booklio-range-picker-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 0 !important;
    border-radius: 0.375rem;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--booklio-muted-foreground, #52525b) !important;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.booklio-range-picker-nav:hover {
    background: var(--booklio-accent, rgba(47, 83, 217, 0.08)) !important;
    color: var(--booklio-accent-foreground, #2f53d9) !important;
}

.booklio-range-picker-nav svg {
    width: 1.125rem;
    height: 1.125rem;
}

.booklio-range-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0 0.75rem 0.375rem;
}

.booklio-range-picker-weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--booklio-muted-foreground, #71717a);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.booklio-range-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0 0.75rem 0.625rem;
}

.booklio-range-picker-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    min-height: 2.25rem;
    box-sizing: border-box;
    border: 1px solid transparent !important;
    border-radius: 0.375rem;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--booklio-foreground, #18181b) !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.booklio-range-picker-day:hover {
    background: var(--booklio-accent, rgba(47, 83, 217, 0.08)) !important;
    color: var(--booklio-accent-foreground, #2f53d9) !important;
}

.booklio-range-picker-day--today {
    border-color: transparent !important;
    background: rgba(113, 113, 122, 0.12) !important;
    color: var(--booklio-foreground, #18181b) !important;
}

.booklio-range-picker-day--selected,
.booklio-range-picker-day--range-start,
.booklio-range-picker-day--range-end {
    border-color: var(--booklio-primary, #2f53d9) !important;
    background: var(--booklio-primary, #2f53d9) !important;
    color: var(--booklio-primary-foreground, #fff) !important;
}

.booklio-range-picker-day--range-middle {
    border-color: transparent !important;
    border-radius: 0;
    background: color-mix(in srgb, var(--booklio-primary, #2f53d9) 12%, transparent) !important;
    color: var(--booklio-primary, #2f53d9) !important;
}

.booklio-range-picker-day--preview.booklio-range-picker-day--range-start,
.booklio-range-picker-day--preview.booklio-range-picker-day--range-end {
    border-color: color-mix(in srgb, var(--booklio-primary, #2f53d9) 64%, transparent) !important;
    background: color-mix(in srgb, var(--booklio-primary, #2f53d9) 72%, transparent) !important;
    color: var(--booklio-primary-foreground, #fff) !important;
}

.booklio-range-picker-day--preview.booklio-range-picker-day--range-middle {
    background: color-mix(in srgb, var(--booklio-primary, #2f53d9) 10%, transparent) !important;
    color: var(--booklio-primary, #2f53d9) !important;
}

.booklio-range-picker-day--range-start {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}

.booklio-range-picker-day--range-end {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.booklio-range-picker-day--outside,
.booklio-range-picker-day[aria-disabled="true"] {
    color: rgba(113, 113, 122, 0.48) !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.booklio-range-picker-day[aria-disabled="true"]:hover {
    color: rgba(113, 113, 122, 0.48) !important;
    background: transparent !important;
}

.booklio-range-picker-day--today[aria-disabled="true"],
.booklio-range-picker-day--today[aria-disabled="true"]:hover {
    border-color: transparent !important;
    background: rgba(113, 113, 122, 0.12) !important;
    color: rgba(113, 113, 122, 0.72) !important;
}

.booklio-range-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid var(--booklio-border, rgba(228, 228, 231, 0.9));
    margin-top: 0.125rem;
    padding: 0.625rem 0.75rem 0.75rem;
}

.booklio-range-picker-status {
    min-width: 0;
    flex: 1;
    color: var(--booklio-muted-foreground, #71717a);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: right;
}

.booklio-range-picker-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.booklio-range-picker-apply {
    border: 0 !important;
    background: transparent !important;
    color: var(--booklio-foreground, #18181b) !important;
    box-shadow: none !important;
}

/* Simple booking calendar rewrite: match Booklio / patterns / booking-calendar without touching native Gravity fields. */
.booklio-appt-picker .booklio-booking-calendar-surface {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 14px !important;
    padding: 18px !important;
    border: 1px solid var(--booklio-ui-border, #e2e8f0) !important;
    border-radius: 18px !important;
    background: var(--booklio-ui-surface, #fff) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.booklio-appt-picker .booklio-booking-calendar-header,
.booklio-appt-picker .booklio-time-slots-header {
    margin: 0 !important;
}

.booklio-appt-picker .booklio-booking-calendar-description[hidden],
.booklio-appt-picker .booklio-time-slots-description {
    display: none !important;
}

.booklio-appt-picker .booklio-booking-calendar-heading,
.booklio-appt-picker .booklio-time-slots-heading {
    margin: 0 !important;
    color: var(--booklio-ui-text, #0f172a) !important;
    font: inherit !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
}

.booklio-appt-picker .booklio-calendar-pane--simple {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.booklio-appt-picker .booklio-first-slot-row {
    display: flex !important;
    justify-content: flex-start !important;
    margin: 0 !important;
}

.booklio-appt-picker .booklio-first-slot-button {
    min-height: 40px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #f4f4f5 !important;
    color: var(--booklio-ui-text, #0f172a) !important;
    font: inherit !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

.booklio-appt-picker .booklio-first-slot-button:hover:not(:disabled) {
    background: #eceef2 !important;
    color: var(--booklio-ui-text, #0f172a) !important;
}

.booklio-appt-picker .booklio-day-carousel {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
}

.booklio-appt-picker .booklio-day-card {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 118px !important;
    padding: 14px 10px !important;
    border: 1px solid var(--booklio-ui-border, #e2e8f0) !important;
    border-radius: 16px !important;
    background: var(--booklio-ui-surface, #fff) !important;
    color: var(--booklio-ui-text, #0f172a) !important;
    font: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease !important;
}

.booklio-appt-picker .booklio-day-card:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, 0.4) !important;
    background: #f8fbff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.booklio-appt-picker .booklio-day-name,
.booklio-appt-picker .booklio-day-month,
.booklio-appt-picker .booklio-day-meta {
    color: #525866 !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
}

.booklio-appt-picker .booklio-day-num {
    color: inherit !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

.booklio-appt-picker .booklio-day-card.booklio-day-today:not(.selected) {
    border-color: rgba(37, 99, 235, 0.35) !important;
    background: rgba(37, 99, 235, 0.06) !important;
    color: var(--booklio-ui-accent, #2563eb) !important;
}

.booklio-appt-picker .booklio-day-card.selected,
.booklio-appt-picker .booklio-day-card.active {
    border-color: var(--booklio-ui-accent, #2563eb) !important;
    background: var(--booklio-ui-accent, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18) !important;
}

.booklio-appt-picker .booklio-day-card.selected .booklio-day-name,
.booklio-appt-picker .booklio-day-card.selected .booklio-day-month,
.booklio-appt-picker .booklio-day-card.selected .booklio-day-meta,
.booklio-appt-picker .booklio-day-card.active .booklio-day-name,
.booklio-appt-picker .booklio-day-card.active .booklio-day-month,
.booklio-appt-picker .booklio-day-card.active .booklio-day-meta {
    color: rgba(255, 255, 255, 0.92) !important;
}

.booklio-appt-picker .booklio-day-card.booklio-day-disabled,
.booklio-appt-picker .booklio-day-card:disabled {
    border-color: var(--booklio-ui-border, #e2e8f0) !important;
    background: #fafafa !important;
    color: #a1a1aa !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.booklio-appt-picker .booklio-day-card.booklio-day-disabled .booklio-day-name,
.booklio-appt-picker .booklio-day-card.booklio-day-disabled .booklio-day-month {
    color: #a1a1aa !important;
}

.booklio-appt-picker .booklio-time-slots-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.booklio-appt-picker .booklio-time-slots-wrap {
    min-height: 68px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.booklio-appt-picker .booklio-time-slots {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.booklio-appt-picker .time-slot-btn {
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    min-height: 64px !important;
    padding: 12px 16px !important;
    border: 1px solid var(--booklio-ui-border, #e2e8f0) !important;
    border-radius: 16px !important;
    background: var(--booklio-ui-surface, #fff) !important;
    color: var(--booklio-ui-text, #0f172a) !important;
    font: inherit !important;
    font-weight: 850 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease !important;
}

.booklio-appt-picker .time-slot-btn:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, 0.4) !important;
    background: #f8fbff !important;
    color: var(--booklio-ui-accent, #2563eb) !important;
}

.booklio-appt-picker .time-slot-btn.selected {
    border-color: var(--booklio-ui-accent, #2563eb) !important;
    background: var(--booklio-ui-accent, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18) !important;
}

.booklio-appt-picker .time-slot-btn.is-limited:not(.selected) {
    border-color: rgba(245, 158, 11, 0.5) !important;
    background: #fffbeb !important;
    color: #92400e !important;
}

.booklio-appt-picker .booklio-slot-time {
    align-items: center !important;
    display: inline-flex !important;
    gap: 4px !important;
}

.booklio-appt-picker .booklio-slot-capacity {
    color: currentColor !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    opacity: 0.78 !important;
}

.booklio-appt-picker .slots-placeholder,
.booklio-appt-picker .no-slots {
    align-items: center !important;
    display: flex !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px dashed var(--booklio-ui-border, #e2e8f0) !important;
    border-radius: 16px !important;
    background: #fafafa !important;
    color: #525866 !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.7 !important;
}

@media (min-width: 640px) {
    .booklio-appt-picker .booklio-day-carousel {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .booklio-appt-picker .booklio-time-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 900px) {
    .booklio-appt-picker .booklio-day-carousel {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }

    .booklio-appt-picker .booklio-time-slots {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .booklio-appt-picker .booklio-booking-calendar-surface {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .booklio-appt-picker .booklio-day-card {
        min-height: 104px !important;
        border-radius: 14px !important;
    }

    .booklio-appt-picker .time-slot-btn {
        min-height: 58px !important;
        border-radius: 14px !important;
        padding: 10px 12px !important;
    }
}

/* Pixel pass: align simple frontend booking calendar with UI-library ChoiceCard primitives. */
.booklio-appt-picker .booklio-booking-calendar-surface {
    gap: 20px !important;
    padding: 16px !important;
    border-color: hsl(var(--booklio-token-border, 214 32% 91%)) !important;
    border-radius: var(--booklio-token-surface-radius, 12px) !important;
    background: hsl(var(--booklio-token-card, 0 0% 100%)) !important;
    color: hsl(var(--booklio-token-card-foreground, 222 47% 11%)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.booklio-appt-picker .booklio-booking-calendar-header {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    justify-content: space-between !important;
    margin: 0 !important;
}

.booklio-appt-picker .booklio-booking-calendar-title {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
}

.booklio-appt-picker .booklio-booking-calendar-heading,
.booklio-appt-picker .booklio-time-slots-heading {
    color: hsl(var(--booklio-token-foreground, 222 47% 11%)) !important;
    font-size: var(--booklio-token-font-size-section-title, 1rem) !important;
    font-weight: var(--booklio-token-font-weight-title, 700) !important;
    letter-spacing: var(--booklio-token-letter-spacing-title, -0.01em) !important;
    line-height: var(--booklio-token-line-height-section-title, 1.5) !important;
}

.booklio-appt-picker .booklio-time-slots-header {
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.booklio-appt-picker .booklio-time-slots-navigation {
    align-items: center !important;
    display: inline-flex !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.booklio-appt-picker .booklio-booking-calendar-navigation {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    justify-content: flex-start !important;
}

.booklio-appt-picker .booklio-first-slot-button,
.booklio-appt-picker .booklio-calendar-nav-button {
    align-items: center !important;
    border-radius: var(--booklio-token-control-radius, 12px) !important;
    display: inline-flex !important;
    font: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    gap: 8px !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    outline: none !important;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease !important;
}

.booklio-appt-picker .booklio-first-slot-button {
    min-height: 36px !important;
    padding: 0 16px !important;
    border: 1px solid transparent !important;
    background: hsl(var(--booklio-token-secondary, 210 40% 96%)) !important;
    color: hsl(var(--booklio-token-secondary-foreground, 222 47% 11%)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    white-space: nowrap !important;
}

.booklio-appt-picker .booklio-first-slot-button:hover:not(:disabled) {
    background: hsl(var(--booklio-token-secondary, 210 40% 94%)) !important;
    color: hsl(var(--booklio-token-secondary-foreground, 222 47% 11%)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.booklio-appt-picker .booklio-first-slot-button:focus,
.booklio-appt-picker .booklio-first-slot-button:focus-visible {
    border-color: hsl(var(--booklio-token-control-focus-border, 223 83% 56%)) !important;
    box-shadow: 0 0 0 3px hsl(var(--booklio-token-control-focus-ring, 223 83% 56% / 0.22)) !important;
}

.booklio-appt-picker .booklio-first-slot-button__icon {
    align-items: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.booklio-appt-picker .booklio-first-slot-button__icon svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

.booklio-appt-picker .booklio-first-slot-button:disabled {
    box-shadow: none !important;
}

.booklio-appt-picker .booklio-calendar-nav-button {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 1px solid hsl(var(--booklio-token-border, 214 32% 91%)) !important;
    background: hsl(var(--booklio-token-background, 0 0% 100%)) !important;
    color: hsl(var(--booklio-token-foreground, 222 47% 11%)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.booklio-appt-picker .booklio-calendar-nav-button span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.booklio-appt-picker .booklio-calendar-nav-button svg {
    width: 18px !important;
    height: 18px !important;
}

.booklio-appt-picker .booklio-calendar-nav-button:hover:not(:disabled) {
    border-color: hsl(var(--booklio-token-primary, 226 84% 57%) / 0.45) !important;
    background: hsl(var(--booklio-token-primary, 226 84% 57%) / 0.05) !important;
    color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
}

.booklio-appt-picker .booklio-calendar-nav-button:disabled {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.booklio-appt-picker .booklio-calendar-pane--simple {
    gap: 0 !important;
}

.booklio-appt-picker .booklio-day-carousel {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.booklio-appt-picker button.booklio-day-card {
    align-items: flex-start !important;
    justify-content: space-between !important;
    min-height: 96px !important;
    padding: 12px !important;
    border-width: 1px !important;
    border-radius: var(--booklio-token-radius-xl, 12px) !important;
    background: hsl(var(--booklio-token-card, 0 0% 100%)) !important;
    color: hsl(var(--booklio-token-card-foreground, 222 47% 11%)) !important;
    box-shadow: none !important;
    text-align: right !important;
    transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease !important;
}

.booklio-appt-picker button.booklio-day-card:hover:not(:disabled):not(.selected):not(.active) {
    border-color: hsl(var(--booklio-token-primary, 226 84% 57%) / 0.45) !important;
    background: hsl(var(--booklio-token-primary, 226 84% 57%) / 0.05) !important;
    color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    box-shadow: none !important;
}

.booklio-appt-picker button.booklio-day-card .booklio-day-name,
.booklio-appt-picker button.booklio-day-card .booklio-day-month,
.booklio-appt-picker button.booklio-day-card .booklio-day-meta {
    color: currentColor !important;
    font-size: var(--booklio-token-font-size-meta, 0.75rem) !important;
    font-weight: var(--booklio-token-font-weight-label, 600) !important;
    line-height: var(--booklio-token-line-height-meta, 1.35) !important;
    opacity: 0.8 !important;
}

.booklio-appt-picker button.booklio-day-card .booklio-day-num {
    color: currentColor !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.booklio-appt-picker button.booklio-day-card.booklio-day-today:not(.selected):not(.active) {
    border-color: hsl(var(--booklio-token-primary, 226 84% 57%) / 0.45) !important;
    background: hsl(var(--booklio-token-primary, 226 84% 57%) / 0.08) !important;
    color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
}

.booklio-appt-picker button.booklio-day-card.selected,
.booklio-appt-picker button.booklio-day-card.active {
    border-color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    background: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    color: hsl(var(--booklio-token-primary-foreground, 0 0% 100%)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px hsl(var(--booklio-token-primary, 226 84% 57%) / 0.15) !important;
}

.booklio-appt-picker button.booklio-day-card.booklio-day-disabled,
.booklio-appt-picker button.booklio-day-card:disabled {
    border-color: hsl(var(--booklio-token-border, 214 32% 91%)) !important;
    background: hsl(var(--booklio-token-muted, 210 40% 96%) / 0.5) !important;
    color: hsl(var(--booklio-token-muted-foreground, 215 16% 47%)) !important;
    opacity: 0.65 !important;
}

.booklio-appt-picker .booklio-time-slots-section {
    gap: 10px !important;
}

.booklio-appt-picker .booklio-time-slots {
    gap: 8px !important;
}

.booklio-appt-picker button.time-slot-btn {
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 56px !important;
    padding: 8px 12px !important;
    border-width: 1px !important;
    border-radius: var(--booklio-token-radius-xl, 12px) !important;
    background: hsl(var(--booklio-token-card, 0 0% 100%)) !important;
    color: hsl(var(--booklio-token-card-foreground, 222 47% 11%)) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease !important;
}

.booklio-appt-picker button.time-slot-btn:focus,
.booklio-appt-picker button.time-slot-btn:focus-visible {
    outline: none !important;
    border-color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    box-shadow: 0 0 0 3px hsl(var(--booklio-token-primary, 226 84% 57%) / 0.18) !important;
}

.booklio-appt-picker button.time-slot-btn:hover:not(:disabled):not(.selected) {
    border-color: hsl(var(--booklio-token-primary, 226 84% 57%) / 0.45) !important;
    background: hsl(var(--booklio-token-primary, 226 84% 57%) / 0.05) !important;
    color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    box-shadow: none !important;
}

.booklio-appt-picker button.time-slot-btn.selected {
    border-color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    background: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    color: hsl(var(--booklio-token-primary-foreground, 0 0% 100%)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px hsl(var(--booklio-token-primary, 226 84% 57%) / 0.15) !important;
}

.booklio-appt-picker button.time-slot-btn.is-limited:not(.selected) {
    border-color: hsl(var(--booklio-token-warning-border, 36 92% 70%)) !important;
    background: hsl(var(--booklio-token-warning-surface, 48 100% 96%)) !important;
    color: hsl(var(--booklio-token-warning, 32 95% 44%)) !important;
}

.booklio-appt-picker .booklio-slot-capacity {
    font-size: var(--booklio-token-font-size-meta, 0.75rem) !important;
    font-weight: var(--booklio-token-font-weight-label, 600) !important;
    line-height: var(--booklio-token-line-height-meta, 1.35) !important;
    opacity: 0.8 !important;
}

@media (min-width: 640px) {
    .booklio-appt-picker .booklio-booking-calendar-header {
        align-items: center !important;
        flex-direction: row !important;
    }
}

@media (max-width: 560px) {
    .booklio-appt-picker .booklio-booking-calendar-header {
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .booklio-appt-picker .booklio-booking-calendar-title {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .booklio-appt-picker .booklio-booking-calendar-heading {
        font-size: var(--booklio-token-font-size-section-title, 1rem) !important;
        line-height: var(--booklio-token-line-height-section-title, 1.5) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .booklio-appt-picker .booklio-booking-calendar-navigation {
        flex: 0 0 auto !important;
        gap: 6px !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    .booklio-appt-picker .booklio-calendar-nav-button {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    .booklio-appt-picker .booklio-first-slot-button {
        min-height: 42px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        gap: 6px !important;
        width: auto !important;
        max-width: none !important;
    }

    .booklio-appt-picker .booklio-first-slot-button__icon svg {
        width: 15px !important;
        height: 15px !important;
    }
}

.booklio-appt-picker button.booklio-day-card.selected,
.booklio-appt-picker button.booklio-day-card.active,
.booklio-appt-picker button.booklio-day-card.selected:hover,
.booklio-appt-picker button.booklio-day-card.active:hover,
.booklio-appt-picker button.booklio-day-card.booklio-day-today.selected,
.booklio-appt-picker button.booklio-day-card.booklio-day-today.active {
    border-color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    background-color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    background-image: none !important;
    color: hsl(var(--booklio-token-primary-foreground, 0 0% 100%)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px hsl(var(--booklio-token-primary, 226 84% 57%) / 0.15) !important;
}

.booklio-appt-picker button.time-slot-btn.selected,
.booklio-appt-picker button.time-slot-btn.selected:hover {
    border-color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    background-color: hsl(var(--booklio-token-primary, 226 84% 57%)) !important;
    background-image: none !important;
    color: hsl(var(--booklio-token-primary-foreground, 0 0% 100%)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px hsl(var(--booklio-token-primary, 226 84% 57%) / 0.15) !important;
}

.booklio-appt-picker button.time-slot-btn.selected:focus,
.booklio-appt-picker button.time-slot-btn.selected:focus-visible,
.booklio-appt-picker button.time-slot-btn.selected:hover:focus,
.booklio-appt-picker button.time-slot-btn.selected:hover:focus-visible {
    box-shadow: 0 0 0 3px hsl(var(--booklio-token-primary, 226 84% 57%) / 0.2), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

/* Final simple-calendar parity fixes. */
.booklio-calendar-pane[hidden],
.booklio-time-slots-section[hidden],
.booklio-booking-calendar-navigation[hidden] {
    display: none !important;
}

.booklio-appt-picker .booklio-calendar-pane--monthly-single:empty,
.booklio-appt-picker .booklio-calendar-pane--monthly-range:empty {
    display: none !important;
}

.booklio-appt-picker .booklio-appt-confirm-title {
    display: none !important;
}

.booklio-appt-picker .booklio-day-card.booklio-day-today::after,
.booklio-appt-picker button.booklio-day-card.booklio-day-today::after {
    content: none !important;
    display: none !important;
}

.booklio-appt-picker .booklio-day-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x proximity;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
}

.booklio-appt-picker .booklio-day-carousel::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.booklio-appt-picker .booklio-day-carousel > .booklio-day-card,
.booklio-appt-picker button.booklio-day-card {
    flex: 0 0 clamp(108px, 18vw, 132px) !important;
    min-width: 108px !important;
    width: auto !important;
    scroll-snap-align: start;
}

.booklio-appt-picker .booklio-time-slots {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x proximity;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
}

.booklio-appt-picker button.time-slot-btn:not(.booklio-slot-has-capacity) {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.booklio-appt-picker .booklio-time-slots::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.booklio-appt-picker .booklio-time-slots > .time-slot-btn {
    flex: 0 0 clamp(144px, 28vw, 176px) !important;
    scroll-snap-align: start;
}

.booklio-appt-picker .booklio-time-slots > .time-slot-btn:not(.booklio-slot-has-capacity) {
    flex-basis: clamp(104px, 18vw, 132px) !important;
    min-height: 48px !important;
    padding: 6px 10px !important;
}

.booklio-appt-picker button.time-slot-btn:not(.booklio-slot-has-capacity) .booklio-slot-time {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.booklio-appt-picker .booklio-day-card.booklio-day-today:not(.selected):not(.active) {
    border-color: hsl(var(--booklio-token-border, 214 32% 91%)) !important;
    background: hsl(var(--booklio-token-muted, 210 40% 96%)) !important;
    color: hsl(var(--booklio-token-card-foreground, 222 47% 11%)) !important;
}

.booklio-appt-picker .booklio-appt-confirm,
.booklio-appt-picker .booklio-range-summary,
.booklio-appt-confirm,
.booklio-appt-confirm--runtime,
.booklio-inline-summary,
.booklio-inline-summary--runtime {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.booklio-appt-picker .booklio-appt-confirm::before,
.booklio-appt-picker .booklio-range-summary::before,
.booklio-appt-confirm::before,
.booklio-appt-confirm--runtime::before,
.booklio-inline-summary::before,
.booklio-inline-summary--runtime::before {
    content: none !important;
}

.booklio-appt-picker .booklio-appt-confirm-body,
.booklio-appt-picker [data-booklio-confirm-text],
.booklio-appt-confirm-body,
.booklio-appt-confirm [data-booklio-confirm-text],
.booklio-appt-confirm--runtime [data-booklio-confirm-text],
.booklio-inline-summary [data-booklio-confirm-text],
.booklio-inline-summary--runtime [data-booklio-confirm-text] {
    display: block !important;
    width: 100% !important;
}

.booklio-appt-picker .booklio-appt-confirm .confirm-icon,
.booklio-appt-picker .booklio-appt-confirm-title,
.booklio-appt-confirm .confirm-icon,
.booklio-appt-confirm-title,
.booklio-appt-confirm--runtime .confirm-icon,
.booklio-appt-confirm--runtime .booklio-appt-confirm-title,
.booklio-inline-summary .confirm-icon,
.booklio-inline-summary .booklio-appt-confirm-title,
.booklio-inline-summary--runtime .confirm-icon,
.booklio-inline-summary--runtime .booklio-appt-confirm-title {
    display: none !important;
}

.booklio-appt-picker .booklio-summary-eyebrow {
    padding: 14px 16px 0 !important;
}

.booklio-appt-picker .booklio-summary-title {
    padding: 0 0 2px 16px !important;
}

.booklio-appt-picker .booklio-range-summary-body .booklio-appt-confirm-item,
.booklio-appt-picker .booklio-appt-confirm-body-list .booklio-appt-confirm-item,
.booklio-appt-picker .booklio-appt-confirm-list .booklio-appt-confirm-item {
    grid-template-columns: minmax(6.25rem, 0.46fr) 1fr !important;
}

.booklio-range-summary,
.booklio-inline-summary,
.booklio-inline-summary--runtime {
    padding: 0 !important;
    overflow: hidden !important;
}

.booklio-range-summary-shell {
    display: grid !important;
    gap: 8px !important;
}

.booklio-appt-picker .booklio-time-slots-section + .booklio-inline-summary,
.booklio-appt-picker .booklio-time-slots-section + .booklio-range-summary {
    margin-top: -8px !important;
}

.booklio-payment-plan-box {
    margin-top: 16px;
    border: 1px solid rgba(228, 228, 231, 0.96);
    border-radius: 14px;
    background: #fff;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
}

.booklio-coupon-box {
    margin-top: 18px;
    display: grid;
    gap: 12px;
    border: 1px solid var(--booklio-ui-border, rgba(228, 228, 231, 0.96));
    border-radius: 24px;
    background: var(--booklio-ui-surface, #fff);
    padding: 20px;
    box-shadow: none;
}

.booklio-coupon-box__label {
    display: block;
    margin: 0 0 10px;
    color: var(--booklio-ui-text, #111827);
    font-size: 15px;
    font-weight: 700;
}

.booklio-coupon-box__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.booklio-coupon-box__input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    border: 1px solid var(--booklio-ui-border, rgba(228, 228, 231, 0.96));
    border-radius: 16px;
    padding: 0 16px;
    background: var(--booklio-ui-bg, #fff);
    color: var(--booklio-ui-text, #111827);
    font-size: 15px;
}

.booklio-coupon-box__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    background: var(--booklio-ui-primary, #2f53d9);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.booklio-coupon-box__message {
    margin: 10px 0 0;
    color: var(--booklio-ui-text-muted, #6b7280);
    font-size: 13px;
    line-height: 1.8;
}

.booklio-coupon-box__message.is-success {
    color: #047857;
}

.booklio-coupon-box__message.is-error {
    color: #b91c1c;
}

@media (max-width: 640px) {
    .booklio-coupon-box__control {
        grid-template-columns: minmax(0, 1fr);
    }

    .booklio-coupon-box__button {
        width: 100%;
    }
}

.booklio-payment-plan-box__header {
    display: grid;
    gap: 8px;
    padding: 18px 18px 0;
}

.booklio-payment-plan-box__title {
    margin: 0;
    color: var(--booklio-ui-text, #111827);
    font-size: 18px;
    font-weight: 700;
}

.booklio-payment-plan-box__summary,
.booklio-payment-plan-box__note {
    margin: 0;
    color: var(--booklio-ui-text-muted, #6b7280);
    font-size: 14px;
    line-height: 1.9;
}

.booklio-payment-plan-box__options {
    display: grid;
    gap: 10px;
    padding: 14px 18px 0;
}

.booklio-payment-plan-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(228, 228, 231, 0.96);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.booklio-payment-plan-option input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    margin-top: 3px;
    aspect-ratio: 1 / 1;
}

.booklio-payment-plan-option:has(input:checked) {
    border-color: rgba(47, 83, 217, 0.28);
    background: rgba(47, 83, 217, 0.05);
}

.booklio-payment-plan-option.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.booklio-payment-plan-option__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.booklio-payment-plan-option__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--booklio-ui-text, #111827);
}

.booklio-payment-plan-option__description {
    color: var(--booklio-ui-text-muted, #6b7280);
    font-size: 13px;
    line-height: 1.9;
}

.booklio-payment-plan-option__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
}

.booklio-payment-plan-box__note {
    margin-top: 16px;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(228, 228, 231, 0.9);
    background: rgba(248, 250, 252, 0.74);
}

.booklio-range-summary-table {
    overflow: hidden !important;
    border: 1px solid rgba(228, 228, 231, 0.96) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
}

.booklio-summary-eyebrow {
    padding: 14px 16px 0 !important;
    color: var(--booklio-ui-subtext, #6b7280) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
}

.booklio-summary-title {
    padding: 0 0 0 16px !important;
    color: var(--booklio-ui-text, #111827) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
}

.booklio-range-summary-list {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.booklio-range-summary-body .booklio-appt-confirm-item,
.booklio-range-summary-list .booklio-appt-confirm-item {
    display: grid !important;
    grid-template-columns: minmax(7rem, 0.45fr) 1fr !important;
    gap: 20px !important;
    align-items: start !important;
    padding: 11px 16px !important;
}

.booklio-range-summary-body .booklio-appt-confirm-item + .booklio-appt-confirm-item,
.booklio-range-summary-list .booklio-appt-confirm-item + .booklio-appt-confirm-item {
    border-top: 1px solid rgba(228, 228, 231, 0.9) !important;
}

.booklio-range-summary-body .booklio-appt-confirm-label,
.booklio-range-summary-list .booklio-appt-confirm-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--booklio-ui-subtext, #6b7280) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
}

.booklio-range-summary-body .booklio-appt-confirm-value,
.booklio-range-summary-list .booklio-appt-confirm-value {
    color: var(--booklio-ui-text, #111827) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
}

.booklio-range-summary-body .booklio-appt-confirm-item.is-total,
.booklio-range-summary-list .booklio-appt-confirm-item.is-total {
    background: rgba(47, 83, 217, 0.05) !important;
}

.booklio-range-summary-body .booklio-appt-confirm-item.is-total .booklio-appt-confirm-label,
.booklio-range-summary-list .booklio-appt-confirm-item.is-total .booklio-appt-confirm-label {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
}

.booklio-range-summary-body .booklio-appt-confirm-item.is-total .booklio-appt-confirm-value,
.booklio-range-summary-list .booklio-appt-confirm-item.is-total .booklio-appt-confirm-value {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
}

.booklio-appt-picker .booklio-calendar-nav-button span {
    display: inline-flex !important;
}

.booklio-appt-picker .booklio-time-slots > .time-slot-btn.booklio-slot-has-capacity {
    gap: 2px !important;
    flex-basis: clamp(128px, 22vw, 0px) !important;
    min-height: 44px !important;
    padding: 6px 8px !important;
}

.booklio-appt-picker .booklio-slot-capacity {
    margin-top: 0 !important;
}

.booklio-appt-picker .booklio-day-meta {
    display: none !important;
}

.booklio-front-toast {
    position: fixed !important;
    inset-inline: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 100003 !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: start !important;
    gap: 12px !important;
    width: min(420px, calc(100vw - 32px)) !important;
    max-width: min(420px, calc(100vw - 32px)) !important;
    padding: 16px !important;
    border-radius: 16px !important;
    border: 1px solid hsl(var(--booklio-token-border, 214 32% 91%)) !important;
    background: hsl(var(--booklio-token-background, 0 0% 100%)) !important;
    color: hsl(var(--booklio-token-foreground, 222 47% 11%)) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity 180ms ease, transform 180ms ease !important;
    pointer-events: none !important;
    margin-inline: auto !important;
}

.booklio-front-toast.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.booklio-front-toast__icon {
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.booklio-front-toast__icon svg,
.booklio-front-toast__close svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
}

.booklio-front-toast__body {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
}

.booklio-front-toast__title {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    color: currentColor !important;
}

.booklio-front-toast__description {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    color: currentColor !important;
    opacity: 0.92 !important;
    text-wrap: pretty !important;
}

.booklio-front-toast__close {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    color: currentColor !important;
    opacity: 0.7 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: opacity 150ms ease, background-color 150ms ease !important;
}

.booklio-front-toast__close:hover,
.booklio-front-toast__close:focus-visible {
    opacity: 1 !important;
    background: rgba(15, 23, 42, 0.06) !important;
    outline: none !important;
}

.booklio-front-toast.is-success {
    border-color: hsl(var(--booklio-token-success-border, 142 63% 84%)) !important;
    background: hsl(var(--booklio-token-success-surface, 138 76% 97%)) !important;
    color: hsl(var(--booklio-token-success, 142 71% 29%)) !important;
}

.booklio-front-toast.is-error {
    border-color: hsl(var(--booklio-token-danger-border, 0 84% 85%)) !important;
    background: hsl(var(--booklio-token-danger-surface, 0 100% 97%)) !important;
    color: hsl(var(--booklio-token-danger, 0 72% 42%)) !important;
}

.booklio-front-toast.is-warning {
    border-color: hsl(var(--booklio-token-warning-border, 36 92% 70%)) !important;
    background: hsl(var(--booklio-token-warning-surface, 48 100% 96%)) !important;
    color: hsl(var(--booklio-token-warning, 32 95% 44%)) !important;
}

.booklio-front-toast.is-info {
    border-color: hsl(var(--booklio-token-info-border, 214 95% 78%)) !important;
    background: hsl(var(--booklio-token-info-surface, 214 100% 97%)) !important;
    color: hsl(var(--booklio-token-info, 214 84% 46%)) !important;
}

@media (min-width: 640px) {
    .booklio-appt-picker .booklio-day-carousel {
        display: flex !important;
    }
}

@media (min-width: 960px) {
    .booklio-appt-picker .booklio-day-carousel {
        display: flex !important;
    }
}

@media (max-width: 420px) {
    .booklio-appt-picker .booklio-booking-calendar-surface {
        padding: 14px !important;
    }

    .booklio-appt-picker .booklio-day-card,
    .booklio-appt-picker .time-slot-btn {
        border-radius: 10px !important;
    }

    .booklio-appt-picker .booklio-day-carousel > .booklio-day-card,
    .booklio-appt-picker button.booklio-day-card {
        flex-basis: clamp(92px, 31vw, 112px) !important;
        min-width: 92px !important;
        min-height: 82px !important;
        padding: 10px 6px !important;
    }
}

/* Final mobile booking-slot fixes. */
.booklio-appt-picker button.booklio-day-card.booklio-day-today:not(.selected):not(.active) {
    border-color: hsl(var(--booklio-token-border, 214 32% 91%)) !important;
    background: hsl(var(--booklio-token-card, 0 0% 100%)) !important;
    color: hsl(var(--booklio-token-card-foreground, 222 47% 11%)) !important;
    box-shadow: none !important;
}

@media (max-width: 560px) {
    .booklio-appt-picker .booklio-booking-calendar-navigation .booklio-calendar-nav-button {
        display: none !important;
    }

    .booklio-appt-picker button.booklio-day-card .booklio-day-name,
    .booklio-appt-picker button.booklio-day-card .booklio-day-month,
    .booklio-appt-picker button.booklio-day-card .booklio-day-meta {
        font-size: 0.75rem !important;
        line-height: 1.35 !important;
    }

    .booklio-appt-picker button.booklio-day-card .booklio-day-num {
        font-size: 1.125rem !important;
        line-height: 1.1 !important;
    }
}
