.rt-cart,
.rt-cart * {
    box-sizing: border-box;
}

.rt-cart {
    max-width: 1200px;
    margin-inline: auto;
    padding: 24px 16px 48px;
    color: #181818;
}

.rt-cart [hidden] {
    display: none !important;
}

.rt-cart button,
.rt-cart input {
    font: inherit;
}

.rt-cart :is(a, button, input):focus-visible {
    outline: 2px solid #c9a46a;
    outline-offset: 3px;
}

.rt-cart__header {
    margin-bottom: 24px;
}

.rt-cart__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
}

.rt-cart__title,
.rt-cart__summary h2,
.rt-cart__empty h2 {
    margin: 0;
    color: #111111;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
    line-height: 1.25;
}

.rt-cart__title {
    font-size: clamp(28px, 6vw, 36px);
}

.rt-cart__count,
.rt-cart__preview {
    margin: 0;
    color: #6c6862;
    font-size: 13px;
}

.rt-cart__preview {
    margin-top: 8px;
    font-size: 12px;
}

.rt-cart__layout {
    display: grid;
    align-items: start;
    gap: 24px;
}

.rt-cart__layout > *,
.rt-cart__information {
    min-width: 0;
}

.rt-cart__items {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rt-cart__item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid #e7e1d8;
    border-radius: 10px;
    background: #ffffff;
}

.rt-cart__media {
    display: grid;
    place-items: center;
    align-self: start;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f1ede6;
    color: #6c6862;
    font-size: 11px;
    text-align: center;
}

.rt-cart__media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.rt-cart__media > span {
    padding: 8px;
}

.rt-cart__name {
    margin: 0;
    color: #111111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.rt-cart__color {
    margin: 4px 0 8px;
    color: #6c6862;
    font-size: 12px;
}

.rt-cart__price {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rt-cart__price span {
    color: #6c6862;
    font-size: 11px;
    font-weight: 400;
}

.rt-cart__controls {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 16px;
}

.rt-cart .rt-pdp__quantity {
    margin: 0;
}

.rt-cart__remove {
    display: block;
    min-height: 44px;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: #6c6862;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.rt-cart__item-footer {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    padding-top: 12px;
    border-top: 1px solid #e7e1d8;
}

.rt-cart__stock {
    flex: 1 1 110px;
    margin: 0;
    color: #6c6862;
    font-size: 12px;
}

.rt-cart__item[data-unavailable="true"] .rt-cart__stock {
    color: #b83a3a;
}

.rt-cart__line-total {
    margin: 0;
    color: #6c6862;
    font-size: 12px;
}

.rt-cart__line-total strong {
    margin-left: 8px;
    color: #181818;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rt-cart__summary {
    padding: 20px;
    border: 1px solid #e7e1d8;
    border-radius: 10px;
    background: #ffffff;
}

.rt-cart__summary h2,
.rt-cart__empty h2 {
    font-size: 24px;
}

.rt-cart__totals {
    display: grid;
    gap: 12px;
    margin: 24px 0;
    font-size: 14px;
}

.rt-cart__totals > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.rt-cart__totals dt {
    color: #6c6862;
}

.rt-cart__totals dd {
    min-width: 0;
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.rt-cart__totals .rt-cart__grand-total {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #e7e1d8;
    font-size: 18px;
    font-weight: 600;
}

.rt-cart__grand-total dt {
    color: #111111;
}

.rt-cart__warning {
    margin: 0 0 16px;
    color: #b83a3a;
    font-size: 13px;
}

.rt-cart .rt-pdp__button {
    text-decoration: none;
}

.rt-cart__continue {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 8px;
    color: #181818;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.rt-cart__empty {
    padding: 48px 16px;
    text-align: center;
}

.rt-cart__empty p {
    margin: 12px 0 24px;
    color: #6c6862;
    font-size: 14px;
}

.rt-cart__empty .rt-pdp__button {
    max-width: 280px;
    margin-inline: auto;
}

.rt-cart__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 768px) {
    .rt-cart {
        padding: 32px 24px 48px;
    }

    .rt-cart__layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .rt-cart__summary {
        position: sticky;
        top: 24px;
    }
}

@media (min-width: 1024px) {
    .rt-cart__item {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}