/* ===== MAIN LAYOUT ===== */
.container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1164px;
    margin: 20px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
    align-items: flex-start;
}

.left {
    flex: 1;
    min-width: 0;
    padding-bottom: 20px;
}

.right {
    width: 280px;
    flex-shrink: 1;
    overflow-wrap: break-word;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.right-warpper {
    padding: 22px 16px;
}


/* ===== SUMMARY TEXT ===== */
.order-summary-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.coffee-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 20px;
}

.coffee-details {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 6px;
}

.subtotal {
    margin-top: 60px;
}

.order-details {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.order-details div,
.order-details span {
    font-size: 12px;
}


/* ===== HEADER ROW ===== */
.return-link,
.check-out-title {
    display: inline-block;
}

.return-link {
    float: left;
    color: black;
    text-decoration: none;
}

.check-out-title {
    text-align: center;
    width: 100%;
}

h3 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 400;
}


/* ===== DIVIDER ===== */
.line {
    width: 30%;
    display: inline-block;
    margin: 6px 0;
}

.divider {
    margin-top: 25px;
}

/* ===== BUTTONS ===== */
.button {
    display: block;
    padding: 15px;
    text-align: center;
    background-color: #5c6ac4;
    color: white;
    border: none;
    margin-bottom: 20px;
    border-radius: 4px;
}

.purple-button {
    background-color: purple;
}

.black-button {
    background-color: black;
}

.blue-button {
    width: 100%;
    height: 56px;
    background-color: #005180;
    color: white;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


/* ===== GENERAL ===== */
hr {
    border: none;
    height: 1px;
    background-color: black;
    margin: 10px 0;
}

input,
select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

fieldset {
    border: none;
    margin: 10px 0;
    padding: 0;
}

fieldset legend {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
}

.sign-up-login {
    font-size: 14px;
    margin-bottom: 20px;
}

.sign-up-login a {
    color: var(--primary-blue-color);
}


/* ===== SHIPPING STYLES ===== */
.shipping-method {
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* radio | text | price */
    align-items: center;
    padding: 16px;
    border: 1px solid black;
    margin-bottom: 14px;
    gap: 12px;
}

.shipping-method label {
    display: contents;
}

/* radio */
.shipping-method input[type="radio"] {
    grid-column: 1;
    align-self: center;
    margin-bottom: 0;
}

.shipping-method label span,
.shipping-method label {
    grid-column: 2;
}

.shipping-method>span {
    grid-column: 3;
    justify-self: end;
    white-space: nowrap;
}


/* ===== PAYMENT ONLY ===== */
.payment-method label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.payment-method input[type="radio"] {
    margin-right: 10px;
}


/* ===== PAYMENT BUTTON ROW ===== */
.payment {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.payment a img {
    display: block;
    width: 100%;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .right {
        width: 100%;
        order: -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    h1.check-out-title {
        font-size: 22px;
    }

    h3 {
        font-size: 16px;
    }
}