/* ═══════════════════════════════════════════════════════════
   Quick Order - Simplified Watercolor Portrait Order Form
   ═══════════════════════════════════════════════════════════ */

.quick-order-page {
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.qo-progress {
    background: white;
    padding: 1.5rem 0 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2.5rem;
}

.qo-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.qo-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #e8530e 100%);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.qo-progress-steps {
    display: flex;
    justify-content: space-between;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.qo-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.qo-progress-step.active,
.qo-progress-step.done {
    opacity: 1;
}

.qo-progress-step i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.qo-progress-step.active i {
    background: linear-gradient(135deg, #ff6b35 0%, #e8530e 100%);
    color: white;
}

.qo-progress-step.done i {
    background: #10b981;
    color: white;
}

.qo-progress-step span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.02em;
}

.qo-progress-step.active span {
    color: #1a1a1a;
    font-weight: 600;
}

.qo-progress-step.done span {
    color: #1a1a1a;
}

/* ── Step Container ───────────────────────────────────────── */
.qo-step {
    animation: qoFadeIn 0.35s ease;
    flex: 1 0 auto;
}

@keyframes qoFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.qo-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Step header with icon */
.qo-step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.qo-step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #ff6b35 0%, #e8530e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
}

.qo-step-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.15rem;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
}

.qo-step-header p {
    font-size: 1.075rem;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto;
}

.qo-container h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.15rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.qo-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.075rem;
}

/* ── Upload Area ──────────────────────────────────────────── */
.qo-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qo-upload-area:hover,
.qo-upload-area.drag-over {
    border-color: #ff6b35;
    background: #fffaf8;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.08);
}

.qo-upload-area.has-image {
    padding: 1rem;
    border-style: solid;
    border-color: #e2e8f0;
}

.qo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
}

.qo-upload-placeholder i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}

.qo-upload-placeholder span {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
}

.qo-upload-placeholder small {
    font-size: 0.8rem;
    color: #94a3b8;
}

.qo-upload-tip {
    margin-top: 0.15rem;
    color: #94a3b8;
    font-size: 0.8rem;
    font-style: italic;
}

.qo-upload-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.qo-upload-preview img {
    max-height: 400px;
    max-width: 100%;
    border-radius: 15px;
    object-fit: contain;
}

.qo-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.qo-remove-btn:hover {
    background: rgba(220, 50, 50, 0.9);
}

/* ── Form Fields ──────────────────────────────────────────── */
.qo-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.qo-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qo-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.qo-field input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.qo-field input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ── Text Personalization ─────────────────────────────────── */
.qo-text-section {
    margin-bottom: 1.75rem;
}

.qo-text-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.qo-text-label .qo-hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.85rem;
}

.qo-suggestion-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.qo-suggestion-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

.qo-suggestion-btn::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.qo-suggestion-btn:hover {
    background: #f8fafc;
}

.qo-suggestion-btn:hover::before {
    border-color: #ff6b35;
}

.qo-suggestion-btn.selected {
    background: #fffaf8;
    color: #1a1a1a;
    font-weight: 500;
}

.qo-suggestion-btn.selected::before {
    border-color: #ff6b35;
    border-width: 5px;
    background: white;
}

.qo-custom-input {
    margin-top: 0.5rem;
}

.qo-custom-input input,
.qo-text-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.qo-custom-input input:focus,
.qo-text-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* -- Size List (radio-button style) --------------------------------- */
.qo-size-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.qo-size-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.qo-size-option::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.qo-size-option:hover {
    background: #f8fafc;
}

.qo-size-option:hover::before {
    border-color: #ff6b35;
}

.qo-size-option.selected {
    background: #fffaf8;
    color: #1a1a1a;
    font-weight: 500;
}

.qo-size-option.selected::before {
    border-color: #ff6b35;
    border-width: 5px;
    background: white;
}

.qo-size-option-label {
    flex: 1;
    font-weight: 500;
    color: #1a1a1a;
}

.qo-size-option-price {
    color: #ff6b35;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ── Frame Grid ───────────────────────────────────────────── */
.qo-frame-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.qo-frame-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    position: relative;
}

.qo-frame-card:hover {
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.qo-frame-card.selected {
    border-color: #ff6b35;
    background: #fffaf8;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.18);
}

.qo-frame-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    z-index: 2;
}

.qo-frame-preview {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f5f9;
}

.qo-frame-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qo-frame-info {
    padding: 0.75rem 0.5rem;
}

.qo-frame-info strong {
    display: block;
    color: #1a1a1a;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.qo-frame-price {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
}

/* ── Shopify-Style Checkout (Step 5) ──────────────────────── */
.qo-step--review {
    background: #fafafa;
}

.qo-checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    max-width: 1100px;
    margin: 0 auto;
    gap: 0;
    min-height: calc(100vh - 200px);
}

/* ── Left Column: Main ────────────────────────────────────── */
.qo-checkout-main {
    padding: 2rem 3rem 3rem 2rem;
    background: #fff;
}

.qo-checkout-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    font-size: 0.8rem;
    color: #737373;
}

.qo-checkout-breadcrumb i {
    font-size: 0.55rem;
    color: #b0b0b0;
}

.qo-breadcrumb-item {
    cursor: pointer;
    color: #1773b0;
    text-decoration: none;
    transition: color 0.2s;
}

.qo-breadcrumb-item:hover {
    color: #0f5a8a;
    text-decoration: underline;
}

.qo-breadcrumb-active {
    color: #333;
    cursor: default;
    font-weight: 500;
}

.qo-breadcrumb-active:hover {
    color: #333;
    text-decoration: none;
}

/* ── Checkout Sections ────────────────────────────────────── */
.qo-checkout-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.qo-checkout-section:last-of-type {
    border-bottom: none;
}

.qo-checkout-section-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem;
    font-family: 'Inter', sans-serif;
}

.qo-checkout-section-note {
    font-size: 0.8rem;
    color: #737373;
    margin: -0.4rem 0 0.75rem;
}

/* Contact info display */
.qo-checkout-contact-display {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
}

.qo-checkout-info-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e5e5;
}

.qo-checkout-info-row:last-child {
    border-bottom: none;
}

.qo-checkout-info-label {
    color: #737373;
    min-width: 70px;
    font-size: 0.8rem;
}

.qo-checkout-info-value {
    color: #333;
    flex: 1;
}

.qo-checkout-change-link {
    color: #1773b0;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.qo-checkout-change-link:hover {
    color: #0f5a8a;
    text-decoration: underline;
}

/* Order details grid */
.qo-checkout-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.qo-checkout-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.qo-checkout-detail-label {
    font-size: 0.75rem;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.qo-checkout-detail-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.qo-checkout-personalization {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.qo-checkout-text-preview {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #333;
    font-style: italic;
}

/* ── Shipping Options ─────────────────────────────────────── */
.qo-shipping-options {
    display: flex;
    flex-direction: column;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
}

.qo-shipping-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.15s;
    -webkit-user-select: none;
    user-select: none;
}

.qo-shipping-option:last-child {
    border-bottom: none;
}

.qo-shipping-option:hover {
    background: #f7f7f7;
}

.qo-shipping-option.selected {
    background: #f0f7ff;
}

.qo-shipping-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #b0b0b0;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.qo-shipping-radio.checked {
    border-color: #1773b0;
}

.qo-shipping-radio.checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1773b0;
}

.qo-shipping-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.1rem;
}

.qo-shipping-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.qo-shipping-time {
    font-size: 0.78rem;
    color: #737373;
}

.qo-shipping-estimate {
    font-size: 0.75rem;
    color: #1773b0;
    font-weight: 500;
}

.qo-shipping-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.qo-shipping-free {
    color: #16a34a;
    font-weight: 700;
}

/* ── Trust Badges ─────────────────────────────────────────── */
.qo-checkout-trust {
    margin-top: 1.5rem;
}

.qo-trust-badges {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.qo-trust-badges span {
    font-size: 0.78rem;
    color: #737373;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.qo-trust-badges i {
    color: #a0a0a0;
    font-size: 0.85rem;
}

/* ── Right Column: Order Summary Sidebar ──────────────────── */
.qo-checkout-sidebar {
    background: #fafafa;
    border-left: 1px solid #e5e5e5;
    padding: 2rem 2rem 3rem;
}

.qo-checkout-summary-card {
    position: sticky;
    top: 100px;
}

.qo-summary-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.25rem;
    font-family: 'Inter', sans-serif;
}

/* Product row */
.qo-summary-product {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.qo-summary-product-image {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #f5f5f5;
    flex-shrink: 0;
}

.qo-summary-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qo-summary-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #737373;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qo-summary-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.15rem;
}

.qo-summary-product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.qo-summary-product-variant {
    font-size: 0.78rem;
    color: #737373;
}

.qo-summary-product-price {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.qo-summary-divider {
    border-top: 1px solid #e5e5e5;
    margin: 1rem 0;
}

/* Price lines */
.qo-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.qo-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #737373;
}

/* Total row */
.qo-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.25rem;
}

.qo-summary-total-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.qo-summary-total-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: #333;
}

.qo-summary-total-amount small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #737373;
    margin-right: 0.25rem;
}

/* Delivery callout */
.qo-summary-delivery-note {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: #f0f7ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #333;
}

.qo-summary-delivery-note i {
    color: #1773b0;
    font-size: 1rem;
}

.qo-summary-shipping-method {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

/* Sidebar pay button (desktop only by default) */
.qo-sidebar-pay-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 15px 24px;
    font-size: 1.05rem;
}

/* Inline contact edit form */
.qo-checkout-contact-edit {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qo-contact-edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.qo-contact-edit-field label {
    font-size: 0.78rem;
    color: #737373;
    font-weight: 500;
}

.qo-contact-input {
    padding: 0.6rem 0.85rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.qo-contact-input:focus {
    border-color: #1773b0;
    box-shadow: 0 0 0 2px rgba(23, 115, 176, 0.12);
}

.qo-contact-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.qo-contact-save-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    background: #1773b0;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.qo-contact-save-btn:hover {
    background: #135e91;
}

.qo-contact-save-btn:disabled {
    background: #b0b0b0;
    cursor: not-allowed;
}

.qo-contact-cancel-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: white;
    color: #737373;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.qo-contact-cancel-btn:hover {
    border-color: #b0b0b0;
    color: #333;
}

/* ── Checkout Footer (Pay Button) ─────────────────────────── */
.qo-checkout-footer {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
}

.qo-checkout-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    background: #1773b0;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
    white-space: nowrap;
}

.qo-checkout-pay-btn:hover {
    background: #135e91;
    box-shadow: 0 2px 8px rgba(23, 115, 176, 0.3);
}

.qo-checkout-pay-btn .fa-paypal {
    font-size: 1.2rem;
}

.qo-checkout-pay-btn .qo-lock-icon {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 0.15rem;
}

/* Desktop: hide bottom bar on checkout step, pay button is in sidebar */
@media (min-width: 769px) {
    .qo-bottom-bar--checkout {
        display: none;
    }
    .qo-checkout-wrapper {
        margin-top: 30px;
    }
}

.qo-bottom-bar--checkout {
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.qo-payment-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qo-payment-processing {
    background: #f0f6ff;
    color: #1e40af;
}

.qo-payment-success {
    background: #ecfdf5;
    color: #065f46;
}

.qo-payment-error {
    background: #fef2f2;
    color: #991b1b;
}

/* ── Bottom Bar ── */
/* Desktop: sticky at end of content / viewport bottom.
   Mobile:  always fixed to viewport bottom. */
.qo-bottom-bar {
    position: sticky;
    bottom: 20px;             /* sit above the legal-bar */
    z-index: 100;
    padding: 0.85rem 1.5rem;
    margin: 0.5rem 0 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0;
}

/* Sentinel: no longer needed, kept as empty element */
.qo-bottom-sentinel {
    display: none;
}

.qo-bottom-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
}

.qo-price-display {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'DM Serif Display', serif;
}

.qo-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.qo-btn-back:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1a1a1a;
}

.qo-btn-next,
.qo-btn-checkout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 50%, #ffa726 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
    margin-left: auto;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.qo-btn-next::before,
.qo-btn-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.qo-btn-next:hover:not(:disabled),
.qo-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #ff5722 0%, #ff6b35 50%, #ff9800 100%);
}

.qo-btn-next:hover:not(:disabled)::before,
.qo-btn-checkout:hover::before {
    left: 100%;
}

.qo-btn-next:not(:disabled):active,
.qo-btn-checkout:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.qo-btn-next i {
    transition: transform 0.3s ease;
}

.qo-btn-next:hover:not(:disabled) i {
    transform: translateX(3px);
}

.qo-btn-next:disabled {
    background: linear-gradient(135deg, #cbd5e1 0%, #b0bec5 100%);
    color: rgba(255, 255, 255, 0.65);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: auto;
}

.qo-btn-next:disabled::before {
    display: none;
}

.qo-btn-checkout {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.qo-btn-checkout:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #059669, #10b981);
}

/* ── Legal Bar (matches order.html) ───────────────────────── */
.qo-legal-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 4px 1rem;
    background: #edf0f4;
    color: #64748b;
    font-size: 0.7rem;
    z-index: 101;
    line-height: 1;
    border-top: 1px solid #dde2e8;
}

.qo-legal-bar a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.qo-legal-bar a:hover {
    color: #1a1a1a;
}

.qo-legal-links {
    display: flex;
    gap: 0.75rem;
}

.qo-legal-links a::before {
    content: "|";
    margin-right: 0.75rem;
    color: #94a3b8;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .qo-progress {
        padding: 0.75rem 0 0.6rem;
        margin-bottom: 1rem;
    }

    .qo-progress-bar {
        margin-bottom: 0.75rem;
    }

    .qo-progress-steps {
        padding: 0 0.75rem;
    }

    .qo-progress-step {
        gap: 0.2rem;
    }

    .qo-progress-step span {
        font-size: 0.625rem;
        white-space: nowrap;
    }

    .qo-progress-step i {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .qo-step-header {
        margin-bottom: 1.5rem;
    }

    .qo-step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .qo-step-header h2,
    .qo-container h2 {
        font-size: 1.4rem;
        margin-bottom: 0.35rem;
    }

    .qo-step-header p {
        font-size: 0.875rem;
    }

    .qo-frame-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qo-form-card {
        padding: 1.5rem;
    }

    /* Checkout: stack to single column on tablet/mobile */
    .qo-checkout-wrapper {
        grid-template-columns: 1fr;
    }

    .qo-checkout-main {
        padding: 1.5rem 1.25rem;
    }

    .qo-checkout-sidebar {
        border-left: none;
        border-top: 1px solid #e5e5e5;
        padding: 1.5rem 1.25rem 2rem;
    }

    .qo-checkout-summary-card {
        position: static;
    }

    /* Mobile: hide sidebar pay button, show sticky footer instead */
    .qo-sidebar-pay-btn {
        display: none;
    }

    .qo-checkout-footer {
        padding: 0;
    }

    .qo-checkout-pay-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Mobile: always fixed so buttons never scroll away */
    .qo-bottom-bar {
        position: fixed;
        bottom: 20px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0.85rem 1rem;
    }

    .qo-bottom-inner {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .qo-container {
        padding: 0 0.75rem;
    }

    .qo-progress {
        padding: 0.5rem 0 0.4rem;
        margin-bottom: 0.75rem;
    }

    .qo-progress-bar {
        margin-bottom: 0.5rem;
    }

    .qo-progress-steps {
        display: flex;
        padding: 0 0.5rem;
    }

    .qo-progress-step i {
        width: 24px;
        height: 24px;
        font-size: 0.575rem;
    }

    .qo-progress-step span {
        font-size: 0.5625rem;
    }

    .qo-step-header {
        margin-bottom: 1rem;
    }

    .qo-step-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .qo-step-header h2,
    .qo-container h2 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .qo-step-header p {
        font-size: 0.8125rem;
    }

    .qo-size-option {
        font-size: 0.875rem;
        padding: 0.55rem 0.75rem;
    }

    .qo-frame-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qo-suggestion-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .qo-btn-next,
    .qo-btn-checkout {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .qo-btn-back {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .qo-checkout-main {
        padding: 1.25rem 1rem;
    }

    .qo-checkout-sidebar {
        padding: 1.25rem 1rem 2rem;
    }

    .qo-checkout-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .qo-checkout-pay-btn {
        padding: 11px 18px;
        font-size: 0.85rem;
    }

    .qo-checkout-footer {
        padding: 0 0.5rem;
    }

    .qo-trust-badges {
        gap: 0.75rem;
    }

    .qo-trust-badges span {
        font-size: 0.7rem;
    }

    .qo-btn-back {
        margin-left: 0;
    }
}