/**
 * OVBRYJOD EDUCATION HUB LIMITED — GLOBAL CART DRAWER CSS
 * File: css/cart.css
 */

/* Backdrop overlay */
.ovb-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 30, 53, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.ovb-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-over Drawer Panel */
.ovb-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #ffffff;
    z-index: 99995;
    box-shadow: -8px 0 32px rgba(7, 30, 53, 0.28);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ovb-cart-drawer.active {
    transform: translateX(0);
}

/* Header */
.ovb-cart-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b2d4e;
    color: #ffffff;
}

.ovb-cart-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ovb-cart-header-icon {
    stroke: #f39c12;
}

.ovb-cart-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.ovb-cart-badge {
    background: #e67e22;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
}

.ovb-cart-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.ovb-cart-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Views */
.ovb-cart-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Scroll area */
.ovb-cart-items-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

/* Empty State */
.ovb-cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
}

.ovb-cart-empty-icon {
    font-size: 48px;
    margin-bottom: 14px;
    opacity: 0.8;
}

.ovb-cart-empty h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0b2d4e;
    margin-bottom: 8px;
}

.ovb-cart-empty p {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 22px;
}

/* Cart Item Card */
.ovb-cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.ovb-cart-item:last-child {
    border-bottom: none;
}

.ovb-cart-item-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: #f8fafc;
    flex-shrink: 0;
}

.ovb-cart-item-info {
    flex: 1;
    min-width: 0;
}

.ovb-cart-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0b2d4e;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ovb-cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: #b12704;
    margin-bottom: 8px;
}

.ovb-cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ovb-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}

.ovb-qty-btn {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.ovb-qty-btn:hover {
    background: #e2e8f0;
}

.ovb-qty-val {
    width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.ovb-cart-item-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    margin-left: auto;
    font-size: 15px;
    transition: color 0.15s;
}

.ovb-cart-item-remove:hover {
    color: #ef4444;
}

/* Footer / Summary */
.ovb-cart-footer {
    padding: 18px 22px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ovb-cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.subtotal-label {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
}

.subtotal-amount {
    font-size: 20px;
    font-weight: 900;
    color: #0b2d4e;
}

.ovb-cart-delivery-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.4;
}

.ovb-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ovb-btn-cart-primary {
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ovb-btn-cart-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.45);
}

.ovb-btn-cart-link {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12.5px;
    cursor: pointer;
    padding: 6px;
    text-align: center;
    transition: color 0.15s;
}

.ovb-btn-cart-link:hover {
    color: #ef4444;
}

/* Checkout View */
.ovb-checkout-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
}

.ovb-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 14px;
    padding: 0;
}

.ovb-checkout-subtitle {
    font-size: 16px;
    font-weight: 800;
    color: #0b2d4e;
    margin-bottom: 4px;
}

.ovb-checkout-desc {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.45;
}

.ovb-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.form-group-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group-field label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.form-group-field input,
.form-group-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group-field input:focus,
.form-group-field select:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* =========================================================
   AUTHENTIC FINTECH PAYMENT GATEWAY & SUMMARY STYLING
   ========================================================= */

.ovb-payment-section {
    margin-top: 4px;
}

.ovb-section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ovb-field-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.ovb-secure-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
}

.ovb-payment-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Payment Card */
.ovb-pay-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ovb-pay-card:hover {
    border-color: #94a3b8;
    background: #fafafa;
    transform: translateY(-1px);
}

.ovb-pay-card.selected {
    border-color: #e67e22;
    background: #fffcf8;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.15), 0 0 0 1px #e67e22;
}

.ovb-pay-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom Radio Circle */
.ovb-pay-card-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #ffffff;
}

.ovb-pay-card.selected .ovb-pay-card-radio {
    border-color: #e67e22;
    background: #ffffff;
}

.ovb-pay-card.selected .ovb-pay-card-radio::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e67e22;
}

.ovb-pay-card-content {
    flex: 1;
    min-width: 0;
}

.ovb-pay-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.ovb-pay-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0b2d4e;
}

.ovb-pay-card-desc {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
}

/* Card Brand Chips */
.ovb-card-badges {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-chip {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.chip-mc {
    background: #ea001b;
    color: #ffffff;
    background: linear-gradient(135deg, #eb001b 0%, #ff5f00 50%, #f79e1b 100%);
    box-shadow: 0 1px 3px rgba(235, 0, 27, 0.25);
}

.chip-visa {
    background: #00579f;
    color: #ffd15c;
    box-shadow: 0 1px 3px rgba(0, 87, 159, 0.25);
}

.chip-verve {
    background: #00425a;
    color: #00d084;
}

.ovb-pay-badge-manual {
    font-size: 10px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 2px 7px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* =========================================================
   CORPORATE BANK ACCOUNT DETAILS CARD
   ========================================================= */

.ovb-manual-bank-wrap {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: ovbFadeSlideDown 0.25s ease-out;
}

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

.ovb-bank-account-card {
    background: linear-gradient(145deg, #0b2d4e 0%, #071e35 100%);
    border: 1px solid rgba(230, 126, 34, 0.45);
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(11, 45, 78, 0.22);
}

.ovb-bank-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 10px;
}

.ovb-bank-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-icon {
    font-size: 22px;
}

.bank-label {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #f39c12;
}

.bank-name {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.bank-currency-tag {
    font-size: 10.5px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    color: #f8fafc;
}

.ovb-bank-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bank-detail-row {
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.detail-k {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.detail-v {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
}

/* Account Number Highlight Box */
.bank-acc-number-box {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: 8px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0;
}

.acc-num-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2.2px;
    color: #f39c12;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.ovb-btn-copy-acc {
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid rgba(243, 156, 18, 0.6);
    color: #fef08a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.ovb-btn-copy-acc:hover {
    background: #f39c12;
    color: #0b2d4e;
    transform: translateY(-1px);
}

.ovb-btn-copy-acc.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.bank-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
    font-size: 12px;
}

.meta-v {
    color: #e2e8f0;
    font-weight: 600;
}

.ovb-bank-card-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.35;
}

/* =========================================================
   RECEIPT UPLOAD DROPZONE
   ========================================================= */

.ovb-receipt-upload-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ovb-receipt-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.ovb-receipt-dropzone:hover,
.ovb-receipt-dropzone.dragover {
    border-color: #e67e22;
    background: #fffaf0;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #475569;
}

.dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0b2d4e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.ovb-receipt-dropzone:hover .dropzone-icon {
    background: #fed7aa;
    color: #c2410c;
}

.dropzone-text strong {
    display: block;
    font-size: 12.5px;
    color: #0b2d4e;
    margin-bottom: 2px;
}

.dropzone-text span {
    display: block;
    font-size: 11px;
    color: #64748b;
}

/* Preview selected file */
.receipt-file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: left;
}

.preview-media {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-icon {
    font-size: 20px;
}

.preview-info {
    flex: 1;
    min-width: 0;
}

.preview-filename {
    font-size: 12px;
    font-weight: 700;
    color: #0b2d4e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-filesize {
    font-size: 11px;
    color: #64748b;
}

.btn-remove-receipt {
    background: #fee2e2;
    border: none;
    color: #ef4444;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-remove-receipt:hover {
    background: #fca5a5;
    color: #b91c1c;
}

.ovb-receipt-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

.ovb-receipt-hint svg {
    flex-shrink: 0;
    color: #e67e22;
}

/* =========================================================
   UPGRADED AUTHENTIC ORDER BREAKDOWN / TOTAL DUE RECEIPT CARD
   ========================================================= */

.ovb-order-breakdown-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin: 8px 0 12px 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.breakdown-header {
    background: #f8fafc;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breakdown-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #475569;
}

.breakdown-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: #0b2d4e;
    background: #e2e8f0;
    padding: 2px 7px;
    border-radius: 4px;
}

.breakdown-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
}

.row-label {
    color: #64748b;
}

.row-value {
    font-weight: 700;
    color: #0b2d4e;
}

.row-value-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 7px;
    border-radius: 4px;
}

.free-tag {
    font-size: 11px;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
}

.breakdown-footer {
    border-top: 1.5px dashed #cbd5e1;
    background: #fbfcfe;
    padding: 12px 14px;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.total-label {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: #0b2d4e;
    letter-spacing: 0.5px;
}

.total-sub {
    display: block;
    font-size: 10.5px;
    color: #64748b;
    font-weight: 500;
}

.total-price-wrap {
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.total-currency {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.total-amount {
    font-size: 21px;
    font-weight: 900;
    color: #b12704;
    letter-spacing: -0.5px;
}

.breakdown-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    padding: 6px;
    background: #ecfdf5;
    border-radius: 6px;
}

.ovb-btn-checkout-cta {
    font-size: 14.5px;
    letter-spacing: 0.2px;
}

/* Success View */
.ovb-success-wrap {
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ovb-success-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
}

.ovb-success-wrap h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0b2d4e;
    margin-bottom: 8px;
}

.ovb-success-sub {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 22px;
}

.ovb-success-order-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.ovb-success-order-box .label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    display: block;
}

.ovb-success-order-box .order-code {
    font-size: 20px;
    font-weight: 900;
    color: #e67e22;
    letter-spacing: 1px;
    margin: 6px 0;
}

.ovb-success-order-box .meta {
    font-size: 12px;
    color: #64748b;
}

.ovb-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
