/**
 * Make An Offer Modal Styles
 *
 * @package VVSOutlet_Airtable_B2C
 * @since 1.45.0
 */

/* ========================================
   Make Offer Button
   ======================================== */

.vvso-make-offer-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 12px;
    background: #007bff;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vvso-make-offer-btn:hover {
    background: #0056b3;
}

.vvso-make-offer-btn:active {
    background: #004494;
}

/* ========================================
   Modal Overlay
   ======================================== */

#vvso-make-offer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important;
}

.vvso-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

body.vvso-modal-open {
    overflow: hidden;
}

/* Suppress all buttons when modal is open (v1.49.5) */
body.vvso-modal-open .single_add_to_cart_button,
body.vvso-modal-open button[type="submit"],
body.vvso-modal-open .elementor-button,
body.vvso-modal-open .add-to-cart,
body.vvso-modal-open button[class*="button"],
body.vvso-modal-open a[class*="button"] {
    z-index: 1 !important;
}

/* ========================================
   Modal Container
   ======================================== */

.vvso-modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.vvso-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: vvsoModalSlideIn 0.3s ease;
    /* v1.52.17: Ensure proper flex layout for content */
    display: flex;
    flex-direction: column;
}

@keyframes vvsoModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   Progress Stepper (v1.49.8)
   ======================================== */

.vvso-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    gap: 8px;
}

.vvso-stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 60px;
}

.vvso-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vvso-step-label {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vvso-stepper-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    max-width: 40px;
    transition: all 0.3s ease;
}

/* Active step */
.vvso-stepper-step.vvso-step-active .vvso-step-circle {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.vvso-stepper-step.vvso-step-active .vvso-step-label {
    color: #3b82f6;
    font-weight: 600;
}

/* Completed step */
.vvso-stepper-step.vvso-step-completed .vvso-step-circle {
    background: #10b981;
    color: #ffffff;
}

.vvso-stepper-step.vvso-step-completed .vvso-step-label {
    color: #10b981;
}

.vvso-stepper-line.vvso-line-completed {
    background: #10b981;
}

/* ========================================
   Modal Header - Compact & Clean
   ======================================== */

.vvso-modal-header {
    background: #3b82f6;
    color: #ffffff !important;
    padding: 14px 20px;
}

.vvso-modal-header-content {
    width: 100%;
}

.vvso-modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vvso-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.vvso-modal-brand-logo {
    height: 40px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vvso-modal-header-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.vvso-modal-product-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vvso-modal-header-text {
    flex: 1;
    min-width: 0;
}

.vvso-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    color: #ffffff !important;
}

.vvso-modal-title i {
    flex-shrink: 0;
    margin-right: 8px;
    font-size: 18px;
}

.vvso-modal-subtitle {
    margin: 2px 0 0 0;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff !important;
}

.vvso-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vvso-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

.vvso-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    stroke-width: 2.5;
}

/* ========================================
   Modal Body
   ======================================== */

.vvso-modal-body {
    padding: 28px;
    max-height: calc(90vh - 180px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* v1.52.18: Ensure body expands to fill content */
    flex: 1 1 auto;
    min-height: 300px;
    /* v1.52.18: Ensure body has position context for children */
    position: relative;
}

/* Product Info Section - Compact */
.vvso-product-info-compact {
    padding: 14px 16px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.vvso-product-info-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    gap: 12px;
}

.vvso-product-info-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.vvso-product-info-price {
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #dee2e6 !important;
}

.vvso-info-label {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.vvso-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    text-align: right;
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.vvso-info-price-value {
    font-size: 20px;
    font-weight: 600;
    color: #3b82f6;
    letter-spacing: -0.02em;
}

/* Form Styles */
.vvso-form-group {
    margin-bottom: 20px;
}

/* Form Row - 70% / 30% Split for Bid & Quantity */
.vvso-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.vvso-form-group-70 {
    flex: 0 0 calc(70% - 6px);
    margin-bottom: 0;
}

.vvso-form-group-30 {
    flex: 0 0 calc(30% - 6px);
    margin-bottom: 0;
}

.vvso-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #212529;
}

.vvso-form-label .vvso-required {
    color: #dc3545;
    margin-left: 2px;
}

.vvso-form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #212529;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.vvso-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.vvso-form-input.vvso-form-error {
    border-color: #dc3545;
}

.vvso-form-input.vvso-form-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.vvso-form-helper {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6c757d;
}

/* Live Price Calculation */
.vvso-price-calculation {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.vvso-calc-title {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.vvso-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.vvso-calc-row:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

.vvso-calc-label {
    color: #6c757d;
    font-weight: 500;
}

.vvso-calc-value {
    color: #212529;
    font-weight: 600;
}

.vvso-calc-total {
    margin-top: 8px;
    padding-top: 12px !important;
    border-top: 2px solid #3b82f6 !important;
    border-bottom: none !important;
}

.vvso-calc-total .vvso-calc-label {
    color: #212529;
    font-weight: 700;
    font-size: 15px;
}

.vvso-calc-total .vvso-calc-value {
    color: #3b82f6;
    font-weight: 700;
    font-size: 18px;
}

/* ========================================
   Modal Footer
   ======================================== */

.vvso-modal-footer {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.vvso-btn {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Desktop: Avbryt takes minimal space, BankID button grows */
.vvso-btn-secondary {
    flex: 0 0 auto;
    min-width: 100px;
}

.vvso-btn-bankid {
    flex: 1 1 auto;
}

.vvso-btn-primary {
    background: #10b981;
    color: #ffffff;
}

.vvso-btn-primary:hover:not(:disabled) {
    background: #059669;
}

.vvso-btn-primary:active:not(:disabled) {
    background: #047857;
}

.vvso-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vvso-btn-secondary {
    background: #ffffff;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.vvso-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.vvso-btn-bankid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    position: relative;
}

.vvso-btn-bankid:hover:not(:disabled) {
    background: #2d2d2d;
}

.vvso-btn-bankid:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* BankID button confirmation state (v1.49.8) */
.vvso-btn-bankid.vvso-confirmed {
    background: #10b981;
    animation: vvsoPulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

.vvso-btn-bankid.vvso-confirmed:hover {
    background: #059669;
}

@keyframes vvsoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.vvso-bankid-logo {
    height: 20px;
    width: auto;
}

.vvso-bankid-text {
    font-weight: 500;
}

.vvso-bankid-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vvso-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: vvsoSpin 0.8s linear infinite;
}

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

/* Hide text and logo when spinner is active */
.vvso-btn-bankid.loading .vvso-bankid-logo,
.vvso-btn-bankid.loading .vvso-bankid-text {
    display: none;
}

.vvso-btn-bankid.loading .vvso-bankid-spinner {
    display: flex !important;
}

/* ========================================
   Messages
   ======================================== */

.vvso-error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}

.vvso-error-message svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.vvso-error-message.vvso-global-error {
    margin: 0 0 20px 0;
    padding: 14px 16px;
    font-size: 15px;
}

.vvso-success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    font-size: 16px;
    color: #155724;
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 12px;
    animation: vvsoSlideDown 0.3s ease;
}

.vvso-success-message svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke: #155724;
}

/* Urgent stock notice (v1.47.0) */
.vvso-urgent-stock-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #856404;
}

.vvso-urgent-stock-notice svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: #ffc107;
    margin-top: 2px;
}

.vvso-urgent-stock-notice strong {
    color: #856404;
    font-weight: 600;
}

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

/* Compact product info - hide redundant fields (v1.49.5) */
.vvso-product-info-item:nth-child(1),
.vvso-product-info-item:nth-child(2) {
    display: none;
}

.vvso-product-info-compact {
    padding: 12px 14px;
    margin-bottom: 16px;
}

.vvso-info-price-value {
    font-size: 20px;
    font-weight: 700;
}

/* Contact row - side-by-side on all devices (v1.49.5) */
.vvso-contact-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.vvso-contact-field {
    flex: 1;
    margin-bottom: 0;
}

.vvso-contact-field .vvso-form-label {
    font-size: 14px;
}

.vvso-contact-field .vvso-form-input {
    padding: 14px 16px;
    font-size: 16px;
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 768px) {
    .vvso-modal-container {
        padding: 0;
        align-items: flex-end;
    }

    .vvso-modal-content {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        animation: vvsoModalSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        display: flex;
        flex-direction: column;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    }

    @keyframes vvsoModalSlideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    /* Fixed header on mobile - stays at top */
    .vvso-modal-header {
        padding: 16px;
        flex-shrink: 0;
        border-radius: 16px 16px 0 0;
        position: relative;
    }

    /* Add drag handle indicator at top of bottom sheet */
    .vvso-modal-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 2px;
    }

    /* Hide logo and divider on mobile */
    .vvso-modal-brand-logo,
    .vvso-modal-header-divider {
        display: none;
    }

    /* Keep product image but make it smaller */
    .vvso-modal-product-image {
        width: 40px;
        height: 40px;
        padding: 4px;
    }

    .vvso-modal-header-left {
        gap: 10px;
    }

    .vvso-modal-header-row {
        gap: 10px;
        align-items: flex-start;
    }

    .vvso-modal-header-text {
        flex: 1;
        min-width: 0;
    }

    /* Product title - limit to 2 lines */
    .vvso-modal-title {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* SKU and Price on separate line */
    .vvso-modal-subtitle {
        font-size: 11px;
        line-height: 1.4;
        margin-top: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vvso-modal-close {
        width: 28px;
        height: 28px;
        margin-top: -2px;
    }

    .vvso-modal-close svg {
        width: 14px;
        height: 14px;
    }

    /* Compact stepper on mobile (v1.49.8) */
    .vvso-stepper {
        padding: 12px 8px;
        gap: 4px;
    }

    .vvso-stepper-step {
        min-width: 50px;
        gap: 4px;
    }

    .vvso-step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .vvso-step-label {
        font-size: 10px;
    }

    .vvso-stepper-line {
        max-width: 20px;
    }

    /* Hide product info section in body on mobile (already in header) */
    .vvso-product-info-compact {
        display: none;
    }

    /* Scrollable body - bottom sheet experience */
    .vvso-modal-body {
        padding: 20px 16px;
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }

    /* Compact product info on mobile */
    .vvso-product-info-compact {
        padding: 10px 12px;
    }

    .vvso-info-price-value {
        font-size: 18px;
    }

    /* Comfortable spacing for form groups */
    .vvso-form-group {
        margin-bottom: 16px;
    }

    .vvso-form-group:last-of-type {
        margin-bottom: 16px;
    }

    /* Contact row - slightly smaller on mobile */
    .vvso-contact-row {
        gap: 10px;
    }

    .vvso-contact-field .vvso-form-label {
        font-size: 13px;
    }

    .vvso-contact-field .vvso-form-input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .vvso-form-group p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 8px 0 !important;
        padding: 0 !important;
    }

    .vvso-form-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .vvso-form-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .vvso-form-helper {
        font-size: 12px;
        margin-top: 6px;
        line-height: 1.4;
    }

    /* Form row - comfortable spacing */
    .vvso-form-row {
        gap: 12px;
        margin-bottom: 16px;
        padding: 14px;
    }

    .vvso-form-group-70 {
        flex: 0 0 calc(70% - 6px);
        margin-bottom: 0;
    }

    .vvso-form-group-30 {
        flex: 0 0 calc(30% - 6px);
        margin-bottom: 0;
    }

    /* Compact price calculation on mobile (v1.49.8) */
    .vvso-price-calculation {
        padding: 10px 12px;
        margin-bottom: 14px;
        border-width: 1px;
    }

    .vvso-calc-title {
        font-size: 13px;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .vvso-calc-row {
        font-size: 12px;
        padding: 4px 0;
    }

    .vvso-calc-label {
        font-size: 12px;
    }

    .vvso-calc-value {
        font-size: 12px;
        font-weight: 600;
    }

    .vvso-calc-total {
        margin-top: 6px;
        padding-top: 8px !important;
    }

    .vvso-calc-total .vvso-calc-label {
        font-size: 13px;
        font-weight: 700;
    }

    .vvso-calc-total .vvso-calc-value {
        font-size: 15px;
        font-weight: 700;
    }

    /* Fixed footer - stays at bottom of bottom sheet */
    .vvso-modal-footer {
        padding: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        flex-shrink: 0;
        gap: 10px;
        background: #ffffff;
        border-top: 1px solid #e9ecef;
        flex-direction: row;
        position: relative;
        z-index: 10;
    }

    .vvso-btn {
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 600;
        margin: 0;
        border-radius: 8px;
        flex: 1; /* Equal width */
    }

    .vvso-btn-secondary {
        background: #ffffff;
        border: 1px solid #dee2e6;
        color: #6c757d;
        flex: 0 0 auto; /* Don't grow, just fit content */
        min-width: 90px;
    }

    .vvso-btn-bankid {
        flex: 1 1 auto; /* Grows to fill remaining space */
    }

    .vvso-make-offer-btn {
        padding: 14px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .vvso-modal-footer {
        flex-direction: column;
    }

    .vvso-btn {
        width: 100%;
    }

    .vvso-btn-bankid {
        order: -1; /* Show BankID first on mobile */
    }

    .vvso-product-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.vvso-btn:focus,
.vvso-form-input:focus,
.vvso-modal-close:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .vvso-modal-content,
    .vvso-success-message,
    .vvso-btn,
    .vvso-make-offer-btn {
        animation: none;
        transition: none;
    }
}

/* ========================================
   Multi-Screen & Step Wizard Styles (v1.49.8)
   ======================================== */

.vvso-modal-screen,
.vvso-step-screen {
    animation: vvsoFadeIn 0.3s ease;
}

.vvso-step-screen {
    display: none;
}

.vvso-step-screen.vvso-step-active {
    display: block;
}

@keyframes vvsoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading screen progress bar animation (v1.49.8) */
@keyframes vvsoProgress {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   BankID Screen
   ======================================== */

/* v1.52.18: Ensure modal screens are hidden by default and properly shown */
.vvso-modal-screen {
    display: none;
}

/* When BankID screen is shown via JavaScript, ensure it displays properly */
#vvso-modal-screen-bankid[style*="display: block"],
#vvso-modal-screen-bankid[style*="display:block"],
#vvso-modal-screen-bankid.vvso-screen-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
}

/* v1.55.1: Scoped to Make Offer modal only - don't affect BankID login modal */
#vvso-make-offer-modal .vvso-bankid-screen {
    text-align: center;
    padding: 20px;
    min-height: 350px;
}

.vvso-bankid-logo-large {
    text-align: center;
    margin-bottom: 20px;
}

.vvso-qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vvso-qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ========================================
   Confirmation Screen
   ======================================== */

.vvso-confirmation-screen {
    padding: 20px;
}

.vvso-summary-box {
    background: #ffffff;
}

/* ========================================
   Success Screen
   ======================================== */

.vvso-success-screen {
    padding: 40px 20px;
    text-align: center;
}

/* ========================================
   Responsive for Mobile
   ======================================== */

@media (max-width: 576px) {
    .vvso-modal-container {
        padding: 10px;
    }

    .vvso-modal-content {
        border-radius: 12px;
        max-height: 95vh;
    }

    .vvso-modal-header {
        padding: 16px 20px;
    }

    .vvso-modal-title {
        font-size: 18px;
    }

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

    .vvso-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .vvso-btn {
        width: 100%;
    }

    .vvso-qr-code {
        width: 180px;
        height: 180px;
    }

    .vvso-bankid-screen h3,
    .vvso-confirmation-screen h3 {
        font-size: 20px;
    }
}

/* ========================================
   Prominent Make Offer Button (v1.46.0)
   ======================================== */

.vvso-make-offer-btn-prominent {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    transition: all 0.2s ease;
}

.vvso-make-offer-btn-prominent:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.vvso-make-offer-btn-prominent:active {
    background: #1d4ed8;
    transform: translateY(1px);
}

.vvso-offer-icon {
    flex-shrink: 0;
    height: 48px;
    width: auto;
    object-fit: contain;
}

.vvso-offer-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.4;
}

.vvso-offer-text strong {
    font-size: 16px;
}

.vvso-offer-text small {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

@media (max-width: 380px) {
    .vvso-make-offer-btn-prominent {
        padding: 16px 20px;
        font-size: 15px;
    }

    .vvso-offer-icon {
        height: 40px;
        width: auto;
    }

    .vvso-offer-text strong {
        font-size: 15px;
    }

    .vvso-offer-text small {
        font-size: 11px;
    }
}

/* ========================================
   Bidding and Buy Direct Frames (v1.47.0)
   ======================================== */

/* Common frame styles */
.vvsoutlet-bidding-frame,
.vvsoutlet-buy-direct-frame {
    margin: 20px 0;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    position: relative;
    padding-top: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.vvsoutlet-frame-header {
    position: absolute;
    top: -12px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-weight: 600;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vvsoutlet-frame-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.vvsoutlet-frame-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vvsoutlet-frame-icon i {
    font-size: 16px;
}

.vvsoutlet-frame-content {
    padding: 30px 20px 20px 20px;
}

/* Blue bidding frame - Professional CI Blue */
.vvsoutlet-bidding-frame {
    border-color: #3b82f6;
}

.vvsoutlet-bidding-frame h3 {
    color: #ffffff !important;
}

.vvsoutlet-frame-header-blue {
    background: #3b82f6;
    color: #ffffff;
}

.vvsoutlet-frame-header-blue h3 {
    color: #ffffff !important;
}

.vvsoutlet-bidding-info {
    margin: 0 0 16px 0;
    padding: 12px;
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #1e40af;
}

/* Green buy direct frame - Professional CI Green */
.vvsoutlet-buy-direct-frame {
    border-color: #10b981;
}

.vvsoutlet-buy-direct-frame h3 {
    color: #ffffff !important;
}

.vvsoutlet-frame-header-green {
    background: #10b981;
    color: #ffffff;
}

.vvsoutlet-frame-header-green h3 {
    color: #ffffff !important;
}

/* Adjust cart mobile inside green frame */
.vvsoutlet-buy-direct-frame .vvsoutlet-cart-mobile {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .vvsoutlet-bidding-frame,
    .vvsoutlet-buy-direct-frame {
        margin: 20px 0;
    }

    .vvsoutlet-frame-header {
        top: -10px;
        left: 12px;
        padding: 4px 12px;
        font-size: 13px;
    }

    .vvsoutlet-frame-header h3 {
        font-size: 13px;
    }

    .vvsoutlet-frame-icon,
    .vvsoutlet-frame-icon i {
        font-size: 14px;
    }

    .vvsoutlet-frame-content {
        padding: 24px 16px 16px 16px;
    }

    .vvsoutlet-bidding-info {
        font-size: 13px;
        padding: 10px;
    }
}

/* Product Reservation Message (v1.47.0) */
.vvsoutlet-reserved-message {
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 32px 24px;
    margin: 24px 0;
    text-align: center;
}

.vvsoutlet-reserved-content {
    max-width: 500px;
    margin: 0 auto;
}

.vvsoutlet-reserved-content svg {
    display: block;
    margin: 0 auto 16px;
}

.vvsoutlet-reserved-content h3 {
    color: #856404;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.vvsoutlet-reserved-content p {
    color: #856404;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile adjustments for reservation message */
@media (max-width: 768px) {
    .vvsoutlet-reserved-message {
        padding: 24px 16px;
        margin: 16px 0;
    }

    .vvsoutlet-reserved-content h3 {
        font-size: 18px;
    }

    .vvsoutlet-reserved-content p {
        font-size: 14px;
    }
}

/* Bidding Info Boxes (v1.47.0) */
.vvsoutlet-bidding-info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.vvsoutlet-info-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.vvsoutlet-info-box:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.vvsoutlet-info-box svg,
.vvsoutlet-info-box i {
    flex-shrink: 0;
    color: #3b82f6;
    font-size: 20px;
}

.vvsoutlet-info-box span {
    line-height: 1.3;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .vvsoutlet-bidding-info-boxes {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ========================================
   User Welcome/Account Messages (v1.52.23)
   ======================================== */

/* Welcome badge for new users */
.vvso-welcome-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.vvso-welcome-badge i {
    font-size: 18px;
}

/* Linked badge variant (BankID linked to existing account) */
.vvso-welcome-badge.vvso-linked-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* User notice for email mismatch etc */
.vvso-user-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}

.vvso-user-notice-content i {
    flex-shrink: 0;
    font-size: 16px;
    color: #f59e0b;
    margin-top: 1px;
}
