/* WCM Store & Checkout Styles */
.store-wrapper { max-width: 1140px; margin: 0 auto; padding: 20px 15px 60px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.store-header { text-align: center; margin-bottom: 30px; }
.store-header h1 { font-size: 2.2em; font-weight: 800; color: #192024; margin: 0 0 8px 0; text-transform: none; letter-spacing: -0.5px; }
.store-header p { font-size: 1.05em; color: #64748b; max-width: 680px; margin: 0 auto; line-height: 1.5; }
.store-layout { display: flex; gap: 30px; align-items: flex-start; }
.store-products-col { flex: 1 1 63%; display: flex; flex-direction: column; gap: 16px; }
.store-summary-col { flex: 1 1 37%; position: sticky; top: 20px; }

/* Product Cards */
.store-card { 
    position: relative; 
    background: #ffffff; 
    border: 2px solid #e5e7eb; 
    border-radius: 12px; 
    padding: 22px; 
    display: flex; 
    gap: 20px; 
    align-items: flex-start; 
    transition: all 0.25s ease; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    cursor: pointer; 
    user-select: none;
}
.store-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-1px); }
.store-card.selected { 
    border: 2px solid #ED7D31; 
    background: #fffdfb; 
    box-shadow: 0 6px 20px rgba(237, 125, 49, 0.16); 
}

/* Custom Checkbox */
.store-checkbox-wrap { flex: 0 0 26px; margin-top: 4px; position: relative; }
.store-checkbox-input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; margin: 0; }
.store-checkbox-custom { 
    width: 26px; 
    height: 26px; 
    border-radius: 6px; 
    border: 2px solid #cbd5e1; 
    background: #ffffff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s ease; 
    box-sizing: border-box; 
    color: #ffffff; 
    font-size: 16px; 
    font-weight: bold; 
}
.store-card.selected .store-checkbox-custom,
.store-checkbox-input:checked + .store-checkbox-custom { 
    background: #ED7D31; 
    border-color: #ED7D31; 
    box-shadow: 0 2px 6px rgba(237, 125, 49, 0.35); 
}
.store-checkbox-check { display: none; line-height: 1; }
.store-card.selected .store-checkbox-check,
.store-checkbox-input:checked + .store-checkbox-custom .store-checkbox-check { display: block; }

/* Product Image & Content */
.store-thumb-wrap { flex: 0 0 100px; max-width: 100px; text-align: center; }
.store-thumb-img { width: 100%; height: auto; max-height: 110px; object-fit: contain; border-radius: 6px; }
.store-content { flex: 1 1 auto; }
.store-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.store-badge { font-size: 0.72em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 4px; background: #e0f2fe; color: #0369a1; display: inline-block; margin-bottom: 4px; }
.store-badge-calc { background: #dcfce7; color: #166534; }
.store-card-title { font-size: 1.22em; font-weight: 800; color: #192024; margin: 0 0 4px 0; line-height: 1.3; }
.store-card-subtitle { font-size: 0.88em; font-weight: 600; color: #ED7D31; margin: 0 0 8px 0; }
.store-card-desc { font-size: 0.88em; color: #475569; margin: 0 0 10px 0; line-height: 1.45; }
.store-features-list { list-style: none; padding: 0; margin: 0 0 12px 0; display: flex; flex-direction: column; gap: 4px; }
.store-features-list li { font-size: 0.84em; color: #334155; display: flex; align-items: center; gap: 8px; }
.store-features-list li::before { content: "✓"; color: #16a34a; font-weight: bold; flex-shrink: 0; }
.store-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.store-price-box { display: flex; align-items: baseline; gap: 6px; }
.store-price { font-size: 1.4em; font-weight: 800; color: #192024; }
.store-currency { font-size: 0.82em; color: #64748b; font-weight: 600; text-transform: uppercase; }
.store-demo-link { font-size: 0.84em; color: #3170a7; text-decoration: underline; font-weight: 600; }
.store-demo-link:hover { color: #ED7D31; }
.store-selected-pill { 
    font-size: 0.78em; 
    font-weight: 700; 
    color: #ED7D31; 
    background: #fff2e8; 
    border: 1px solid rgba(237, 125, 49, 0.35); 
    padding: 3px 10px; 
    border-radius: 20px; 
    opacity: 0; 
    transition: opacity 0.2s ease; 
}
.store-card.selected .store-selected-pill { opacity: 1; }

/* Quick Select Bar */
.store-quick-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.store-quick-btn { background: transparent; border: 1.5px solid #cbd5e1; border-radius: 6px; padding: 6px 14px; font-size: 0.85em; font-weight: 600; color: #334155; cursor: pointer; transition: all 0.2s; }
.store-quick-btn:hover { border-color: #ED7D31; color: #ED7D31; background: #fffcf9; }


/* Summary & Checkout Card */
.store-summary-card { background: #ffffff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.store-summary-title { font-size: 1.25em; font-weight: 800; color: #192024; margin: 0 0 16px 0; padding-bottom: 12px; border-bottom: 2px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.store-empty-notice { padding: 18px 12px; text-align: center; color: #64748b; font-size: 0.9em; background: #f8fafc; border-radius: 8px; margin-bottom: 16px; border: 1px dashed #cbd5e1; }
.store-items-list { list-style: none; padding: 0; margin: 0 0 16px 0; }
.store-item-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.92em; padding: 8px 0; color: #334155; border-bottom: 1px dashed #f1f5f9; }
.store-calc-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.store-calc-table td { padding: 7px 0; font-size: 0.94em; color: #475569; border: none; }
.store-calc-table td:last-child { text-align: right; font-weight: 600; color: #1e293b; }
.store-calc-table tr.total-row td { font-size: 1.3em; font-weight: 800; color: #192024; padding-top: 12px; border-top: 2px solid #e2e8f0; }

/* Form inputs */
.store-form-group { margin-bottom: 14px; }
.store-form-label { display: block; font-size: 0.88em; font-weight: 600; color: #334155; margin-bottom: 5px; }
.store-form-label .req { color: #e11d48; }
.store-form-input { width: 100%; border: 1.5px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; font-size: 0.95em; color: #1e293b; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit; }
.store-form-input:focus { outline: none; border-color: #ED7D31; box-shadow: 0 0 0 3px rgba(237, 125, 49, 0.15); }
.store-form-help { font-size: 0.75em; color: #64748b; margin-top: 4px; line-height: 1.3; }

/* Checkout Button */
.btn-store-checkout { width: 100%; background: #ED7D31; color: #ffffff !important; border: none; border-radius: 8px; padding: 14px 20px; font-size: 1.08em; font-weight: 800; text-align: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 3px 10px rgba(237, 125, 49, 0.35); text-decoration: none; display: block; }
.btn-store-checkout:hover { background: #d66b22; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(237, 125, 49, 0.45); }
.btn-store-checkout:disabled { background: #cbd5e1; color: #94a3b8 !important; cursor: not-allowed; box-shadow: none; transform: none; }

/* Trust Box */
.store-trust-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 8px; }
.store-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.82em; color: #475569; }
.store-trust-icon { color: #16a34a; font-weight: bold; flex-shrink: 0; }

/* Alerts */
.store-alert-error { background: #fef2f2; border: 1.5px solid #f87171; color: #991b1b; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95em; }
.store-alert-info { background: #eff6ff; border: 1.5px solid #93c5fd; color: #1e40af; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95em; }
.store-alert-success { background: #f0fdf4; border: 2px solid #86efac; color: #166534; padding: 24px; border-radius: 12px; box-shadow: 0 4px 14px rgba(22, 101, 52, 0.08); margin-bottom: 24px; text-align: center; }

/* Download buttons on receipt */
.store-download-box { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 20px; margin: 24px 0; }
.store-download-title { font-size: 1.1em; font-weight: 700; color: #192024; margin: 0 0 14px 0; display: flex; align-items: center; gap: 8px; }
.store-download-list { display: flex; flex-direction: column; gap: 10px; }
.store-download-btn { display: flex; justify-content: space-between; align-items: center; background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 8px; padding: 12px 18px; text-decoration: none; color: #192024; transition: all 0.2s; }
.store-download-btn:hover { border-color: #ED7D31; background: #fffcf9; color: #ED7D31; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.06); }
.store-download-btn strong { font-size: 0.95em; }
.store-download-action { display: inline-flex; align-items: center; gap: 6px; background: #ED7D31; color: #ffffff; padding: 6px 14px; border-radius: 6px; font-size: 0.85em; font-weight: 700; }

/* Responsive */
@media (max-width: 860px) {
    .store-layout { flex-direction: column; }
    .store-products-col, .store-summary-col { flex: 1 1 100%; width: 100%; }
    .store-summary-col { position: static; }
    .store-card { padding: 18px; gap: 14px; }
    .store-thumb-wrap { flex: 0 0 80px; max-width: 80px; }
}
@media (max-width: 520px) {
    .store-wrapper { padding-left: 10px; padding-right: 10px; }
    .store-thumb-wrap { display: none; }
}


/* English Receipt Container Styles */
.store-receipt-container { background: #ffffff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 36px 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); max-width: 780px; margin: 0 auto 30px; color: #1e293b; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.store-receipt-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid #192024; margin-bottom: 24px; gap: 20px; flex-wrap: wrap; }
.store-receipt-title { font-size: 1.7em; font-weight: 800; color: #192024; margin: 0 0 4px 0; letter-spacing: -0.5px; text-transform: uppercase; }
.store-receipt-subtitle { font-size: 0.88em; color: #64748b; margin: 0; }
.store-status-badge { display: inline-block; background: #dcfce7; color: #15803d; border: 1.5px solid #86efac; font-weight: 800; font-size: 0.85em; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; }
.store-receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 600px) { .store-receipt-grid { grid-template-columns: 1fr; } }
.store-party-title { font-size: 0.78em; font-weight: 700; text-transform: uppercase; color: #64748b; letter-spacing: 0.5px; margin-bottom: 6px; }
.store-party-content { font-size: 0.92em; line-height: 1.55; color: #1e293b; }
.store-meta-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; font-size: 0.88em; }
.store-meta-label { font-size: 0.78em; color: #64748b; font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.store-meta-val { font-weight: 700; color: #192024; word-break: break-all; }
.store-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.store-receipt-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.store-receipt-table th { background: #f1f5f9; padding: 10px 12px; font-size: 0.82em; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1.5px solid #cbd5e1; text-align: left; }
.store-receipt-table th.num, .store-receipt-table td.num { text-align: right; }
.store-receipt-table td { padding: 12px; font-size: 0.92em; border-bottom: 1px solid #e2e8f0; color: #1e293b; }
.store-receipt-table tr:last-child td { border-bottom: 2px solid #cbd5e1; }
.store-receipt-summary { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.store-receipt-summary-table { width: 320px; border-collapse: collapse; }
.store-receipt-summary-table td { padding: 6px 0; font-size: 0.92em; color: #475569; border: none; }
.store-receipt-summary-table td:last-child { text-align: right; font-weight: 600; color: #1e293b; }
.store-receipt-summary-table tr.total-row td { font-size: 1.25em; font-weight: 800; color: #192024; border-top: 2px solid #192024; padding-top: 10px; }
.store-receipt-actions { display: flex; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.btn-store-print { background: #192024; color: #ffffff !important; border: none; border-radius: 8px; padding: 12px 24px; font-size: 0.95em; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.btn-store-print:hover { background: #334155; }
.btn-store-secondary { background: #f8fafc; color: #334155 !important; border: 1.5px solid #cbd5e1; border-radius: 8px; padding: 12px 22px; font-size: 0.95em; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-store-secondary:hover { background: #e2e8f0; color: #192024 !important; }

/* Print Media */
@media print {
    body { background: #ffffff !important; color: #000000 !important; padding: 0 !important; margin: 0 !important; font-size: 11pt !important; }
    #top, .wrapper, header.major, nav, #header, #footer, .top-nav, .store-receipt-actions, .store-alert-success, .store-download-box { display: none !important; }
    .store-receipt-container { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; max-width: 100% !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; background: #ffffff !important; }
    .store-meta-box { background: #f8fafc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .store-receipt-table th { background: #f1f5f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

