/* =============================================================
   Adnan Cart Widgets — baseline styles
   These are minimal defaults. Override everything from Elementor.
   ============================================================= */

.adnan-cart-el { box-sizing: border-box; }
.adnan-cart-el * { box-sizing: border-box; }

/* Summary rows (subtotal, shipping, taxes, discount, fees) */
.adnan-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.adnan-summary-row:last-child { border-bottom: 0; }
.adnan-line-label { font-weight: 500; }
.adnan-line-value { font-weight: 600; }

/* Line items */
.adnan-line-items { display: flex; flex-direction: column; gap: 16px; }
.adnan-line-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.adnan-line-item--no-thumb { grid-template-columns: 1fr auto; }
.adnan-line-item__img img { border-radius: 6px; display: block; }
.adnan-line-item__name { font-weight: 600; margin-bottom: 4px; }
.adnan-line-item__price,
.adnan-line-item__qty { font-size: 0.9em; opacity: 0.85; }
.adnan-line-item__remove {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8em;
    color: #c00;
    text-decoration: none;
}
.adnan-line-item__remove:hover { text-decoration: underline; }
.adnan-line-item__subtotal { font-weight: 700; white-space: nowrap; }

/* Empty cart */
.adnan-empty-cart { text-align: center; padding: 40px 20px; }
.adnan-empty-heading { font-size: 2rem; font-weight: 700; margin: 0 0 8px; }
.adnan-empty-subtext { margin: 0 0 20px; opacity: .8; }
.adnan-empty-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #0a66ff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
}
.adnan-empty-btn:hover { opacity: .92; }

/* Coupon form */
.adnan-coupon-label { display: block; font-weight: 600; margin-bottom: 8px; }
.adnan-coupon-row { display: flex; gap: 8px; }
.adnan-coupon-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}
.adnan-coupon-btn {
    padding: 10px 18px;
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.adnan-coupon-btn:hover { opacity: .9; }

/* Cart Notices */
.adnan-notices { margin: 0 0 16px; }
.adnan-notices:empty { display: none; }
.adnan-notices .woocommerce-error,
.adnan-notices .woocommerce-message,
.adnan-notices .woocommerce-info {
    margin: 0 0 10px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: 6px;
    list-style: none;
    font-size: 0.95em;
}
.adnan-notices .woocommerce-error  { background: #fdecea; border-color: #e89999; color: #8a1f1f; }
.adnan-notices .woocommerce-message { background: #e7f4e9; border-color: #a8d9ae; color: #1b5e20; }
.adnan-notices .woocommerce-info   { background: #e8f1fb; border-color: #a6c5ee; color: #1a4e8a; }
.adnan-notices .woocommerce-error li,
.adnan-notices .woocommerce-message li,
.adnan-notices .woocommerce-info li { margin: 4px 0; }
.adnan-notices .woocommerce-error a,
.adnan-notices .woocommerce-message a,
.adnan-notices .woocommerce-info a { color: inherit; text-decoration: underline; }
.adnan-notices-demo__note { margin: 8px 0 0; font-size: .8em; opacity: .6; font-style: italic; }

/* Estimated delivery */
.adnan-estimated-delivery {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}
.adnan-estimated-delivery__icon { display: inline-flex; align-items: center; }
.adnan-estimated-delivery__icon i,
.adnan-estimated-delivery__icon svg { display: inline-block; vertical-align: middle; }
.adnan-estimated-delivery__label { font-weight: 600; }
.adnan-estimated-delivery__date  { font-weight: 500; }

/* Express payment */
.adnan-express-heading { text-align: center; font-weight: 600; margin-bottom: 10px; opacity: .8; }
.adnan-express-fallback {
    text-align: center;
    font-size: 0.9em;
    padding: 14px 16px;
    border: 1px dashed rgba(0,0,0,.15);
    border-radius: 6px;
    background: rgba(0,0,0,.02);
    color: #555;
}

/* Checkout button */
.adnan-checkout-btn-wrap { text-align: center; }
.adnan-checkout-btn {
    display: inline-block;
    padding: 16px 32px;
    background: #0a66ff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.adnan-checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10,102,255,.25);
}
.adnan-checkout-sub {
    margin: 10px 0 0;
    font-size: 0.85em;
    opacity: .75;
}

/* Accepted payment methods */
.adnan-accepted-pm { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.adnan-pm-heading { font-size: 0.85em; opacity: .7; }
.adnan-pm-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.adnan-pm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #fff;
    color: #222;
    font-family: -apple-system, Segoe UI, Arial, sans-serif;
}
.adnan-pm-visa       { color:#1a1f71; border-color:#1a1f71; }
.adnan-pm-mastercard { color:#eb001b; border-color:#eb001b; }
.adnan-pm-amex       { color:#006fcf; border-color:#006fcf; }
.adnan-pm-paypal     { color:#003087; border-color:#003087; }
.adnan-pm-applepay   { color:#000; border-color:#000; }
.adnan-pm-googlepay  { color:#4285f4; border-color:#4285f4; }

/* Editor placeholder */
.adnan-cart-placeholder {
    padding: 20px;
    border: 2px dashed #cfd4da;
    background: #fafbfc;
    color: #6b7280;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 640px) {
    .adnan-line-item { grid-template-columns: auto 1fr; }
    .adnan-line-item__subtotal { grid-column: 1 / -1; text-align: right; }
}
