/* Basic Frontend Styles */
.bw-frontend-wrapper {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto;
    background: transparent;
    border-radius: 8px;
    box-shadow: none;
    padding: 0;
    font-family: var(--bw-font-family, 'Inter', sans-serif);
    border: none;
    display: block !important;
}

/* Steps Progress Bar */
.ba-steps {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    padding: 0 20px;
    max-width: 900px;
    gap: 30px;
}

.ba-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #64748b;
    position: relative;
}

.ba-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.ba-step.active .ba-step-number,
.ba-step.completed .ba-step-number {
    background: var(--bw-primary-color, #2563eb) !important;
    color: white !important;
}

.ba-step.active .ba-step-number::before,
.ba-step.completed .ba-step-number::before {
    content: "";
    position: absolute;
    width: 48px;
    height: 48px;
    border: 2px solid var(--bw-primary-color, #2563eb);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.ba-step.active .ba-step-text,
.ba-step.completed .ba-step-text {
    color: var(--bw-primary-color, #2563eb);
    font-weight: 600;
}

@media (max-width:768px) {
    .ba-steps {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
}

.bw-app-wrapper,
.bw-force-fullwidth {
    width: 100% !important;
    max-width: 900px !important;
    margin-inline: auto !important;
    position: relative;
    left: auto;
    right: auto;
    transform: none;
}

.bw-wizard-container {
    min-height: 500px;
    width: 100% !important;
    max-width: none !important;
    display: flex;
    flex-direction: row;
    /* Stack steps and content horizontally */
    background: transparent;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

[v-cloak] {
    display: none;
}

/* Service & Staff Grids */
.bw-category-section {
    margin-bottom: 25px;
}

.bw-category-section h4 {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.bw-service-grid,
.bw-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.bw-service-card,
.bw-staff-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-align: center;
}

.bw-service-card:hover,
.bw-staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #409eff;
    /* Element Plus Primary Color */
}

.bw-service-info h5,
.bw-staff-card h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    font-weight: 600;
}

.bw-price {
    display: block;
    font-weight: bold;
    color: #409eff;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.bw-duration,
.bw-staff-card p {
    font-size: 0.85em;
    color: #777;
    margin: 0;
}

.bw-staff-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #f0f0f0;
}

/* Slot Buttons Grid */
.bw-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.bw-nav-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.bw-step-success {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    text-align: left;
}

.bw-step-success .bw-summary-split {
    flex: 1;
    min-height: 280px;
}

.bw-success-confirm-column {
    display: flex;
    align-items: stretch;
}

.bw-success-confirm-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /*
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--bw-border-color, #eef2f7);
    */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.bw-success-check {
    color: var(--bw-primary-color, #044343);
    margin-bottom: 16px;
    line-height: 0;
}

.bw-success-confirm-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--bw-title-color, #044343);
    line-height: 1.3;
}

.bw-success-confirm-message {
    margin: 0 0 0;
    font-size: 14px;
    color: var(--bw-detail-text-color, #64748b);
    line-height: 1.5;
    max-width: 320px;
}

.bw-success-actions {
    margin-top: 24px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.bw-success-actions .bw-btn-continue {
    min-width: 180px;
    font-family: var(--bw-button-font-family, var(--bw-font-family, inherit));
    font-size: var(--bw-button-font-size, 1.05rem);
}

.bw-add-to-calendar {
    margin-top: 28px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 20px;
    border-top: 1px solid var(--bw-border-color, #e2e8f0);
}

.bw-add-to-calendar__heading {
    margin: 0 0 14px;
    font-size: var(--bw-subtitle-size, 14px);
    font-family: var(--bw-font-family, inherit);
    font-weight: 600;
    color: var(--bw-title-color, #044343);
    text-align: left;
}

.bw-add-to-calendar__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bw-add-to-calendar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--bw-border-color, #dbe2ea);
    border-radius: 8px;
    background: #fff;
    color: var(--bw-content-text-color, #334155);
    font-family: var(--bw-button-font-family, var(--bw-font-family, inherit));
    font-size: var(--bw-content-text-size, 13px);
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bw-add-to-calendar__btn:hover,
.bw-add-to-calendar__btn:focus {
    border-color: var(--bw-primary-color, #044343);
    color: var(--bw-primary-color, #044343);
    background: rgba(var(--bw-primary-color-rgb, 4, 67, 67), 0.06);
    outline: none;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(var(--bw-primary-color-rgb, 4, 67, 67), 0.12);
}

.bw-add-to-calendar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #111827;
}

.bw-add-to-calendar__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

@media (max-width: 767px) {
    .bw-success-confirm-panel {
        padding: 20px 16px;
    }

    .bw-success-actions .bw-btn-continue {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    /*
    .bw-add-to-calendar__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .bw-add-to-calendar__btn,
    a.bw-add-to-calendar__btn,
    button.bw-add-to-calendar__btn {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        justify-content: center;
    }
    */    
}

@media (max-width: 768px) {
    .bw-success-actions .bw-btn-continue {
        width: 100%;
        max-width: 100%;
    }
}

/* Sidebar Styling */
.bw-wizard-sidebar {
    flex: 0 0 200px;
    width: 200px;
    background-color: #409eff;
    /* Main Blue used for price badges */
    color: #fff;
    padding: 20px 15px;
    position: relative;
    transition: width 0.3s ease, flex 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bw-sidebar-collapsed .bw-wizard-sidebar {
    width: 80px;
    flex: 0 0 80px;
}

.bw-sidebar-steps {
    flex-grow: 1;
}

.bw-sidebar-step {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    opacity: 0.9;
    transition: all 0.2s;
}

.bw-sidebar-step.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle highlight */
}

/* Custom Calendar and Slots Layout */
.bw-datetime-container {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .bw-datetime-container {
        flex-direction: column;
    }
}

.bw-calendar-wrapper {
    flex: 1;
    min-width: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.bw-custom-calendar .bw-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.bw-cal-nav {
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1rem;
    color: #718096;
    user-select: none;
}

.bw-cal-nav:hover {
    color: #2d3748;
}

.bw-cal-nav.bw-cal-nav-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.bw-loading-calendar-container {
    min-height: 260px;
    padding: 30px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bw-calendar-body {
    padding: 0;
}

.bw-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 8px 0;
    font-size: var(--bw-subtitle-size, 0.8rem);
    font-weight: 500;
    color: var(--bw-subtitle-color, #718096);
    border-bottom: 1px solid #e2e8f0;
}

.bw-cal-title,
.bw-slots-title,
.bw-slot-btn {
    font-weight: 600 !important;
}

.bw-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 200px;
}

.bw-cal-day {
    padding: 10px 5px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    font-weight: 500;
    font-size: var(--bw-subtitle-size, 0.8rem);
    font-weight: 500;
    color: var(--bw-subtitle-color, #718096);
    transition: all 0.2s;
    user-select: none;
}

.bw-cal-day:nth-child(7n) {
    border-right: none;
}

.bw-cal-day.bw-cal-outside {
    color: #cbd5e0;
}


.bw-cal-day.bw-cal-disabled {
    /* 
    color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.3;
     */
    background-color: #F5F5F5;
    cursor: not-allowed;
    opacity: 1 !important;
    color: var(--bw-subtitle-color-down-color, var(--bw-subtitle-color, #718096));
}

.bw-cal-day:not(.bw-cal-disabled):not(.bw-cal-selected):hover {
    background-color: #ecf5ff;
    color: #409eff;
}

.bw-cal-day.bw-cal-selected {
    background-color: #409eff;
    color: #fff;
    font-weight: 600;
}

.bw-slots-wrapper {
    flex: 1;
    min-width: 180px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 400px;
}

.bw-slots-title {
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

.bw-slots-inner {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Scrollbar for slots inner */
.bw-slots-inner::-webkit-scrollbar {
    width: 6px;
}

.bw-slots-inner::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.bw-slots-inner::-webkit-scrollbar-thumb {
    background: #a0aec0;
    border-radius: 3px;
}

.bw-slots-inner::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

.bw-slot-group h4 {
    margin: 0 0 15px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #4a5568;
}

.mt-15 {
    margin-top: 25px;
}

.bw-slot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bw-slot-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: left;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.bw-slot-btn:hover {
    border-color: #409eff;
    color: #409eff;
    background-color: #ecf5ff;
}

.bw-slot-btn.selected {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}

.bw-sidebar-step.completed {
    opacity: 1;
}

.bw-wizard-sidebar.bw-sidebar-locked .bw-sidebar-step,
.bw-sidebar-step.locked {
    cursor: default;
    pointer-events: none;
}

.bw-wizard-sidebar.bw-sidebar-locked .bw-sidebar-step:hover {
    background-color: transparent;
}

.bw-wizard-sidebar.bw-sidebar-locked .bw-sidebar-step.active,
.bw-wizard-sidebar.bw-sidebar-locked .bw-sidebar-step.completed:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.bw-sidebar-step-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.bw-sidebar-step-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s;
}

.bw-sidebar-collapsed .bw-sidebar-step-text {
    opacity: 0;
    pointer-events: none;
    width: 0;
}

.bw-step-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #fff;
    white-space: normal;
    line-height: 1.2;
}

.bw-step-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Call Today footer box */
.bw-call-today-box {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.bw-call-today-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.bw-call-today-phone {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Sidebar Footer Connect/Collapse */
.bw-sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    transition: opacity 0.3s;
}

.bw-sidebar-footer:hover {
    opacity: 0.8;
}

.bw-collapse-text {
    white-space: nowrap;
}

.bw-sidebar-collapsed .bw-collapse-text {
    opacity: 0;
    pointer-events: none;
    width: 0;
}

.bw-collapse-icon {
    background: #fff;
    color: #3c82f6;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.bw-collapse-icon.rotated {
    transform: rotate(180deg);
}

/* Right Content Area */
.bw-wizard-content {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    /* Full width now */
    background-color: #f7f3ed;
    /* Competitor off-white background */
    padding: 15px 0px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.bw-wizard-content-body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bw-sidebar-collapsed+.bw-wizard-content {
    width: calc(100% - 80px) !important;
    /* fallback */
    max-width: calc(100% - 80px) !important;
    /* fallback */
}

.bw-wizard-content-header {
    background: transparent;
    padding: 0 10px 20px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--bw-border-color) !important;
}

.bw-bp-category-filter {
    border: none !important;
    border-bottom: none !important;
}

.bw-wizard-content .bw-bp-category-filter button {
    border-color: var(--bw-border-color) !important;
}

.bw-wizard-content .bw-slots-title,
.bw-custom-calendar .bw-calendar-header {
    border-bottom: 1px solid var(--bw-border-color) !important;
}

.bw-wizard-content .el-input__wrapper,
.bw-wizard-content .el-textarea__inner {
    box-shadow: none !important;
}

.bw-wizard-content .bw-custom-calendar {
    border: 1px solid var(--bw-border-color) !important;
}

.bw-content-back-btn {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    cursor: pointer;
}

.bw-content-back-btn:hover {
    background: #e2dcd9;
}

.bw-content-back-spacer {
    display: none;
    /* Removing header spacer */
}

.bw-content-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.bw-step-wrapper {
    padding: 10px 20px 10px 20px;
    flex-grow: 1;
    min-height: 0;
    height: calc(100vh - 330px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Form Styles Override */
.bw-step-details .el-form-item__label {
    font-weight: 600;
    color: #4a5568;
}

.bw-step-details .el-form {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 0;
}

.bw-step-details .el-form-item.bw-field-width-full {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bw-step-details .el-form-item.bw-field-width-half {
    flex: 0 0 calc(50% - 8px);
    width: calc(50% - 8px);
    max-width: calc(50% - 8px);
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .bw-step-details .el-form-item.bw-field-width-half {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

.bw-step-details .el-input__wrapper {
    background-color: #fff;
    border: 1px solid #d4cdc9;
    box-shadow: none !important;
}

.bw-step-details .el-input__wrapper:hover,
.bw-step-details .el-input__wrapper.is-focus {
    border-color: var(--bw-primary-color, #409eff);
    box-shadow: none !important;
}

.bw-date-select-first {
    font-size: 12px;
    padding: 10px;
}

.bw-step-details .el-input__inner {
    color: #4a5568;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.bw-step-details .el-textarea__inner {
    background-color: #fff;
    border: 1px solid #d4cdc9;
    box-shadow: none !important;
    color: #4a5568;
}

.bw-step-details .el-textarea__inner:hover,
.bw-step-details .el-textarea__inner:focus {
    border-color: var(--bw-primary-color, #409eff);
    box-shadow: none !important;
    outline: none !important;
}

.bw-step-details .bw-terms-agree-item {
    margin-bottom: 0;
}

.bw-step-details .bw-terms-agree-item .el-form-item__content {
    line-height: 1.5;
}

.bw-step-details .bw-terms-agree-item .el-checkbox {
    align-items: flex-start;
    height: auto;
    white-space: normal;
    margin-right: 0;
    margin-left: 0;
    margin-inline-end: 0;
}

.bw-step-details .bw-terms-agree-item .el-checkbox__label {
    color: var(--bw-content-text-color, #4a5568);
    font-size: var(--bw-content-text-size, 14px);
    line-height: 1.5;
    white-space: normal;
    padding-left: 8px;
    padding-right: 0;
}

#bookwellab_frontend_app[dir="rtl"] .bw-step-details .bw-terms-agree-item .el-checkbox,
#bookwellab_frontend_app.bw-rtl .bw-step-details .bw-terms-agree-item .el-checkbox {
    margin-right: 0;
    margin-left: 0;
}

#bookwellab_frontend_app[dir="rtl"] .bw-step-details .bw-terms-agree-item .el-checkbox__label,
#bookwellab_frontend_app.bw-rtl .bw-step-details .bw-terms-agree-item .el-checkbox__label {
    padding-left: 0;
    padding-right: 8px;
}

.bw-step-details .bw-terms-agree__prefix {
    color: var(--bw-content-text-color, #4a5568);
    font-size: var(--bw-content-text-size, 14px);
}

.bw-step-details .bw-terms-agree__link {
    color: var(--bw-primary-color, #044343);
    font-size: var(--bw-content-text-size, 14px);
    font-weight: 600;
    text-decoration: none;
}

.bw-step-details .bw-terms-agree__link:hover,
.bw-step-details .bw-terms-agree__link:focus {
    color: var(--bw-primary-hover, var(--bw-primary-color, #044343));
    text-decoration: underline;
}

.bw-step-details .bw-terms-agree-item .el-checkbox__input.is-checked .el-checkbox__inner {
    background-color: var(--bw-primary-color, #044343);
    border-color: var(--bw-primary-color, #044343);
}

.bw-step-details .bw-terms-agree-item.bw-input-error .el-checkbox__inner {
    border-color: #f56c6c;
}

.bw-phone-container {
    width: 100%;
}

.bw-phone-container .iti {
    width: 100%;
    margin-bottom: 2px;
    --iti-arrow-size: 6px;
    --iti-arrow-width: 2px;
}

#bookwellab_frontend_app .bw-phone-container .iti__selected-country,
#bookwellab_frontend_app .bw-phone-container .iti__selected-country-primary,
.bw-phone-container .iti__country-container {
    overflow: visible;
}

#bookwellab_frontend_app .bw-phone-container button.iti__selected-country,
#bookwellab_frontend_app .bw-phone-container .iti__selected-country-primary {
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
}

#bookwellab_frontend_app .bw-phone-container .iti__selected-country-primary:hover,
#bookwellab_frontend_app .bw-phone-container .iti__selected-country:focus .iti__selected-country-primary {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.bw-phone-container .iti__selected-country-primary {
    flex-shrink: 0;
}

.bw-phone-container .iti__arrow {
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: var(--iti-arrow-width, 2px) solid var(--iti-icon-color, #555) !important;
    border-bottom: var(--iti-arrow-width, 2px) solid var(--iti-icon-color, #555) !important;
    background: transparent !important;
    margin-left: var(--iti-arrow-padding, 7px);
    margin-top: -2px;
    width: var(--iti-arrow-size, 6px);
    height: var(--iti-arrow-size, 6px);
    transform: rotate(45deg);
}

.bw-terms-agree__prefix{
    margin-right: 5px;
}

.bw-phone-container .iti__arrow--up {
    margin-top: 4px;
    transform: rotate(-135deg);
}

#bookwellab_frontend_app .bw-phone-container .iti__selected-country-primary .iti__flag,
.bw-phone-container .iti__country-list .iti__flag,
.iti__dropdown-content .iti__flag,
.iti--container .iti__flag {
    flex-shrink: 0;
    width: var(--iti-flag-width, 20px);
    min-width: var(--iti-flag-width, 20px);
    height: var(--iti-flag-height, 15px);
    display: block;
    background-color: transparent !important;
    background-image: var(--iti-path-flags-1x);
    background-repeat: no-repeat;
    background-position: calc(var(--iti-flag-offset, 100) * var(--iti-flag-width, 20px)) 0;
    background-size: calc(var(--iti-flag-count, 244) * var(--iti-flag-width, 20px)) var(--iti-flag-height, 15px);
}

@supports (background-image: image-set(url("") 1x)) {
    #bookwellab_frontend_app .bw-phone-container .iti__selected-country-primary .iti__flag,
    .bw-phone-container .iti__country-list .iti__flag,
    .iti__dropdown-content .iti__flag,
    .iti--container .iti__flag {
        background-image: image-set(var(--iti-path-flags-1x) 1x, var(--iti-path-flags-2x) 2x);
    }
}

.bw-step-details .el-form-item__content .bw-phone-container {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

.bw-phone-container input[type="tel"] {
    width: 100%;
    height: 40px;
    background-color: #fff;
    border: 1px solid #d4cdc9;
    border-radius: 4px;
    color: #4a5568;
    font-size: var(--bw-content-text-size, 14px);
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    transition: box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.bw-step-details .bw-phone-container .iti__selected-dial-code {
    font-size: var(--bw-content-text-size, 14px);
    color: #4a5568;
    line-height: 1.5;
}

.bw-phone-container input[type="tel"]:focus {
    outline: none;
    box-shadow: 0 0 0 1px #409eff inset;
    border-color: #409eff;
}

.bw-btn-continue {
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-family: var(--bw-button-font-family, var(--bw-font-family, inherit));
    font-size: var(--bw-button-font-size, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bw-btn-back {
    border: 1px solid #d4cdc9;
    background-color: transparent;
    border-radius: 6px;
    padding: 12px 24px;
    font-family: var(--bw-button-font-family, var(--bw-font-family, inherit));
    font-size: var(--bw-button-font-size, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bw-bp-nav-footer {
    border-top: 1px solid #d4cdc9;
    /* padding: 20px 40px; */
    background-color: transparent;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.bw-nav-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-inline-start: auto;
    margin-inline-end: 0;
    --bw-footer-btn-height: 46px;
    --bw-footer-primary-min-width: 13rem;
}

.bw-nav-footer-actions .bw-btn-back,
.bw-nav-footer-actions .bw-btn-continue {
    min-height: var(--bw-footer-btn-height);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bw-nav-footer-actions .bw-footer-primary-action {
    min-width: var(--bw-footer-primary-min-width);
    min-height: var(--bw-footer-btn-height);
    height: var(--bw-footer-btn-height);
    box-sizing: border-box;
}

.bw-nav-footer-actions .bw-btn-continue.bw-footer-primary-action {
    padding-top: 0;
    padding-bottom: 0;
}

.bw-paypal-button-wrap {
    display: flex;
    align-items: center;
    justify-content: stretch;
    min-width: 0;
    flex: 0 1 auto;
    height: var(--bw-footer-btn-height);
}

.bw-nav-footer-actions .bw-paypal-button-wrap.bw-footer-primary-action {
    width: var(--bw-footer-primary-min-width);
    min-width: var(--bw-footer-primary-min-width);
}

.bw-paypal-button-container {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: var(--bw-footer-btn-height);
    min-height: var(--bw-footer-btn-height);
    max-height: var(--bw-footer-btn-height);
    overflow: hidden;
    line-height: 0;
    border-radius: 6px;
}

.bw-paypal-button-container > div {
    width: 100% !important;
    min-width: 100% !important;
    height: var(--bw-footer-btn-height) !important;
    min-height: var(--bw-footer-btn-height) !important;
    max-height: var(--bw-footer-btn-height) !important;
}

.bw-paypal-button-container iframe {
    width: 100% !important;
    min-width: 100% !important;
    height: var(--bw-footer-btn-height) !important;
    min-height: var(--bw-footer-btn-height) !important;
    max-height: var(--bw-footer-btn-height) !important;
}

.bw-paypal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--bw-footer-btn-height);
    width: 100%;
    min-width: var(--bw-footer-primary-min-width);
}

.bw-bp-nav-footer.right-only {
    justify-content: flex-end;
}

.bw-service-card h5,
.bw-staff-card h4 {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.bw-service-card .bw-price {
    font-size: 1.25em;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bw-wizard-container {
        flex-direction: column;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bw-wizard-sidebar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        border-radius: 8px 8px 0 0;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        align-self: flex-start;
    }

    .bw-wizard-sidebar.bw-sidebar-collapsed {
        width: 100%;
    }

    .bw-bp-design .bw-bp-service-list {
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .bw-sidebar-steps {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        padding-bottom: 0;
        counter-reset: bw-step-counter;
        flex-grow: 0;
        height: auto;
        min-height: 0;
        align-content: start;
        box-sizing: border-box;
    }

    .bw-sidebar-step {
        counter-increment: bw-step-counter;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 8px 2px;
        margin-bottom: 0;
        border-radius: 8px;
        min-height: 52px;
        min-width: 0;
        max-width: none;
        background: transparent;
        height: auto;
        box-sizing: border-box;
    }

    .bw-sidebar-step.active,
    .bw-sidebar-step.completed {
        background: rgba(255, 255, 255, 0.12);
    }

    .bw-sidebar-step-icon {
        display: none;
    }

    .bw-sidebar-step::before {
        content: counter(bw-step-counter);
        width: 25px;
        height: 25px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 600;
        color: #fff;
        margin: 0;
        flex-shrink: 0;
        background: transparent;
    }

    .bw-sidebar-step.active::before,
    .bw-sidebar-step.completed::before {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.8);
    }

    .bw-sidebar-step-text {
        display: none;
    }

    .bw-step-subtitle {
        display: none;
    }

    .bw-sidebar-footer {
        display: none;
        /* Hide collapse on mobile */
    }

    .bw-step-wrapper,
    .bw-wizard-content-header {
        padding: 20px;
    }

    .bw-service-grid,
    .bw-staff-grid {
        grid-template-columns: 1fr;
    }

    .bw-frontend-wrapper {
        padding: 10px;
    }

    .bw-nav-buttons {
        flex-direction: row;
        gap: 10px;
        padding: 10px 12px;
        box-sizing: border-box;
        justify-content: flex-end;
    }

    .bw-nav-footer-actions {
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
        justify-content: flex-end;
        --bw-footer-primary-min-width: 0;
    }

    .bw-nav-footer-actions .bw-btn-back {
        flex: 0 0 auto;
        margin-right: 0;
        margin-left: 8px;
        padding: 10px 16px;
        white-space: nowrap;
    }

    .bw-nav-footer-actions .bw-btn-continue,
    .bw-nav-footer-actions .bw-footer-primary-action {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
    }

    .bw-nav-footer-actions .bw-btn-continue.bw-footer-primary-action {
        padding: 10px 16px;
    }

    .bw-nav-footer-actions .bw-paypal-button-wrap.bw-footer-primary-action {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
    }

    .bw-nav-footer-actions .bw-paypal-loading {
        min-width: 0;
    }

    .bw-datetime-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .bw-calendar-wrapper {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bw-slots-wrapper {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bw-custom-calendar {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .bw-cal-weekdays,
    .bw-cal-days {
        width: 100%;
        min-width: 0;
    }

    .bw-cal-weekdays span,
    .bw-cal-day {
        min-width: 0;
    }

    .bw-cal-day {
        padding: 8px 2px;
        font-size: clamp(0.7rem, 2.8vw, 0.85rem);
    }

    .bw-cal-weekdays {
        font-size: clamp(0.58rem, 2.2vw, 0.75rem);
        padding: 6px 0;
    }

    .bw-custom-calendar .bw-calendar-header {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .bw-cal-nav {
        padding: 5px 6px;
        flex-shrink: 0;
    }

    .bw-cal-title {
        flex: 1;
        text-align: center;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bw-step-wrapper.bw-step-datetime {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 480px) {
    .bw-sidebar-steps {
        gap: 3px;
    }

    .bw-sidebar-step {
        min-height: 48px;
        padding: 8px 2px;
    }

}

@media (max-width: 580px) {
    .bw-wizard-content .bw-step-title {
        font-size: 9px !important;
    }
}

@media (max-width: 400px) {
    .bw-cal-weekdays span {
        font-size: 0;
        line-height: 1;
    }

    .bw-cal-weekdays span::first-letter {
        font-size: 0.65rem;
        font-weight: 500;
    }

    .bw-cal-day {
        padding: 6px 1px;
    }
}

/* Category Filter Buttons */
.bw-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.bw-category-filter button {
    background: var(--bw-panel-bg-color, #f0f2f5);
    border: 1px solid var(--bw-border-color, #dcdfe6);
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: var(--bw-category-title-size, 14px);
    font-family: var(--bw-font-family, inherit);
    color: var(--bw-category-title-color, #606266);
    transition: all 0.3s;
}

.bw-category-filter button.active {
    color: var(--bw-button-text-color, #fff);
    background-color: var(--bw-primary-color, #044343);
    border-color: var(--bw-primary-color, #044343);
}

/* Bookwell-like Design Styles */
.bw-bp-design .bw-bp-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.bw-bp-design .bw-bp-category-filter {
    margin-bottom: 25px;
}

.bw-bp-design .bw-bp-category-filter button {
    background: #fff;
    border: 1px solid var(--bw-border-color, #dcdfe6);
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: var(--bw-category-title-size, 0.9rem);
    font-family: var(--bw-font-family, inherit);
    color: var(--bw-category-title-color, #4a5568);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bw-bp-design .bw-bp-category-filter button.active {
    border-color: var(--bw-primary-color, #044343);
    color: var(--bw-button-text-color, #fff);
    background-color: var(--bw-primary-color, #044343);
    box-shadow: none;
}

.bw-bp-design .bw-bp-service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    /* min-height: 360px;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden; */
    padding-right: 10px;
}

/* Scrollbar styles for the service list (Competitor style matching) */
.bw-bp-service-list::-webkit-scrollbar {
    width: 8px;
}

.bw-bp-service-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.bw-bp-service-list::-webkit-scrollbar-thumb {
    background: #8c8c8c;
    border-radius: 4px;
}

.bw-bp-service-list::-webkit-scrollbar-thumb:hover {
    background: #737373;
}

.bw-error-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #f3c2c2;
    background: #fff5f5;
    color: #c53030;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bw-error-msg--inline {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    z-index: 20;
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

#bookwellab_frontend_app[dir="rtl"] .bw-error-msg--inline,
#bookwellab_frontend_app.bw-rtl .bw-error-msg--inline {
    left: 20px;
    right: 20px;
}

.bw-error-msg-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e53e3e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.bw-error-msg-text {
    flex: 1;
}

.bw-error-msg-close {
    border: 0;
    background: transparent;
    color: #c53030;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}

.bw-error-msg-close:hover {
    color: #9b2c2c;
}

.bw-summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #d4cdc9;
}

.bw-summary-card p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.bw-summary-label {
    font-weight: 600;
}

.bw-summary-value {
    font-weight: 400;
}

.bw-payment-title {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
}

.bw-bp-service-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--bw-border-color, #e2e8f0);
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    height: fit-content;
}

.bw-bp-service-main {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
}

.bw-bp-service-card:hover,
.bw-bp-service-card.selected {
    border-color: #409eff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1);
}

.bw-bp-service-card.selected {
    background-color: #f4f9ff;
}

.bw-bp-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.bw-bp-staff-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--bw-border-color, #e2e8f0);
    border-radius: 3px;
    padding: 0;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    min-width: 0;
}

.bw-bp-staff-card:hover,
.bw-bp-staff-card.selected {
    border-color: var(--bw-primary-color, #409eff);
    background-color: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.bw-bp-staff-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7fafc;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
}

.bw-bp-staff-img {
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    border-radius: 3px 3px 0 0;
    object-fit: cover;
    margin: 0;
    display: block;
}

.bw-bp-staff-media-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    background: #E8EAED;
}

.bw-bp-staff-media-placeholder__avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bw-bp-staff-img--placeholder {
    display: none;
}

.bw-bp-staff-name {
    margin: 0;
    padding: 18px 14px 20px;
    font-size: var(--bw-subtitle-size, 1rem);
    font-weight: 600;
    color: var(--bw-title-color, #1e293b);
    line-height: 1.35;
}

.bw-bp-staff-card.has-designation .bw-bp-staff-name {
    padding-bottom: 6px;
}

.bw-bp-staff-designation {
    margin: 0;
    padding: 0 14px 20px;
    font-size: var(--bw-content-text-size, 0.85rem);
    font-family: var(--bw-font-family, inherit);
    color: var(--bw-content-text-color, #718096);
    line-height: 1.35;
    word-break: break-word;
}

.bw-bp-staff-email {
    margin: 0;
    font-size: var(--bw-content-text-size, 0.85rem);
    color: var(--bw-content-text-color, #718096);
}

.bw-bp-service-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: #f7fafc;
    border: 1px solid var(--bw-border-color, #edf2f7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    margin-top: 0;
    flex-shrink: 0;
    align-self: flex-start;
}

.bw-bp-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.bw-bp-service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.bw-bp-service-info {
    flex-grow: 1;
    min-width: 0;
    padding-top: 0;
}

.bw-bp-service-name {
    margin: 0 0 8px 0;
    padding-top: 0;
    line-height: 1.25;
    font-size: var(--bw-title-font-size, 0.95rem);
    font-weight: 600;
    color: var(--bw-title-color, #2d3748);
}

.bw-bp-service-description {
    display: block;
    width: 100%;
    margin: 12px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--bw-border-color, #e2e8f0);
    font-size: var(--bw-content-text-size, 14px);
    color: var(--bw-content-text-color, #718096);
    line-height: 1.45;
    word-break: break-word;
}

.bw-bp-service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #718096;
}

.bw-bp-meta-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.bw-bp-meta-duration-icon {
    flex-shrink: 0;
}

.bw-bp-price-badge {
    background-color: #409eff;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.bw-bp-nav-footer {
    padding-inline-end: 20px;
    padding-inline-start: 0;
}

.bw-bp-nav-footer {
    /* margin-top: 30px; */
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.bw-step-title {
    text-transform: uppercase !important;
}

@media (max-width: 820px) {
    .bw-bp-design .bw-bp-service-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bw-bp-design .bw-bp-service-list {
        grid-template-columns: 1fr;
    }

    .bw-bp-service-card {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .bw-bp-service-main {
        align-items: flex-start;
    }

    .bw-bp-service-icon {
        width: 44px;
        height: 44px;
        margin-right: 10px;
        margin-top: 0;
        margin-bottom: 0;
        flex-shrink: 0;
        align-self: flex-start;
    }

    .bw-bp-service-name {
        font-size: 0.92rem;
        margin-bottom: 6px;
    }

    .bw-bp-service-meta {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-bottom: 4px;
    }

    .bw-bp-meta-duration,
    .bw-bp-price-badge {
        font-size: 0.78rem;
    }

    .bw-bp-service-description {
        display: block;
        width: 100%;
        font-size: var(--bw-content-text-size, 14px);
        color: var(--bw-content-text-color, #718096);
        line-height: 1.4;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--bw-border-color, #e2e8f0);
        word-break: break-word;
    }

    .bw-bp-staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .bw-bp-staff-name {
        padding: 14px 10px 16px;
    }
}

@media (max-width: 480px) {
    .bw-bp-staff-grid {
        grid-template-columns: 1fr;
    }
}

/* 3-Dot Loader */
.bw-loading-slots-container {
    padding: 30px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bw-bp-design .bw-bp-service-list .bw-loading-slots-container {
    grid-column: 1 / -1;
    width: 100%;
    height: 120px;
}

.bw-3dot-loader {
    display: flex;
    gap: 6px;
}

.bw-3dot-loader div {
    width: 10px;
    height: 10px;
    background-color: var(--bw-primary-color, #409eff);
    border-radius: 50%;
    animation: bw-3dot-bounce 0.6s infinite alternate;
}

.bw-3dot-loader div:nth-child(2) {
    animation-delay: 0.2s;
}

.bw-3dot-loader div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bw-3dot-bounce {
    to {
        transform: translateY(-8px);
    }
}

/* --------------------------------------------------------------------------
   RTL layout (Arabic and other right-to-left WordPress locales)
   -------------------------------------------------------------------------- */
#bookwellab_frontend_app[dir="rtl"],
#bookwellab_frontend_app.bw-rtl {
    direction: rtl;
    text-align: right;
}

#bookwellab_frontend_app[dir="rtl"] .bw-wizard-container,
#bookwellab_frontend_app.bw-rtl .bw-wizard-container {
    flex-direction: row-reverse;
}

#bookwellab_frontend_app[dir="rtl"] .bw-sidebar-step-icon,
#bookwellab_frontend_app.bw-rtl .bw-sidebar-step-icon {
    margin-right: 0;
    margin-left: 15px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-content-back-btn,
#bookwellab_frontend_app.bw-rtl .bw-content-back-btn {
    margin-right: 0;
    margin-left: 20px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-wizard-content-header,
#bookwellab_frontend_app.bw-rtl .bw-wizard-content-header {
    padding: 0 20px 20px 10px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-category-filter button,
#bookwellab_frontend_app.bw-rtl .bw-category-filter button,
#bookwellab_frontend_app[dir="rtl"] .bw-bp-category-filter button,
#bookwellab_frontend_app.bw-rtl .bw-bp-category-filter button {
    gap: 8px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-category-filter button svg,
#bookwellab_frontend_app.bw-rtl .bw-category-filter button svg,
#bookwellab_frontend_app[dir="rtl"] .bw-bp-category-filter button svg,
#bookwellab_frontend_app.bw-rtl .bw-bp-category-filter button svg {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#bookwellab_frontend_app[dir="rtl"] .bw-bp-service-icon,
#bookwellab_frontend_app.bw-rtl .bw-bp-service-icon {
    margin-right: 0;
    margin-left: 20px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-bp-meta-duration,
#bookwellab_frontend_app.bw-rtl .bw-bp-meta-duration {
    gap: 8px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-bp-design .bw-bp-service-list,
#bookwellab_frontend_app.bw-rtl .bw-bp-design .bw-bp-service-list {
    padding-right: 0;
    padding-left: 10px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-slot-btn,
#bookwellab_frontend_app.bw-rtl .bw-slot-btn {
    text-align: right;
}

#bookwellab_frontend_app[dir="rtl"] .bw-cal-day,
#bookwellab_frontend_app.bw-rtl .bw-cal-day {
    border-right: none;
    border-left: 1px solid #e2e8f0;
}

#bookwellab_frontend_app[dir="rtl"] .bw-cal-day:nth-child(7n),
#bookwellab_frontend_app.bw-rtl .bw-cal-day:nth-child(7n) {
    border-left: none;
}

#bookwellab_frontend_app[dir="rtl"] .bw-bp-nav-footer,
#bookwellab_frontend_app.bw-rtl .bw-bp-nav-footer {
    /* flex-start = right in RTL; padding-inline-start keeps 20px inset like step content */
    justify-content: flex-start;
    padding-inline-start: 20px;
    padding-inline-end: 0;
    gap: 12px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-nav-footer-actions,
#bookwellab_frontend_app.bw-rtl .bw-nav-footer-actions {
    margin-inline-start: 0;
    margin-inline-end: 0;
}

#bookwellab_frontend_app[dir="rtl"] .bw-nav-buttons,
#bookwellab_frontend_app.bw-rtl .bw-nav-buttons {
    gap: 12px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-btn-back,
#bookwellab_frontend_app.bw-rtl .bw-btn-back {
    margin-inline-start: 8px;
    margin-inline-end: 0;
}


#bookwellab_frontend_app[dir="rtl"] .bw-step-details .el-form-item__label,
#bookwellab_frontend_app.bw-rtl .bw-step-details .el-form-item__label {
    text-align: right;
    justify-content: flex-end;
}

#bookwellab_frontend_app[dir="rtl"] .bw-phone-container .iti--allow-dropdown input,
#bookwellab_frontend_app.bw-rtl .bw-phone-container .iti--allow-dropdown input,
#bookwellab_frontend_app[dir="rtl"] .bw-phone-container .iti--allow-dropdown input[type="tel"],
#bookwellab_frontend_app.bw-rtl .bw-phone-container .iti--allow-dropdown input[type="tel"] {
    padding-right: var(--iti-input-padding, 52px);
    padding-left: 12px;
    text-align: right;
    direction: ltr;
    unicode-bidi: plaintext;
}

#bookwellab_frontend_app[dir="rtl"] .bw-phone-container .iti__country-container,
#bookwellab_frontend_app.bw-rtl .bw-phone-container .iti__country-container {
    right: 0;
    left: auto;
}

@media (max-width: 768px) {
    #bookwellab_frontend_app[dir="rtl"] .bw-wizard-container,
    #bookwellab_frontend_app.bw-rtl .bw-wizard-container {
        flex-direction: column;
    }
}

/* Page builder compatibility (Elementor and similar themes) */
#bookwellab_frontend_app {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    box-sizing: border-box;
}

#bookwellab_frontend_app .bw-frontend-wrapper,
#bookwellab_frontend_app .bw-wizard-container {
    max-width: 100%;
    box-sizing: border-box;
}

#bookwellab_frontend_app img.bw-bp-staff-img,
#bookwellab_frontend_app .bw-bp-staff-card img.bw-bp-staff-img,
.elementor-widget-shortcode #bookwellab_frontend_app img.bw-bp-staff-img,
.elementor-widget-shortcode #bookwellab_frontend_app .bw-bp-staff-card img.bw-bp-staff-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 3px 3px 0 0 !important;
    object-fit: cover !important;
    margin: 0 !important;
    display: block !important;
}

#bookwellab_frontend_app .bw-bp-staff-grid,
.elementor-widget-shortcode #bookwellab_frontend_app .bw-bp-staff-grid,
.elementor .elementor-widget-shortcode #bookwellab_frontend_app .bw-bp-staff-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
}

#bookwellab_frontend_app .bw-bp-staff-card,
.elementor-widget-shortcode #bookwellab_frontend_app .bw-bp-staff-card {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border-radius: 3px !important;
}

@media (max-width: 600px) {
    #bookwellab_frontend_app .bw-bp-staff-grid,
    .elementor-widget-shortcode #bookwellab_frontend_app .bw-bp-staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    #bookwellab_frontend_app .bw-bp-staff-grid,
    .elementor-widget-shortcode #bookwellab_frontend_app .bw-bp-staff-grid {
        grid-template-columns: 1fr !important;
    }
}

#bookwellab_frontend_app .bw-bp-service-card {
    flex-direction: column !important;
    align-items: stretch !important;
}

#bookwellab_frontend_app .bw-bp-service-main {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
}

#bookwellab_frontend_app .bw-bp-service-description {
    width: 100% !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--bw-border-color, #e2e8f0) !important;
    font-size: var(--bw-content-text-size, 14px) !important;
    color: var(--bw-content-text-color, #718096) !important;
}

#bookwellab_frontend_app .bw-bp-service-icon {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    min-width: 60px !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
}

#bookwellab_frontend_app .bw-bp-service-icon img,
#bookwellab_frontend_app .bw-bp-service-icon-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
}

#bookwellab_frontend_app .el-input__wrapper,
.elementor-widget-shortcode #bookwellab_frontend_app .el-input__wrapper {
    border: 1px solid var(--bw-border-color, #d4cdc9) !important;
    box-shadow: none !important;
    background-color: #fff !important;
}

#bookwellab_frontend_app .el-input__wrapper:hover,
#bookwellab_frontend_app .el-input__wrapper.is-focus,
.elementor-widget-shortcode #bookwellab_frontend_app .el-input__wrapper:hover,
.elementor-widget-shortcode #bookwellab_frontend_app .el-input__wrapper.is-focus {
    border-color: var(--bw-primary-color, #409eff) !important;
    box-shadow: none !important;
}

#bookwellab_frontend_app .el-input__inner,
.elementor-widget-shortcode #bookwellab_frontend_app .el-input__inner,
.elementor-widget-shortcode #bookwellab_frontend_app .el-input input,
.elementor-widget-shortcode #bookwellab_frontend_app .el-form-item__content input:not([type="tel"]) {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: var(--bw-panel-bg-color, #fff) !important;
}

#bookwellab_frontend_app .el-textarea__inner,
.elementor-widget-shortcode #bookwellab_frontend_app .el-textarea__inner,
.elementor-widget-shortcode #bookwellab_frontend_app .el-form-item__content textarea {
    border: 1px solid var(--bw-border-color, #d4cdc9) !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: #fff !important;
}

#bookwellab_frontend_app .el-textarea__inner:hover,
#bookwellab_frontend_app .el-textarea__inner:focus,
.elementor-widget-shortcode #bookwellab_frontend_app .el-textarea__inner:hover,
.elementor-widget-shortcode #bookwellab_frontend_app .el-textarea__inner:focus {
    border-color: var(--bw-primary-color, #409eff) !important;
    box-shadow: none !important;
}
/* --------------------------------------------------------------------------
   Full Page Service List (form_type = full_page_list)
   -------------------------------------------------------------------------- */
.bw-booking-root--catalog {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.bw-fp-catalog {
    padding: 10px 0 30px;
    container-type: inline-size;
    container-name: bw-fp-catalog;
}

.bw-fp-catalog-filters {
    margin-bottom: 28px;
}

.bw-fp-catalog-filters button {
    background: var(--bw-panel-bg-color, #f0f2f5);
    border: 1px solid var(--bw-border-color, #dcdfe6);
    border-radius: 20px;
    padding: 8px 18px;
    font-size: var(--bw-category-title-size, 14px);
    font-family: var(--bw-font-family, inherit);
    font-weight: 600;
    color: var(--bw-category-title-color, #606266);
}

.bw-fp-catalog-filters button.active {
    background-color: var(--bw-primary-color, #044343);
    border-color: var(--bw-primary-color, #044343);
    color: var(--bw-button-text-color, #fff);
}

.bw-fp-catalog-filters button:hover:not(.active) {
    border-color: var(--bw-primary-color, #044343);
    color: var(--bw-primary-color, #044343);
}

.bw-fp-catalog-grid {
    display: grid;
    /* auto-fill keeps empty tracks so 1 card does not stretch full width on desktop */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px 24px;
    margin-bottom: 28px;
}

.bw-fp-service-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--bw-border-color, #e2e8f0);
    border-radius: 12px;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    font-family: var(--bw-font-family, inherit);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.bw-fp-service-card:hover {
    border-color: var(--bw-primary-color, #044343);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.bw-fp-service-media {
    width: 100%;
    aspect-ratio: 14 / 10;
    border-radius: 0;
    overflow: hidden;
    background: var(--bw-panel-bg-color, #f7f3ed);
    border: 0;
    position: relative;
}

.bw-fp-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bw-fp-service-media-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    background: #E8EAED;
}

.bw-fp-service-media-placeholder__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bw-fp-service-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 16px 12px;
    min-width: 0;
}

.bw-fp-service-title {
    margin: 0;
    padding: 0;
    font-size: var(--bw-subtitle-size, 16px);
    font-family: var(--bw-font-family, inherit);
    font-weight: 700;
    color: var(--bw-title-color, #044343);
    line-height: 1.35;
    word-break: break-word;
    text-align: left;
}

.bw-fp-service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0;
    width: 100%;
    border-bottom: none;
}

.bw-fp-service-meta--bordered {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bw-border-color, #e2e8f0);
}

.bw-fp-service-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--bw-content-text-size, 13px);
    font-family: var(--bw-font-family, inherit);
    color: var(--bw-content-text-color, #64748b);
    font-weight: 500;
}

.bw-fp-service-duration svg {
    flex-shrink: 0;
    color: var(--bw-content-text-color, #64748b);
}

.bw-fp-service-price {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 4px;
    background-color: var(--bw-primary-color, #044343);
    color: var(--bw-price-badge-color, #fff);
    font-size: var(--bw-price-badge-size, 12px);
    font-family: var(--bw-font-family, inherit);
    font-weight: 600;
    line-height: 1.2;
}

.bw-fp-service-description {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: none;
    font-size: var(--bw-content-text-size, 13px);
    font-family: var(--bw-font-family, inherit);
    color: var(--bw-content-text-color, #64748b);
    line-height: 1.55;
    word-break: break-word;
    text-align: left;
}

.bw-fp-service-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px 16px;
    margin-top: auto;
    padding: 12px 16px;
    min-height: 46px;
    border: none;
    border-radius: 8px;
    background-color: var(--bw-primary-color, #044343);
    color: var(--bw-button-text-color, #fff);
    font-size: var(--bw-button-font-size, 14px);
    font-family: var(--bw-button-font-family, var(--bw-font-family, inherit));
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: calc(100% - 32px);
    max-width: none;
    box-sizing: border-box;
}

.bw-fp-service-book-btn:hover,
.bw-fp-service-card:hover .bw-fp-service-book-btn {
    background-color: var(--bw-primary-hover, var(--bw-primary-color, #044343));
}

.bw-fp-catalog-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--bw-content-text-color, #64748b);
    font-size: var(--bw-content-text-size, 14px);
}

.bw-fp-catalog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.bw-fp-catalog-pagination .el-pagination.is-background .el-pager li.is-active {
    background-color: var(--bw-primary-color, #044343) !important;
}

/* Catalog booking popup */
.bw-fp-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    box-sizing: border-box;
    overflow: visible;
}

.bw-fp-booking-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: default;
    pointer-events: auto;
}

.bw-fp-booking-modal__panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 56px);
    overflow: visible;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}

.bw-fp-booking-modal__panel .bw-wizard-container {
    max-width: none;
    margin: 0;
    max-height: calc(100vh - 56px);
    border: none !important;
    border-radius: 12px;
    box-shadow: none !important;
    overflow: auto;
}

.bw-fp-booking-modal__close {
    position: absolute;
    top: -18px;
    right: -18px;
    left: auto;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}

.bw-fp-booking-modal__close:hover {
    background: #1e293b;
    color: #fff;
}

body.bw-fp-booking-modal-open {
    overflow: hidden;
}

/* Hidden host for [bookwell_booking_button] when no visible booking form is on the page */
#bookwellab_frontend_app.bw-fp-popup-host {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    clip: auto;
}

#bookwellab_frontend_app.bw-fp-popup-host > .bw-frontend-wrapper {
    position: static;
    width: auto;
    height: auto;
}

.bw-booking-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--bw-primary-color, #044343);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.bw-booking-popup-btn:hover {
    background: var(--bw-primary-hover, #033333);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.bw-booking-popup-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

#bookwellab_frontend_app[dir="rtl"] .bw-fp-booking-modal__close,
#bookwellab_frontend_app.bw-rtl .bw-fp-booking-modal__close {
    right: auto;
    left: -18px;
}

#bookwellab_frontend_app[dir="rtl"] .bw-fp-service-card,
#bookwellab_frontend_app.bw-rtl .bw-fp-service-card,
#bookwellab_frontend_app[dir="rtl"] .bw-fp-service-body,
#bookwellab_frontend_app.bw-rtl .bw-fp-service-body,
#bookwellab_frontend_app[dir="rtl"] .bw-fp-service-title,
#bookwellab_frontend_app.bw-rtl .bw-fp-service-title,
#bookwellab_frontend_app[dir="rtl"] .bw-fp-service-description,
#bookwellab_frontend_app.bw-rtl .bw-fp-service-description {
    text-align: right;
}

@media (max-width: 1024px) {
    .bw-fp-catalog-grid {
        gap: 22px 18px;
    }
}

@media (max-width: 782px) {
    .bw-fp-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .bw-fp-booking-modal {
        padding: 24px 20px;
        overflow: visible;
    }

    .bw-fp-booking-modal__panel {
        max-height: calc(100vh - 48px);
        border-radius: 10px;
        overflow: visible;
    }

    .bw-fp-booking-modal__panel .bw-wizard-container {
        max-height: calc(100vh - 48px);
        overflow: auto;
        border-radius: 10px;
    }

    /* Half inside / half outside top-right corner */
    .bw-fp-booking-modal__close {
        top: -16px;
        right: -16px;
        left: auto;
        z-index: 30;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: #0f172a;
        color: #fff;
        font-size: 22px;
        line-height: 1;
        text-align: center;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
    }

    .bw-fp-booking-modal__close:hover {
        background: #1e293b;
        color: #fff;
    }

    #bookwellab_frontend_app[dir="rtl"] .bw-fp-booking-modal__close,
    #bookwellab_frontend_app.bw-rtl .bw-fp-booking-modal__close {
        right: auto;
        left: -16px;
    }
}

@media (max-width: 480px) {
    .bw-fp-catalog-grid {
        grid-template-columns: 1fr;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Container-based columns (shortcode in narrow/wide content areas) */
@container bw-fp-catalog (max-width: 680px) {
    .bw-fp-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }
}

@container bw-fp-catalog (max-width: 420px) {
    .bw-fp-catalog-grid {
        grid-template-columns: 1fr;
    }
}

@container bw-fp-catalog (min-width: 681px) {
    .bw-fp-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}
