.back-to-shop-btn {
    align-self: flex-end;
    border: 2px solid black;
    border-right: none;
    border-top: none;
    background: #ffe1c3;
    border-bottom-left-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
    color: #3d1f0f;
    display: flex;
    font-family: "IM Fell English", serif;
    font-size: 1.1rem;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
    text-decoration: underline;
    transition: all 0.2s ease;
    width: 15rem;
}

.back-to-shop-btn:hover {
    background: #fff1e3;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

#checkout-container {
    align-items: flex-start;
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem auto;
    max-width: 85rem;
    padding: 1rem;
    width: 100%;
}

#cart-container,
#customer-info-container {
    flex: 1;
    min-width: 0;
}

/* Your Cart */
#cart-container {
    border: 1px solid gray;
    border-radius: 0.5rem;
    box-sizing: border-box;
    padding: 1rem;
    width: 100%;
}

#empty-cart-message {
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
}

#cart-products {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cart-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    margin: 0.5rem 0;
    max-width: 30rem;
    padding: 1rem;
    width: 100%;
}

.cart-image {
    border-radius: 0.5rem;
    flex-shrink: 0;
    height: 6rem;
    overflow: hidden;
    width: 7rem;
}

.cart-image-preview {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cart-info {
    font-size: 0.85rem;
    min-width: 0;
}

.cart-info h3 {
    margin: 0 0 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-info label,
.cart-info p {
    margin: 0.3rem 0;
}

.cart-item-container {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 7rem 1fr;
    width: 100%;
}

.quantity-input {
    border: none;
    border-bottom: 1px solid gray;
    width: 2.5rem;
}

.remove-product {
    margin-top: 1rem;
}

#shipping-section {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

#shipping-info {
    font-size: 0.8rem;
}

#cart-total {
    font-size: 1.2rem;
}

#shipping-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.7rem;
}

/* Your Information */
#customer-info-container {
    width: 100%;
}

#checkout-form {
    align-items: stretch;
    border: 1px solid gray;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 1rem;
    width: 100%;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.field input {
    border: 1px solid #b86b3c;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    padding: 0.5rem;
    width: 100%;
}

.field input:focus {
    outline: none;
}

#customer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#address-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-row {
    display: grid;
    gap: 1rem;
}

.address-row:first-child {
    grid-template-columns: 4fr 1fr;
}

#state-field {
    align-items: center;
    border: 1px solid black;
    display: flex;
}

.city-state-zip {
    grid-template-columns: repeat(3, 1fr);
}

#place-order-btn {
    background: #b86b3c;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    font-size: 0.9rem;
    justify-content: center;
    margin: 1rem auto;
    text-align: center;
    transition: all 0.2s ease;
    width: 50%;
}

#place-order-btn:hover {
    background: #b86c3cd6;
    transform: translateY(-1px);
}

#checkout-message {
    color: red;
    text-align: center;
}

@media (max-width: 65rem) {
    .back-to-shop-btn {
        border: 2px solid black;
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-left: none;
        border-top-right-radius: 1rem;
        max-width: 100%;
        min-width: 0;
        width: 10rem;
    }

    #cart-container {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }

    #checkout-container {
        align-items: center;
        flex-direction: column;
    }

    #customer-info-container {
        margin: 0 auto;
        width: 100%;
    }
}