/* ===================================================================
   CUSTOM CHECKOUT PAGE STYLES - Bluesky DukaMarket Theme
   Scoped to checkout index page only to avoid conflicts
   ================================================================== */

.checkout-index-index {
    /* --- RESET & BASICS --- */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #2c2c2c;
    line-height: 1.6;
}

.checkout-index-index .page-main {
    padding-bottom: 80px;
}

/* --- LAYOUT WRAPPER --- */
.checkout-index-index .checkout-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.checkout-index-index h1.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
}

/* --- GRID SYSTEM (2 Columns) --- */
.checkout-index-index .checkout-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.checkout-index-index .col-billing {
    flex: 6;
    min-width: 0;
}

.checkout-index-index .col-order {
    flex: 4;
    min-width: 380px;
    position: sticky;
    top: 20px;
}

/* --- BILLING FORM STYLES --- */
.checkout-index-index .billing-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.checkout-index-index .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.checkout-index-index .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.checkout-index-index label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.checkout-index-index label span.required {
    color: #e63946;
}

.checkout-index-index .form-control,
.checkout-index-index .input-text,
.checkout-index-index select.select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fcfcfc;
    outline: none;
    transition: border-color 0.2s;
}

.checkout-index-index .form-control:focus,
.checkout-index-index .input-text:focus,
.checkout-index-index select.select:focus {
    border-color: #777;
    background: #fff;
}

.checkout-index-index select.form-control,
.checkout-index-index select.select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* --- ORDER SUMMARY CARD --- */
.checkout-index-index .order-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

/* Free Delivery Banner */
.checkout-index-index .free-delivery-banner {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px dashed #4caf50;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-index-index h2.order-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #222;
}

/* Product List in Summary */
.checkout-index-index .summary-product {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.checkout-index-index .prod-info {
    display: flex;
    gap: 15px;
}

.checkout-index-index .prod-thumb {
    width: 60px;
    height: 60px;
    background: #f9f9f9;
    border-radius: 4px;
    object-fit: contain;
    padding: 5px;
    position: relative;
}

.checkout-index-index .prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-index-index .qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #666;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-index-index .prod-details {
    font-size: 14px;
    max-width: 180px;
}

.checkout-index-index .prod-name {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.checkout-index-index .prod-meta {
    color: #888;
    font-size: 12px;
}

.checkout-index-index .prod-price {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

/* Summary Totals */
.checkout-index-index .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.checkout-index-index .summary-total {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Promo Code */
.checkout-index-index .promo-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #666;
}

.checkout-index-index .promo-link {
    color: #222;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Payment Methods */
.checkout-index-index .payment-methods {
    margin-bottom: 25px;
}

.checkout-index-index .payment-option {
    margin-bottom: 15px;
}

.checkout-index-index .payment-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 8px;
}

.checkout-index-index .payment-desc {
    font-size: 12px;
    color: #666;
    margin-left: 26px;
    line-height: 1.5;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    position: relative;
}

.checkout-index-index .payment-desc::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #f4f4f4;
}

/* Submit Button */
.checkout-index-index .btn-place-order,
.checkout-index-index .action.primary.checkout {
    width: 100%;
    background-color: #1f2937;
    color: white !important;
    padding: 16px;
    border: none;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
    text-align: center;
}

.checkout-index-index .btn-place-order:hover,
.checkout-index-index .action.primary.checkout:hover {
    background-color: #111827;
}

/* Trust Badges */
.checkout-index-index .trust-badges {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.checkout-index-index .trust-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.checkout-index-index .badge-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.checkout-index-index .pay-icon {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 800;
    color: #555;
}

/* Privacy Text */
.checkout-index-index .privacy-text {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    margin-bottom: 20px;
}

.checkout-index-index .privacy-text a {
    color: #222;
    text-decoration: underline;
}

/* Create Account Checkbox */
.checkout-index-index .create-account-wrapper {
    margin-top: 20px;
}

.checkout-index-index .create-account-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

.checkout-index-index .create-account-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-index-index .checkout-grid {
        flex-direction: column;
    }

    .checkout-index-index .col-order {
        width: 100%;
        min-width: auto;
        position: static;
    }

    .checkout-index-index .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Override Magento default checkout styles */
.checkout-index-index .opc-wrapper {
    max-width: none;
    margin: 0;
}

.checkout-index-index .checkout-shipping-address,
.checkout-index-index .checkout-payment-method {
    padding: 0;
}

/* Hide default Magento checkout elements if needed */
.checkout-index-index .opc-block-summary {
    margin: 0;
    padding: 0;
}
