
/* #region ========== 01 | KURVENS OVERSKRIFT ========== */

.cart-header {
    max-width: 1150px;
    margin: 65px auto 45px;
    padding: 0 30px;
    text-align: center;
}

.cart-label {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: #999999;
}

.cart-header h1 {
    font-size: 48px;
    font-weight: normal;
    margin: 20px 0 10px;
}

.cart-header > p:last-child {
    font-size: 16px;
    color: #777777;
}

/* #endregion */


/* #region ========== 02 | KURVENS LAYOUT ========== */

.cart-page {
    max-width: 1150px;
    margin: 0 auto 100px;
    padding: 0 30px;
}

.cart-contents {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 70px;
    align-items: start;
}

.cart-contents[hidden],
.empty-cart[hidden] {
    display: none;
}

/* #endregion */


/* #region ========== 03 | PRODUKTER I KURVEN ========== */

.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #d8d4cc;
}

.cart-item:first-child {
    border-top: 1px solid #d8d4cc;
}

.cart-item-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.cart-item-info h2 {
    font-size: 24px;
    font-weight: normal;
    margin: 0 0 10px;
}

.cart-item-type,
.cart-item-size {
    font-size: 13px;
    color: #777777;
    margin: 8px 0;
}

/* #endregion */


/* #region ========== 04 | PRISER PÅ PRODUKTER ========== */

.cart-item-price {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #777777;
    margin: 16px 0 8px;
}

.cart-item-total {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #242424;
    margin: 8px 0 0;
}

/* #endregion */


/* #region ========== 05 | ANTAL OG FJERN PRODUKT ========== */

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 22px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8d4cc;
}

.quantity-button {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    color: #242424;
    font-size: 18px;
    cursor: pointer;
}

.quantity-button:hover {
    background-color: #eeeae3;
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.remove-item {
    border: none;
    padding: 5px 0;
    background: transparent;
    color: #777777;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.remove-item:hover {
    color: #242424;
}

/* #endregion */


/* #region ========== 06 | ORDREOVERSIGT ========== */

.cart-summary {
    padding: 30px;
    border: 1px solid #d8d4cc;
}

.cart-summary h2 {
    font-size: 23px;
    font-weight: normal;
    margin: 0 0 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 15px;
}

.summary-divider {
    height: 1px;
    background-color: #d8d4cc;
    margin: 25px 0;
}

/* #endregion */


/* #region ========== 07 | GLS HJEMMELEVERING ========== */

.delivery-section {
    margin: 28px 0;
}

.delivery-title {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: normal;
    color: #242424;
}

.delivery-intro {
    margin: 0 0 20px;
    color: #777777;
    font-size: 13px;
    line-height: 1.7;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 17px 15px;
    border: 1px solid #d8d4cc;
    background-color: transparent;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.delivery-option:hover {
    border-color: #777777;
}

.delivery-option.selected,
.delivery-option:has(input:checked) {
    border-color: #242424;
    background-color: #eeeae3;
}

.delivery-option input[type="radio"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #242424;
    cursor: pointer;
}

.delivery-option-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 5px;
}

.delivery-option-content strong {
    font-size: 14px;
    font-weight: normal;
    color: #242424;
}

.delivery-option-content small {
    font-size: 12px;
    line-height: 1.5;
    color: #777777;
}

.delivery-price {
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 12px;
    white-space: nowrap;
    color: #242424;
}

/* #endregion */


/* #region ========== 08 | GLS LEVERINGSFORMULAR ========== */

.shipping-details-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #dedbd5;
}

.shipping-form-title,
.shipping-form-description,
.shipping-validation-message {
    grid-column: 1 / -1;
}

.shipping-form-title {
    margin: 0;
    color: #242424;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.3;
}

.shipping-form-description {
    margin: -6px 0 0;
    color: #777777;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.shipping-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.shipping-field label {
    color: #34312d;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.shipping-field input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 10px 11px;
    border: 1px solid #d9d4cd;
    border-radius: 0;
    outline: none;
    background-color: #ffffff;
    color: #242424;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.shipping-field input::placeholder {
    color: #a39f99;
}

.shipping-field input:hover {
    border-color: #999999;
}

.shipping-field input:focus {
    border-color: #242424;
}

.shipping-field input:focus-visible {
    outline: 1px solid #242424;
    outline-offset: 2px;
}

.shipping-field input:read-only {
    color: #777777;
    background-color: #f5f3ef;
    cursor: default;
}

.shipping-field input[aria-invalid="true"] {
    border-color: #b42318;
    background-color: #fffafa;
}

/* #endregion */


/* #region ========== 09 | FEJL I LEVERINGSOPLYSNINGER ========== */

.shipping-validation-message {
    margin: 2px 0 0;
    padding: 12px 14px;
    border-left: 2px solid #b42318;
    background-color: #fbf5f3;
    color: #9f241b;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.7;
}

.shipping-validation-message[hidden] {
    display: none;
}

/* #endregion */


/* #region ========== 10 | INFORMATION OM TESTLEVERING ========== */

.delivery-test-notice {
    margin: 20px 0 0;
    padding-top: 15px;
    border-top: 1px solid #e5e0d9;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.7;
    color: #888888;
}

/* #endregion */


/* #region ========== 11 | SAMLET PRIS OG FRAGT ========== */

.cart-subtotal-row,
.cart-shipping-row {
    align-items: start;
    line-height: 1.6;
}

.cart-shipping-row {
    margin-top: 8px;
}

.cart-total-row {
    align-items: center;
    margin: 15px 0 25px;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

#cartGrandTotal {
    font-size: 21px;
    font-weight: 600;
    color: #242424;
    white-space: nowrap;
}

.shipping-notice {
    font-size: 13px;
    line-height: 1.7;
    color: #777777;
}

/* #endregion */


/* #region ========== 12 | STRIPE BETALING ========== */

.checkout-button {
    width: 100%;
    padding: 18px;
    margin-top: 25px;
    background-color: #242424;
    color: #ffffff;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.checkout-button:hover:not(:disabled) {
    background-color: #444444;
}

.checkout-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.back-to-shop {
    display: inline-block;
    margin-top: 25px;
    color: #242424;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-decoration: none;
}

.back-to-shop:hover {
    text-decoration: underline;
}

/* #endregion */


/* #region ========== 13 | TOM INDKØBSKURV ========== */

.empty-cart {
    text-align: center;
    padding: 65px 20px;
}

.empty-cart h2 {
    font-size: 28px;
    font-weight: normal;
}

.empty-cart p {
    color: #777777;
    margin: 20px 0 35px;
}

.continue-shopping {
    display: inline-block;
    padding: 16px 28px;
    background-color: #242424;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
}

.continue-shopping:hover {
    background-color: #444444;
}

/* #endregion */


/* #region ========== 14 | MOBILVENLIG KURV ========== */

@media (max-width: 768px) {

    .cart-header {
        margin-top: 40px;
        padding: 0 20px;
    }

    .cart-header h1 {
        font-size: 38px;
    }

    .cart-page {
        padding: 0 20px;
    }

    .cart-contents {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cart-item {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 18px;
    }

    .cart-summary {
        padding: 25px;
    }

    #cartGrandTotal {
        font-size: 19px;
    }

}

/* #endregion */


/* #region ========== 15 | SMÅ MOBILSKÆRME ========== */

@media (max-width: 600px) {

    .shipping-details-form {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 22px;
        padding-top: 20px;
    }

    .shipping-form-title {
        font-size: 19px;
    }

    .shipping-field input {
        min-height: 46px;
        padding: 12px 13px;
        font-size: 16px;
    }

}

@media (max-width: 420px) {

    .cart-summary {
        padding: 20px;
    }

    .delivery-option {
        gap: 10px;
        padding: 15px 12px;
    }

    .delivery-price {
        font-size: 11px;
    }

}

/* #endregion */
