/* =========================================
   FAITH'S GADGETS
   CHECKOUT PAGE CSS
========================================= */


/* =========================================
   GENERAL
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #111;
}


/* =========================================
   CHECKOUT PAGE
========================================= */

.checkout-page {
    min-height: 80vh;
    padding: 60px 6%;
    background: #f5f5f5;
}

.checkout-container {
    max-width: 1050px;
    margin: auto;
}


/* =========================================
   PAGE TITLE
========================================= */

.checkout-container > h1 {
    text-align: center;
    font-size: 42px;
    margin: 0 0 10px;
    color: #111;
}

.checkout-subtitle {
    text-align: center;
    color: #777;
    margin: 0 0 40px;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================
   CHECKOUT SECTIONS
========================================= */

.checkout-section,
.delivery-information,
.checkout-summary,
.payment-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 22px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.checkout-section h2,
.delivery-information h2,
.checkout-summary h2,
.payment-section h2 {
    margin: 0 0 22px;
    font-size: 22px;
    color: #111;
}


/* =========================================
   CUSTOMER FORM
========================================= */

.checkout-section label {
    display: block;
    margin-top: 17px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #222;
}

.checkout-section input,
.checkout-section textarea,
.checkout-section select {
    width: 100%;
    padding: 14px 15px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fafafa;

    font-size: 15px;
    font-family: Arial, sans-serif;

    transition: 0.3s;
}

.checkout-section input:focus,
.checkout-section textarea:focus,
.checkout-section select:focus {
    outline: none;

    border-color: #111;

    background: #fff;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.06);
}

.checkout-section textarea {
    min-height: 110px;
    resize: vertical;
}


/* =========================================
   DELIVERY LOCATION
========================================= */

#delivery-location {
    cursor: pointer;
}


/* =========================================
   DELIVERY INFORMATION
========================================= */

.delivery-information {
    background: #fff;
}

.delivery-information ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.delivery-information li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.delivery-information p {
    margin: 15px 0 0;
    color: #555;
    line-height: 1.6;
}

.delivery-information a {
    color: #111;
    font-weight: bold;
    text-decoration: underline;
}


/* =========================================
   ORDER SUMMARY
========================================= */

.checkout-summary {
    overflow: hidden;
}

#checkout-items {
    margin-bottom: 5px;
}

#checkout-items > p {
    color: #777;
    padding: 10px 0;
}


/* =========================================
   CHECKOUT ROW
========================================= */

.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid #eee;

    color: #555;
}

.checkout-row span {
    line-height: 1.5;
}

.checkout-row strong {
    color: #111;
    white-space: nowrap;
}


/* =========================================
   TOTAL
========================================= */

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 22px 0 5px;

    font-size: 24px;
    font-weight: bold;

    color: #111;
}

.checkout-total strong {
    white-space: nowrap;
}


/* =========================================
   PAYMENT SECTION
========================================= */

.payment-section {
    background: #fff;
}


/* =========================================
   PAYMENT OPTIONS
========================================= */

.payment-options {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-option {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    padding: 18px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fafafa;

    cursor: pointer;

    transition:
        border-color 0.3s,
        background 0.3s,
        transform 0.3s;
}

.payment-option:hover {
    border-color: #111;
    background: #fff;
    transform: translateY(-1px);
}


/* RADIO BUTTON */

.payment-option input {
    width: 18px;
    height: 18px;

    margin: 4px 0 0;

    cursor: pointer;

    accent-color: #111;
}


/* PAYMENT TEXT */

.payment-option span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.payment-option i {
    font-size: 21px;
    color: #111;
    margin-bottom: 3px;
}

.payment-option strong {
    font-size: 16px;
    color: #111;
}

.payment-option small {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}


/* SELECTED PAYMENT */

.payment-option:has(input:checked) {
    border: 2px solid #111;
    background: #f5f5f5;
}


/* =========================================
   PAY / PLACE ORDER BUTTON
========================================= */

.pay-button {
    width: 100%;

    padding: 17px;

    border: none;
    border-radius: 8px;

    background: #111;
    color: #fff;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.3s,
        transform 0.3s;
}

.pay-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.pay-button:active {
    transform: translateY(0);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .checkout-page {
        padding: 45px 5%;
    }

    .checkout-container > h1 {
        font-size: 32px;
    }

    .checkout-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .checkout-section,
    .delivery-information,
    .checkout-summary,
    .payment-section {
        padding: 22px;
        border-radius: 10px;
    }

    .checkout-section h2,
    .delivery-information h2,
    .checkout-summary h2,
    .payment-section h2 {
        font-size: 20px;
    }

    .checkout-row {
        gap: 15px;
        font-size: 14px;
    }

    .checkout-total {
        font-size: 20px;
    }

    .payment-option {
        padding: 15px;
    }

    .payment-option strong {
        font-size: 15px;
    }

    .payment-option small {
        font-size: 12px;
    }

    .pay-button {
        padding: 15px;
        font-size: 16px;
    }

}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 400px) {

    .checkout-page {
        padding: 35px 4%;
    }

    .checkout-container > h1 {
        font-size: 28px;
    }

    .checkout-section,
    .delivery-information,
    .checkout-summary,
    .payment-section {
        padding: 18px;
    }

    .checkout-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .checkout-total {
        font-size: 19px;
    }

}