/* Checkout Page - Hide main header on mobile */
.woocommerce-checkout .site-header {
    display: none;
}

.lapizza-checkout {
    min-height: 100vh;
    background: #1E1C1F;
    padding: 20px 16px;
    padding-bottom: 100px;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkout-title {
    font-family: 'Figtree', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.checkout-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-back img {
    width: 28px;
    height: 28px;
}

/* Sections */
.checkout-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

/* Order Summary */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item .item-qty {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4285F4;
    min-width: 28px;
}

.order-item .item-name {
    flex: 1;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.order-item .item-price {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.order-item-extra {
    padding-left: 36px;
}

.order-item-extra .extra-name {
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total span {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.order-total .total-price {
    font-size: 18px;
    font-weight: 700;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.form-group .required {
    color: #E53935;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    color: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #4285F4;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input[readonly] {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox */
.billing-same-checkbox {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4285F4;
}

.checkbox-label span {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.checkout-form-row {
    display: flex;
    flex-direction: column;
}

.checkout-form-row-half {
    flex-direction: row;
    gap: 12px;
}

.checkout-form-row-half .form-group {
    flex: 1;
}

/* Shipping Options */
.shipping-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-option,
.payment-option {
    display: block;
    cursor: pointer;
}

.shipping-option input,
.payment-option input {
    display: none;
}

.shipping-option .option-content,
.payment-option .option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.shipping-option input:checked + .option-content,
.payment-option input:checked + .option-content {
    background: rgba(66, 133, 244, 0.1);
    border-color: #4285F4;
}

.option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    flex-shrink: 0;
}

.shipping-option input:checked + .option-content .option-icon {
    background: #4285F4;
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-title {
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.option-desc {
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Payment Options specific */
.payment-option .option-content {
    padding: 14px 16px;
}

.no-payment-methods {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px;
}

/* Checkout Footer */
.checkout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: #1E1C1F;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-submit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    height: 52px;
    background: #4285F4;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.checkout-submit-btn span {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.checkout-submit-btn .checkout-total {
    font-size: 18px;
}

.checkout-submit-btn:hover {
    background: #3b78e7;
}

.checkout-submit-btn:disabled {
    background: rgba(66, 133, 244, 0.5);
    cursor: not-allowed;
}


/* ===========================================
   Desktop - Checkout
   =========================================== */
@media (min-width: 1024px) {
    .woocommerce-checkout .site-header {
        display: flex;
    }

    .lapizza-checkout {
        min-height: auto;
        max-width: none;
        margin: 20px 16px 40px;
        padding: 32px 40px;
        padding-bottom: 32px;
        border-radius: 10px;
    }

    .checkout-header {
        margin-bottom: 28px;
    }

    .checkout-title {
        font-size: 28px;
    }

    .checkout-back img {
        width: 32px;
        height: 32px;
    }

    .checkout-section {
        padding: 24px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-input {
        padding: 16px 18px;
        font-size: 16px;
    }

    .checkout-form-row-half {
        gap: 16px;
    }

    .shipping-option .option-content,
    .payment-option .option-content {
        padding: 18px 20px;
    }

    .option-icon {
        width: 44px;
        height: 44px;
    }

    .option-title {
        font-size: 16px;
    }

    .option-desc {
        font-size: 13px;
    }

    /* Footer - not fixed on desktop */
    .checkout-footer {
        position: static;
        padding: 0;
        margin-top: 24px;
        background: transparent;
        border-top: none;
    }

    .checkout-submit-btn {
        height: 56px;
        border-radius: 12px;
    }

    .checkout-submit-btn span {
        font-size: 17px;
    }

    .checkout-submit-btn .checkout-total {
        font-size: 20px;
    }
}
