/* Checkout Section Styles - Mobile First */
.checkout-section {
    padding: 80px 0 50px;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.checkout-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

.checkout-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checkout-form {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.checkout-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coupon-section {
    margin: 30px 0;
}

.coupon-section h3 {
    margin-bottom: 15px;
}

.coupon-input-group {
    display: flex;
    margin-bottom: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    border-right: none;
}

.coupon-input-group button {
    background-color: #8b4513;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.coupon-input-group button:hover {
    background-color: #654321;
}

#couponMessage {
    margin: 0;
    font-size: 0.9rem;
    min-height: 20px;
}

.payment-options {
    margin-bottom: 30px;
}

.payment-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.payment-option:hover {
    border-color: #8b4513;
}

.payment-option input {
    margin-right: 12px;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.payment-option i {
    color: #8b4513;
    font-size: 1.1rem;
}

.place-order-btn {
    background-color: #8b4513;
    color: white;
    border: none;
    padding: 15px 20px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    font-weight: 600;
}

.place-order-btn:hover {
    background-color: #654321;
}

.order-summary {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.order-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #8b4513;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

/* Order Success Section */
.order-success {
    padding: 80px 0 50px;
    background-color: #f9f9f9;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.success-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.success-content i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.success-content p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.order-id {
    font-weight: bold;
    color: #8b4513;
    margin: 20px 0;
    font-size: 1.1rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.continue-shopping,
.back-home {
    background-color: #8b4513;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: 500;
    text-align: center;
}

.continue-shopping:hover,
.back-home:hover {
    background-color: #654321;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Tablet */
@media (min-width: 768px) {
    .checkout-section {
        padding: 100px 0 70px;
    }

    .checkout-content {
        flex-direction: row;
    }

    .checkout-form {
        flex: 2;
    }

    .order-summary {
        flex: 1;
    }

    .form-row {
        flex-direction: row;
    }

    .form-row .form-group {
        flex: 1;
    }

    .success-content {
        padding: 50px 40px;
    }

    .success-actions {
        flex-direction: row;
        justify-content: center;
    }

    .continue-shopping,
    .back-home {
        min-width: 150px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .checkout-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .checkout-form {
        padding: 30px;
    }

    .order-summary {
        padding: 30px;
    }

    .success-content {
        padding: 60px 50px;
    }

    .success-content h2 {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .checkout-section {
        padding: 70px 0 40px;
    }

    .checkout-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .checkout-form {
        padding: 15px;
    }

    .order-summary {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .coupon-input-group {
        flex-direction: column;
    }

    .coupon-input-group input {
        border-radius: 4px;
        border-right: 1px solid #ddd;
        margin-bottom: 10px;
    }

    .coupon-input-group button {
        border-radius: 4px;
        width: 100%;
    }

    .payment-option {
        padding: 10px;
    }

    .payment-option label {
        font-size: 0.9rem;
    }

    .success-content {
        padding: 25px 15px;
        margin: 0 10px;
    }

    .success-content i {
        font-size: 3rem;
    }

    .success-content h2 {
        font-size: 1.5rem;
    }

    .success-content p {
        font-size: 0.9rem;
    }
}