/* ────────────────────────────────────────────────────────────
   Order summary styled as a black & white paper receipt.
   Loaded by partials/order_cart.blade.php.
   ──────────────────────────────────────────────────────────── */

.order-cart {
    position: relative;
    background: #fdfdfb;                         /* warm paper white */
    color: #1a1a1a;
    padding: 24px 26px 22px;
    font-family: "Courier New", ui-monospace, "SFMono-Regular", Menlo, monospace;
    border: 1px solid #eef0f6;
    border-radius: 16px;
    box-shadow: 0 12px 44px rgba(16, 24, 64, .14);
    overflow: hidden;
}

/* header */
.order-cart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 16px;
    padding-bottom: 14px;
    border-bottom: 2px dashed #cfcfca;
}
.order-cart__title { font-size: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #1a1a1a; }
.order-cart__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #1a1a1a;
    background: none;
    border: 1px solid #1a1a1a;
    padding: 3px 8px;
    border-radius: 0;
}
.order-cart__badge i { font-size: 13px; }

/* product row */
.order-cart__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #cfcfca;
}
.order-cart__flag {
    width: 46px;
    height: 34px;
    object-fit: cover;
    border-radius: 3px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px #d8d8d2;
}
.order-cart__country { font-size: 15px; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.order-cart__type { font-size: 12px; color: #777; margin-top: 3px; }

/* line items */
.order-cart__rows { list-style: none; margin: 0; padding: 0; }
.order-cart__rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed #e2e2dd;
}
.order-cart__rows li:last-child { border-bottom: none; }
.order-cart__rows li span { display: inline-flex; align-items: center; gap: 8px; color: #666; text-transform: uppercase; letter-spacing: .02em; }
.order-cart__rows li span i { font-size: 15px; color: #9a9a9a; width: 16px; text-align: center; }
.order-cart__rows li b { color: #1a1a1a; font-weight: 700; }

/* discount */
.order-cart__discount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed #e2e2dd;
}
.order-cart__discount span { display: inline-flex; align-items: center; gap: 8px; color: #666; text-transform: uppercase; }
.order-cart__discount b { color: #1a1a1a; font-weight: 700; }

/* promo — applied (valid, locked) */
.order-cart__promo { margin-top: 10px; font-size: 12px; }
.order-cart__promo--ok {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #2f7d4f;
    background: #eafaf2;
    border: 1px dashed #b7e4cc;
    padding: 8px 10px;
}
.order-cart__promo--ok i { font-size: 15px; }
.order-cart__promo--ok b { font-weight: 700; }

/* promo — invalid / unverified / not owned: message + edit row */
.order-cart__promo--bad {
    background: #fbf6e6;
    border: 1px dashed #e6d9a8;
    padding: 8px 10px;
}
.order-cart__promo-msg {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #8a7b3a;
}
.order-cart__promo-msg i { font-size: 14px; color: #b59a3e; margin-top: 1px; }
.order-cart__promo-edit { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.order-cart__promo-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    border: 1px solid #d8d3bd;
    border-radius: 6px;
    padding: 0 10px;
    font-family: "Courier New", monospace;
    font-size: 12.5px;
    color: #1a1a1a;
    background: #fff;
    text-transform: uppercase;
}
.order-cart__promo-input:focus { outline: none; border-color: #b59a3e; }
.order-cart__promo-apply {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
}
.order-cart__promo-apply i { font-size: 17px; }
.order-cart__promo-apply:hover { background: #333; }
.order-cart__promo-remove {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d3bd;
    border-radius: 6px;
    color: #8a7b3a;
    background: #fff;
    text-decoration: none;
}
.order-cart__promo-remove:hover { background: #f3eccf; color: #6f6230; }
.order-cart__promo-remove i { font-size: 16px; }

/* total */
.order-cart__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px dashed #1a1a1a;
}
.order-cart__total span { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #1a1a1a; }
.order-cart__total b { font-size: 22px; font-weight: 800; color: #1a1a1a; }

/* payment buttons (logged-in) — compact, fit the receipt */
.order-cart__pay { display: flex; gap: 10px; margin-top: 16px; }
.order-cart__pay-btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.order-cart__pay-btn i { font-size: 14px; }
.order-cart__pay-btn--outline,
.order-cart__pay-btn--outline:link,
.order-cart__pay-btn--outline:visited {
    background: #fff !important;
    border: 1.5px solid #4a90ff !important;
    color: #4a90ff !important;
}
.order-cart__pay-btn--outline:hover { background: #f3f8ff !important; color: #4a90ff !important; }
.order-cart__pay-btn--solid,
.order-cart__pay-btn--solid:link,
.order-cart__pay-btn--solid:visited {
    background: #4a90ff !important;
    border: 1.5px solid #4a90ff !important;
    color: #fff !important;
}
.order-cart__pay-btn--solid:hover { background: #3a7fee !important; border-color: #3a7fee !important; color: #fff !important; }
.order-cart__pay-btn:disabled {
    background: #e9ecf1 !important;
    border-color: #e1e5ee !important;
    color: #9aa0b0 !important;
    cursor: not-allowed;
}
@media (max-width: 380px) {
    .order-cart__pay { flex-direction: column; }
}

/* trust strip */
.order-cart__trust {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #cfcfca;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #777;
}
.order-cart__trust span { display: inline-flex; align-items: center; gap: 6px; }
.order-cart__trust i { color: #777; font-size: 13px; }
