.cart-notice {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 15px 18px;
    border-radius: 11px;
    font-weight: 700;
}

.cart-notice a {
    color: inherit;
}

.cart-notice-success {
    color: #166534;
    background: #dcfce7;
}

.cart-notice-error {
    color: #991b1b;
    background: #fee2e2;
}

.add-to-cart-form {
    padding-top: 6px;
    border-top: 1px solid #e2e8f0;
}

.add-to-cart-form label {
    display: block;
    margin-bottom: 9px;
    color: #63738a;
    font-size: 13px;
    font-weight: 800;
}

.add-to-cart-form > div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 9px;
}

.add-to-cart-form input {
    min-width: 0;
    padding: 13px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    text-align: center;
}

.add-to-cart-form button {
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #0567e8;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.cart-page {
    min-height: 70vh;
    padding: 60px 0 90px;
}

.cart-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.cart-page-heading span {
    color: #0567e8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cart-page-heading h1 {
    margin-top: 8px;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -.045em;
}

.cart-page-heading > strong {
    color: #63738a;
    font-size: 14px;
}

.empty-cart {
    display: grid;
    min-height: 390px;
    padding: 50px;
    place-items: center;
    align-content: center;
    gap: 18px;
    border: 1px solid #dce5f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(20, 45, 75, .08);
    text-align: center;
}

.empty-cart-mark {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    background: #0567e8;
    font-size: 34px;
    font-weight: 900;
}

.empty-cart a,
.cart-list-actions button {
    padding: 13px 18px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #0567e8;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.cart-items-card,
.cart-summary-card {
    border: 1px solid #dce5f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(20, 45, 75, .07);
}

.cart-items-card {
    padding: 24px;
}

.cart-table-heading,
.cart-row {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 100px 92px 110px 70px;
    gap: 16px;
    align-items: center;
}

.cart-table-heading {
    padding: 0 0 14px;
    color: #7a899d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cart-row {
    padding: 19px 0;
    border-top: 1px solid #e5edf5;
}

.cart-product {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    align-items: center;
}

.cart-product > a {
    display: grid;
    width: 90px;
    height: 90px;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    color: #0567e8;
    background: #f0f5fa;
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
}

.cart-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-product small {
    color: #0567e8;
    font-weight: 900;
}

.cart-product h2 {
    margin: 5px 0;
    font-size: 16px;
}

.cart-product h2 a {
    color: #10213a;
    text-decoration: none;
}

.cart-product p {
    color: #718198;
    font-size: 12px;
}

.cart-product em {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    font-style: normal;
}

.cart-quantity-control input {
    width: 76px;
    padding: 11px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    text-align: center;
}

.cart-quantity-control {
    position: relative;
}

.cart-quantity-control small {
    display: none;
    position: absolute;
    z-index: 2;
    top: calc(100% + 7px);
    left: 50%;
    width: 210px;
    padding: 7px 9px;
    border-radius: 7px;
    color: #9f1239;
    background: #ffe4e6;
    box-shadow: 0 8px 22px rgba(159, 18, 57, .14);
    font-size: 10px;
    line-height: 1.35;
    transform: translateX(-50%);
}

.cart-quantity-control small.is-visible {
    display: block;
}

.cart-quantity-control .cart-pair-rule {
    display: block;
    position: static;
    width: 92px;
    margin-top: 6px;
    padding: 0;
    color: #0a5aa8;
    background: transparent;
    box-shadow: none;
    font-size: 9px;
    line-height: 1.25;
    transform: none;
}

.cart-quantity-control input[aria-invalid="true"] {
    border-color: #e11d48;
    background: #fff1f2;
}

.cart-remove-button,
.clear-cart-form button {
    border: 0;
    color: #9f1239;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.cart-list-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e5edf5;
}

.cart-list-actions a {
    color: #0567e8;
    font-weight: 800;
    text-decoration: none;
}

.clear-cart-form {
    margin-top: 16px;
    text-align: right;
}

.cart-summary-card {
    position: sticky;
    top: 100px;
    padding: 28px;
}

.cart-summary-card > span {
    color: #0567e8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cart-summary-card h2 {
    margin: 8px 0 26px;
    font-size: 28px;
}

.cart-summary-card > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.cart-summary-card strong {
    color: #0567e8;
    font-size: 22px;
}

.cart-summary-card button {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    border: 0;
    border-radius: 9px;
    color: #8290a3;
    background: #e8eef5;
    font-weight: 800;
}

.cart-summary-card small {
    display: block;
    margin-top: 12px;
    color: #8290a3;
    line-height: 1.5;
}

@media (max-width: 1050px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .cart-table-heading {
        display: none;
    }

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

    .cart-product {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .cart-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-items-card {
        padding: 18px;
    }

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

    .cart-product {
        grid-column: auto;
        grid-template-columns: 72px 1fr;
    }

    .cart-product > a {
        width: 72px;
        height: 72px;
    }

    .cart-quantity-control,
    .cart-quantity-control input {
        width: 100%;
    }

    .cart-quantity-control .cart-pair-rule {
        width: 100%;
    }
}
