/* SESSION 722 V2 ISOLATED CART REVIEW CSS START
 * This component uses a new class namespace so the accumulated legacy cart
 * review rules in cart.css cannot affect its layout.
 */

.ep-cart-review,
.ep-cart-review *,
.ep-cart-review *::before,
.ep-cart-review *::after {
    box-sizing: border-box;
}

.ep-cart-review {
    display: grid;
    gap: 22px;
    width: 100%;
    min-width: 0;
}

.ep-cart-review__header {
    width: 100%;
    min-width: 0;
}

.ep-cart-review__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    min-width: 0;
}

.ep-cart-review__heading > div {
    min-width: 0;
}

.ep-cart-review__heading h1 {
    margin: 0;
    color: #10233f;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.ep-cart-review__heading p {
    margin: 12px 0 0;
    color: #68778b;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.45;
}

.ep-cart-review__clear-form {
    flex: 0 0 auto;
    margin: 0;
}

.ep-cart-review__clear-button {
    min-height: 48px;
    padding: 11px 22px;
    border: 1px solid #e4b4b1;
    border-radius: 999px;
    background: #ffffff;
    color: #b42318;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.ep-cart-review__clear-button:hover,
.ep-cart-review__clear-button:focus-visible {
    border-color: #b42318;
    background: #fff7f6;
    outline: none;
}

.ep-cart-review__items {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.ep-cart-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 18px;
    align-items: start;
    width: 100%;
    min-width: 0;
    padding: 22px;
    border: 1px solid #d9e3ed;
    border-radius: 24px;
    background: #f8fafc;
    overflow: hidden;
}

.ep-cart-card__image {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #ffffff;
    text-decoration: none;
    overflow: hidden;
}

.ep-cart-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px;
    background: #ffffff;
    object-fit: contain;
    object-position: center;
}

.ep-cart-card__body {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding: 0;
}

.ep-cart-card__body h2 {
    margin: 0 0 8px;
    color: #101828;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.ep-cart-card__meta {
    display: grid;
    gap: 4px;
    margin: 0;
    min-width: 0;
    color: #607086;
    font-size: 1rem;
    line-height: 1.4;
}

.ep-cart-card__meta span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ep-cart-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-top: 12px;
    color: #53667e;
    font-size: 1rem;
    font-weight: 750;
}

.ep-cart-card__price strong {
    color: #10233f;
    font-size: 1.08rem;
    font-weight: 900;
}

.ep-cart-card__options {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dbe3eb;
}

.ep-cart-card__option {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    min-width: 0;
    color: #26364a;
    line-height: 1.4;
}

.ep-cart-card__option strong {
    font-weight: 850;
}

.ep-cart-card__option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ep-cart-card__edit,
.ep-cart-card__controls {
    grid-column: 2;
    width: 100%;
    min-width: 0;
}

.ep-cart-card__edit {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #dbe3eb;
}

.ep-cart-card__edit summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1769aa;
    font-size: 1rem;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.ep-cart-card__edit summary::-webkit-details-marker {
    display: none;
}

.ep-cart-card__edit summary::before {
    content: "▶";
    font-size: 0.78em;
    transition: transform 160ms ease;
}

.ep-cart-card__edit[open] summary::before {
    transform: rotate(90deg);
}

.ep-cart-card__edit form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.ep-cart-card__edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ep-cart-card__edit-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #53667e;
    font-weight: 800;
}

.ep-cart-card__edit-grid select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #cfd9e4;
    border-radius: 12px;
    background: #ffffff;
    color: #10233f;
    font: inherit;
}

.ep-cart-card__edit form > button {
    justify-self: start;
    min-height: 48px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: #1769aa;
    color: #ffffff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.ep-cart-card__controls {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(150px, 220px);
    align-items: stretch;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #dbe3eb;
}

.ep-cart-card__quantity-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.ep-cart-card__quantity-form label {
    display: grid;
    grid-template-columns: auto minmax(64px, 82px);
    align-items: center;
    justify-content: start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: #607086;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ep-cart-card__quantity-form input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #cfd9e4;
    border-radius: 12px;
    background: #ffffff;
    color: #10233f;
    font: inherit;
    font-weight: 800;
    text-align: center;
}

.ep-cart-card__quantity-form button,
.ep-cart-card__remove-form button {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 11px 16px;
    border-radius: 999px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.ep-cart-card__quantity-form button {
    border: 0;
    background: #1769aa;
    color: #ffffff;
}

.ep-cart-card__remove-form {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.ep-cart-card__remove-form button {
    border: 1px solid #e4b4b1;
    background: #ffffff;
    color: #b42318;
}

.ep-cart-card__quantity-form button:hover,
.ep-cart-card__quantity-form button:focus-visible,
.ep-cart-card__edit form > button:hover,
.ep-cart-card__edit form > button:focus-visible {
    background: #0f5c99;
    outline: none;
}

.ep-cart-card__remove-form button:hover,
.ep-cart-card__remove-form button:focus-visible {
    border-color: #b42318;
    background: #fff7f6;
    outline: none;
}

@media (max-width: 700px) {
    .ep-cart-review {
        gap: 18px;
    }

    .ep-cart-review__heading {
        display: grid;
        gap: 18px;
        align-items: start;
    }

    .ep-cart-review__clear-form,
    .ep-cart-review__clear-button {
        width: 100%;
    }

    .ep-cart-card {
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 16px;
        padding: 16px;
        border-radius: 20px;
    }

    .ep-cart-card__image {
        grid-column: 1;
        grid-row: 1;
        width: 72px;
        height: 72px;
    }

    .ep-cart-card__image img {
        padding: 5px;
    }

    .ep-cart-card__body {
        grid-column: 2;
        grid-row: 1;
    }

    .ep-cart-card__body h2 {
        margin-bottom: 6px;
        font-size: 1.22rem;
    }

    .ep-cart-card__meta,
    .ep-cart-card__price {
        font-size: 0.98rem;
    }

    .ep-cart-card__options {
        margin-top: 14px;
        padding-top: 14px;
    }

    .ep-cart-card__edit,
    .ep-cart-card__controls {
        grid-column: 1 / -1;
    }

    .ep-cart-card__edit {
        padding-top: 16px;
    }

    .ep-cart-card__edit-grid {
        grid-template-columns: 1fr;
    }

    .ep-cart-card__controls {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 16px;
    }

    .ep-cart-card__quantity-form {
        grid-template-columns: minmax(0, 1fr) 128px;
        gap: 12px;
    }

    .ep-cart-card__quantity-form label {
        grid-template-columns: auto minmax(64px, 82px);
    }
}

@media (max-width: 380px) {
    .ep-cart-card {
        grid-template-columns: 62px minmax(0, 1fr);
        column-gap: 11px;
        padding: 14px;
    }

    .ep-cart-card__image {
        width: 62px;
        height: 62px;
    }

    .ep-cart-card__quantity-form {
        grid-template-columns: 1fr;
    }

    .ep-cart-card__quantity-form label {
        grid-template-columns: auto minmax(72px, 1fr);
        justify-content: stretch;
    }
}
/* SESSION 722 V2 ISOLATED CART REVIEW CSS END */
