/**
 * BeezWoo Variant Wizard - Centered Layout
 * @package BeezWoo
 * @since 2.2.12
 */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    --vw-bg: #ffffff;
    --vw-overlay: rgba(0, 0, 0, 0.6);
    --vw-border: #e5e5e5;
    --vw-text: #1a1a1a;
    --vw-text-muted: #666666;
    --vw-primary: #16a34a;
    --vw-primary-hover: #15803d;
    --vw-primary-light: #dcfce7;
    --vw-secondary: #1e3a5f;
    --vw-danger: #ef4444;
    --vw-radius: 8px;
    --vw-radius-lg: 12px;
    --vw-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    --vw-transition: 0.2s ease;
}

/* =====================================================
   MODAL CONTAINER
   ===================================================== */
.beezwoo-wizard {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.beezwoo-wizard.is-open {
    opacity: 1;
    visibility: visible;
}

.beezwoo-wizard__overlay {
    position: absolute;
    inset: 0;
    background: var(--vw-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.beezwoo-wizard__modal {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    background: var(--vw-bg);
    border-radius: var(--vw-radius-lg);
    box-shadow: var(--vw-shadow);
    overflow: hidden;
    transform: scale(0.96) translateY(16px);
    transition: transform 0.2s ease;
}

.beezwoo-wizard.is-open .beezwoo-wizard__modal {
    transform: scale(1) translateY(0);
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */
.beezwoo-wizard__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* =====================================================
   HEADER LOGO (in header row)
   ===================================================== */
.beezwoo-wizard__header-logo {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-left: 12px;
}

.beezwoo-wizard__header-logo img {
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

/* =====================================================
   CLOSE BUTTON
   ===================================================== */
.beezwoo-wizard .beezwoo-wizard__close,
.beezwoo-wizard__close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f0f0f0 !important;
    border: 1px solid #ccc !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.beezwoo-wizard .beezwoo-wizard__close:hover,
.beezwoo-wizard__close:hover {
    background: #333 !important;
    border-color: #333 !important;
}

.beezwoo-wizard .beezwoo-wizard__close svg,
.beezwoo-wizard__close svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

.beezwoo-wizard .beezwoo-wizard__close svg line,
.beezwoo-wizard__close svg line {
    stroke: #333 !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
}

.beezwoo-wizard .beezwoo-wizard__close:hover svg line,
.beezwoo-wizard__close:hover svg line {
    stroke: #fff !important;
}

/* =====================================================
   HEADER
   ===================================================== */
.beezwoo-wizard__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--vw-border);
    flex-shrink: 0;
}

.beezwoo-wizard__product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: beezwoo-shimmer 1.5s infinite;
}

.beezwoo-wizard__product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide broken image icon when src is empty */
.beezwoo-wizard__product-thumb img[src=""],
.beezwoo-wizard__product-thumb img:not([src]) {
    visibility: hidden;
}

/* Stop shimmer animation once image is loaded */
.beezwoo-wizard__product-thumb:has(img[src]:not([src=""])) {
    animation: none;
    background: #f5f5f5;
}

@keyframes beezwoo-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.beezwoo-wizard__product-info {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 150px); /* Leave space for logo and close button */
}

.beezwoo-wizard__product-name {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vw-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.beezwoo-wizard__product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--vw-primary);
}

.beezwoo-wizard__product-price del {
    font-size: 12px;
    font-weight: 400;
    color: var(--vw-text-muted);
    margin-right: 6px;
}

.beezwoo-wizard__product-price ins {
    text-decoration: none;
}

/* =====================================================
   STEP TITLE BAR
   ===================================================== */
.beezwoo-wizard__step-header {
    padding: 14px 16px;
    background: #f8f9fa;
    text-align: center;
    border-bottom: 1px solid var(--vw-border);
    flex-shrink: 0;
}

.beezwoo-wizard__step-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--vw-text);
}

/* =====================================================
   BODY - FLEX CENTER
   ===================================================== */
.beezwoo-wizard__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 16px;
}

.beezwoo-wizard__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 12px;
}

.beezwoo-wizard__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--vw-border);
    border-top-color: var(--vw-primary);
    border-radius: 50%;
    animation: vw-spin 0.6s linear infinite;
}

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

/* =====================================================
   STEP CONTAINER - CENTERED
   ===================================================== */
.beezwoo-wizard__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 200px;
    animation: vw-fade-in 0.2s ease;
}

@keyframes vw-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   SIZE OPTIONS
   ===================================================== */
.beezwoo-wizard__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.beezwoo-wizard__size {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    color: var(--vw-text);
    border: 2px solid var(--vw-border);
    border-radius: var(--vw-radius);
    cursor: pointer;
    transition: all var(--vw-transition);
}

.beezwoo-wizard__size:hover:not(:disabled):not(.is-unavailable) {
    border-color: var(--vw-text-muted);
}

.beezwoo-wizard__size.is-selected {
    background: var(--vw-secondary);
    color: #fff;
    border-color: var(--vw-secondary);
}

.beezwoo-wizard__size:disabled,
.beezwoo-wizard__size.is-unavailable {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Many sizes */
.beezwoo-wizard__sizes.has-many .beezwoo-wizard__size {
    min-width: 60px;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
}

/* =====================================================
   COLOR OPTIONS
   ===================================================== */
.beezwoo-wizard__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    max-width: 600px;
}

.beezwoo-wizard__color-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: var(--vw-color-card-width, 120px);
    background: #fff;
    border: 2px solid var(--vw-border);
    border-radius: var(--vw-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--vw-transition);
}

.beezwoo-wizard__color-card:hover:not(.is-unavailable) {
    border-color: var(--vw-text-muted);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.beezwoo-wizard__color-card.is-selected {
    border-color: var(--vw-primary);
    box-shadow: 0 0 0 2px var(--vw-primary-light);
}

.beezwoo-wizard__color-card.is-unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.beezwoo-wizard__color-image {
    position: relative;
    width: 100%;
    height: var(--vw-color-image-height, 150px) !important;
    min-height: var(--vw-color-image-height, 150px) !important;
    max-height: var(--vw-color-image-height, 150px) !important;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
}

.beezwoo-wizard__color-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beezwoo-wizard__color-card.is-unavailable .beezwoo-wizard__color-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to top right, transparent calc(50% - 2px), var(--vw-danger) calc(50% - 2px), var(--vw-danger) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(to bottom right, transparent calc(50% - 2px), var(--vw-danger) calc(50% - 2px), var(--vw-danger) calc(50% + 2px), transparent calc(50% + 2px));
}

.beezwoo-wizard__color-label {
    padding: 0 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--vw-text);
    background: #fff;
    border-top: 1px solid var(--vw-border);
    line-height: 1.3;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    flex-shrink: 0;
}

.beezwoo-wizard__color-swatch {
    width: 100%;
    height: var(--vw-color-image-height, 150px) !important;
    min-height: var(--vw-color-image-height, 150px) !important;
    max-height: var(--vw-color-image-height, 150px) !important;
    flex-shrink: 0;
}

/* Many colors */
.beezwoo-wizard__colors.has-many {
    max-width: 700px;
}

.beezwoo-wizard__colors.has-many .beezwoo-wizard__color-card {
    width: 100px;
}

.beezwoo-wizard__colors.has-many .beezwoo-wizard__color-image,
.beezwoo-wizard__colors.has-many .beezwoo-wizard__color-swatch {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
}

.beezwoo-wizard__colors.has-many .beezwoo-wizard__color-label {
    padding: 0 6px;
    font-size: 10px;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
}

/* =====================================================
   GENERIC OPTIONS
   ===================================================== */
.beezwoo-wizard__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.beezwoo-wizard__option {
    min-width: 70px;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: var(--vw-text);
    border: 2px solid var(--vw-border);
    border-radius: var(--vw-radius);
    cursor: pointer;
    transition: all var(--vw-transition);
}

.beezwoo-wizard__option:hover:not(:disabled):not(.is-unavailable) {
    border-color: var(--vw-text-muted);
}

.beezwoo-wizard__option.is-selected {
    background: var(--vw-secondary);
    color: #fff;
    border-color: var(--vw-secondary);
}

.beezwoo-wizard__option:disabled,
.beezwoo-wizard__option.is-unavailable {
    opacity: 0.35;
    cursor: not-allowed;
}

/* =====================================================
   SUMMARY STEP - HORIZONTAL LAYOUT
   ===================================================== */
.beezwoo-wizard__summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 500px;
}

.beezwoo-wizard__summary-image {
    width: 140px;
    height: 180px;
    border-radius: var(--vw-radius);
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.beezwoo-wizard__summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beezwoo-wizard__summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.beezwoo-wizard__summary-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.beezwoo-wizard__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius);
}

.beezwoo-wizard__summary-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--vw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beezwoo-wizard__summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--vw-text);
}

/* Summary add to cart button - using standard btn classes with override */
.beezwoo-wizard__summary-content .beezwoo-wizard__btn {
    width: 100%;
    height: 46px;
    margin-top: 4px;
    justify-content: center;
}

/* =====================================================
   SUCCESS STATE
   ===================================================== */
.beezwoo-wizard__success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px 16px;
    text-align: center;
}

.beezwoo-wizard__success.is-visible {
    display: flex;
}

.beezwoo-wizard__success-icon {
    width: 56px;
    height: 56px;
    color: var(--vw-primary);
    margin-bottom: 16px;
    animation: vw-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vw-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.beezwoo-wizard__success h3 {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 600;
    color: var(--vw-text);
}

.beezwoo-wizard__success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 220px;
}

/* =====================================================
   NO STOCK STATE
   ===================================================== */
.beezwoo-wizard__no-stock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
}

.beezwoo-wizard__no-stock svg {
    animation: vw-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.beezwoo-wizard__no-stock h3 {
    color: var(--vw-text);
    font-weight: 600;
}

.beezwoo-wizard__no-stock p {
    color: var(--vw-text-muted);
    font-size: 14px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.beezwoo-wizard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--vw-border);
    background: #fff;
    flex-shrink: 0;
    gap: 12px;
}

.beezwoo-wizard__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    background: var(--vw-btn-secondary-bg, transparent);
    color: var(--vw-btn-secondary-text, var(--vw-text-muted));
    border: var(--vw-btn-border-width, 2px) solid var(--vw-btn-secondary-border, transparent);
    border-radius: var(--vw-radius);
    cursor: pointer;
    transition: all var(--vw-transition);
    white-space: nowrap;
    text-decoration: none;
}

.beezwoo-wizard__btn:hover:not(:disabled) {
    color: var(--vw-btn-secondary-text, var(--vw-text));
    background: var(--vw-btn-secondary-hover-bg, #f5f5f5);
}

.beezwoo-wizard__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.beezwoo-wizard__btn--primary {
    background: var(--vw-btn-primary-bg, var(--vw-primary));
    color: var(--vw-btn-primary-text, #fff);
    border: var(--vw-btn-border-width, 2px) solid var(--vw-btn-primary-border, var(--vw-primary));
    padding: 10px 24px;
}

.beezwoo-wizard__btn--primary:hover:not(:disabled) {
    background: var(--vw-btn-primary-hover-bg, var(--vw-primary-hover));
    color: #fff;
    border-color: var(--vw-btn-primary-hover-bg, var(--vw-primary-hover));
}

.beezwoo-wizard__btn--primary:disabled {
    background: #ccc;
    color: #fff;
    border-color: #ccc;
}

/* Outlined style */
.beezwoo-wizard__btn--primary.beezwoo-wizard__btn--outlined {
    background: transparent;
    color: var(--vw-btn-primary-text, var(--vw-primary));
    border: var(--vw-btn-border-width, 2px) solid var(--vw-btn-primary-border, var(--vw-primary));
}

.beezwoo-wizard__btn--primary.beezwoo-wizard__btn--outlined:hover:not(:disabled) {
    background: var(--vw-btn-primary-hover-bg, var(--vw-primary));
    color: #fff;
    border-color: var(--vw-btn-primary-hover-bg, var(--vw-primary));
}

.beezwoo-wizard__btn--primary.beezwoo-wizard__btn--outlined:disabled {
    background: transparent;
    color: #ccc;
    border-color: #ccc;
}

/* Secondary button outlined style */
.beezwoo-wizard__btn.beezwoo-wizard__btn--secondary-outlined {
    background: transparent;
    color: var(--vw-btn-primary-text, var(--vw-text));
    border: var(--vw-btn-border-width, 2px) solid var(--vw-btn-primary-border, var(--vw-text));
}

.beezwoo-wizard__btn.beezwoo-wizard__btn--secondary-outlined:hover:not(:disabled) {
    background: var(--vw-btn-primary-hover-bg, var(--vw-text));
    color: #fff;
    border-color: var(--vw-btn-primary-hover-bg, var(--vw-text));
}

.beezwoo-wizard__btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* =====================================================
   STEPPER SIDEBAR
   ===================================================== */
.beezwoo-wizard__stepper {
    display: flex;
    flex-direction: column;
    width: 160px;
    padding: 16px 12px;
    background: #fafafa;
    border-left: 1px solid var(--vw-border);
    flex-shrink: 0;
    gap: 6px;
}

.beezwoo-wizard__stepper-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--vw-radius);
    transition: all var(--vw-transition);
}

.beezwoo-wizard__stepper-item.is-active {
    background: var(--vw-secondary);
}

.beezwoo-wizard__stepper-item.is-completed {
    background: var(--vw-primary-light);
}

.beezwoo-wizard__stepper-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 11px;
    font-weight: 600;
    background: #e5e5e5;
    color: var(--vw-text-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

.beezwoo-wizard__stepper-item.is-active .beezwoo-wizard__stepper-number {
    background: #fff;
    color: var(--vw-secondary);
}

.beezwoo-wizard__stepper-item.is-completed .beezwoo-wizard__stepper-number {
    background: var(--vw-primary);
    color: #fff;
}

.beezwoo-wizard__stepper-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--vw-text-muted);
}

.beezwoo-wizard__stepper-item.is-active .beezwoo-wizard__stepper-label {
    color: #fff;
}

.beezwoo-wizard__stepper-item.is-completed .beezwoo-wizard__stepper-label {
    color: var(--vw-primary);
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .beezwoo-wizard {
        padding: 0;
        align-items: flex-end;
    }
    
    .beezwoo-wizard__modal {
        flex-direction: column;
        max-width: 100%;
        max-height: 92vh;
        border-radius: var(--vw-radius-lg) var(--vw-radius-lg) 0 0;
        transform: translateY(100%);
    }
    
    .beezwoo-wizard.is-open .beezwoo-wizard__modal {
        transform: translateY(0);
    }
    
    .beezwoo-wizard__content {
        order: 1;
    }
    
    .beezwoo-wizard__stepper {
        order: 2;
        flex-direction: row;
        width: 100%;
        padding: 8px 12px;
        gap: 4px;
        overflow-x: auto;
        border-left: none;
        border-top: 1px solid var(--vw-border);
        justify-content: center;
    }
    
    .beezwoo-wizard__stepper-item {
        flex-direction: row;
        align-items: center;
        padding: 6px 10px;
        min-width: auto;
        text-align: left;
        gap: 6px;
        flex-shrink: 0;
    }
    
    .beezwoo-wizard__stepper-label {
        font-size: 10px;
    }
    
    .beezwoo-wizard__stepper-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .beezwoo-wizard__header-logo img {
        height: 22px !important;
        width: auto !important;
    }
    
    .beezwoo-wizard__header {
        padding: 12px 14px;
    }
    
    .beezwoo-wizard__product-thumb {
        width: 44px;
        height: 44px;
    }
    
    .beezwoo-wizard__product-name {
        font-size: 13px;
    }
    
    .beezwoo-wizard__product-price {
        font-size: 14px;
    }
    
    .beezwoo-wizard__step-header {
        padding: 12px 14px;
    }
    
    .beezwoo-wizard__step-title {
        font-size: 14px;
    }
    
    .beezwoo-wizard__body {
        padding: 16px 14px;
    }
    
    .beezwoo-wizard__step {
        min-height: 180px;
    }
    
    .beezwoo-wizard__colors {
        gap: 10px;
        max-width: 100%;
    }
    
    .beezwoo-wizard__color-card {
        width: 100px;
    }
    
    .beezwoo-wizard__color-image,
    .beezwoo-wizard__color-swatch {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
    }
    
    .beezwoo-wizard__color-label {
        padding: 0 4px;
        font-size: 10px;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .beezwoo-wizard__sizes {
        gap: 8px;
        max-width: 100%;
    }
    
    .beezwoo-wizard__size {
        min-width: 60px;
        height: 44px;
        padding: 0 12px;
        font-size: 14px;
    }
    
    /* Summary mobile - vertical */
    .beezwoo-wizard__summary {
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
    }
    
    .beezwoo-wizard__summary-image {
        width: 120px;
        height: 155px;
    }
    
    .beezwoo-wizard__summary-content {
        width: 100%;
    }
    
    .beezwoo-wizard__summary-row {
        padding: 8px 12px;
    }
    
    .beezwoo-wizard__footer {
        padding: 10px 14px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    
    .beezwoo-wizard__btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .beezwoo-wizard__btn--primary {
        padding: 10px 18px;
    }
    
    .beezwoo-wizard .beezwoo-wizard__close,
    .beezwoo-wizard__close {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    
    .beezwoo-wizard .beezwoo-wizard__close svg,
    .beezwoo-wizard__close svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* =====================================================
   BODY LOCK
   ===================================================== */
body.beezwoo-wizard-open {
    overflow: hidden !important;
}

/* =====================================================
   SPINNER INLINE
   ===================================================== */
.beezwoo-wizard__spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vw-spin 0.6s linear infinite;
    vertical-align: middle;
}

/* =====================================================
   SCROLLBAR STYLING
   ===================================================== */
.beezwoo-wizard__body::-webkit-scrollbar {
    width: 6px;
}

.beezwoo-wizard__body::-webkit-scrollbar-track {
    background: transparent;
}

.beezwoo-wizard__body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.beezwoo-wizard__body::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* =====================================================
   ERROR MESSAGE
   ===================================================== */
.beezwoo-wizard__error {
    display: none;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: var(--vw-radius);
    animation: errorSlideIn 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.beezwoo-wizard__error.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.beezwoo-wizard__error.is-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.beezwoo-wizard__error.is-warning .beezwoo-wizard__error-icon {
    background: #f59e0b;
}

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

.beezwoo-wizard__error-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    border-radius: 50%;
    color: #fff;
}

.beezwoo-wizard__error-icon svg {
    width: 16px;
    height: 16px;
}

.beezwoo-wizard__error-content {
    flex: 1;
    min-width: 0;
}

.beezwoo-wizard__error-message {
    font-size: 13px;
    font-weight: 500;
    color: #991b1b;
    line-height: 1.4;
}

.beezwoo-wizard__error.is-warning .beezwoo-wizard__error-message {
    color: #92400e;
}

.beezwoo-wizard__error-action {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.1);
    color: inherit !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    transition: all 0.2s;
}

.beezwoo-wizard__error-action:hover {
    background: rgba(0, 0, 0, 0.15);
}

.beezwoo-wizard__error-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #999;
    transition: all 0.2s;
}

.beezwoo-wizard__error-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Mobile error */
@media (max-width: 768px) {
    .beezwoo-wizard__error {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .beezwoo-wizard__error-icon {
        width: 24px;
        height: 24px;
    }
    
    .beezwoo-wizard__error-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .beezwoo-wizard__error-message {
        font-size: 12px;
    }
}
