/*
 * Shopping cart page: skin only. The markup and the layout columns are the theme's own;
 * every rule is scoped to the cart page body class, so no other page is touched.
 */
.checkout-cart-index {
    --itsc-border: #e3e6ea;
    --itsc-muted: #6b7280;
    --itsc-text: #1f2937;
    --itsc-accent: #1a1a1a;
    --itsc-cta: #e5483f;
    --itsc-cta-dark: #c93a32;
    --itsc-radius: 12px;
}

.checkout-cart-index .page-title-wrapper .page-title {
    font-weight: 700;
}

/* ---------- item table as a card ---------- */
.checkout-cart-index .cart-container .form-cart .cart.table-wrapper {
    background: #fff;
    border: 1px solid var(--itsc-border);
    border-radius: var(--itsc-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    overflow: hidden;
}

.checkout-cart-index .cart.table-wrapper .table > thead > tr > th {
    background: #f8fafc;
    border: 0;
    border-bottom: 1px solid var(--itsc-border);
    color: var(--itsc-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 14px 16px;
}

.checkout-cart-index .cart.table-wrapper .table > tbody > tr > td {
    border: 0;
    padding: 18px 16px;
    vertical-align: middle;
}

.checkout-cart-index .cart.table-wrapper tbody.cart.item + tbody.cart.item {
    border-top: 1px solid var(--itsc-border);
}

/* the buttons row belongs to the item above it */
.checkout-cart-index .cart.table-wrapper .item-actions > td {
    padding-bottom: 18px;
    padding-top: 0;
}

.checkout-cart-index .cart.table-wrapper .item-info > td {
    padding-bottom: 6px;
}

/* ---------- product ---------- */
/*
 * The theme lays the photo out as a table cell next to the name: its display and width are
 * left alone. Only the picture is rounded and kept to a sensible size (max-width wins over the
 * width the image container carries inline).
 */
.checkout-cart-index .cart.table-wrapper .product-image-container {
    max-width: 120px;
}

.checkout-cart-index .cart.table-wrapper .product-image-wrapper,
.checkout-cart-index .cart.table-wrapper .product-image-photo {
    border-radius: 10px;
}

.checkout-cart-index .cart.table-wrapper .product-item-name,
.checkout-cart-index .cart.table-wrapper .product-item-name a {
    color: var(--itsc-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.checkout-cart-index .cart.table-wrapper .product-item-name a:hover {
    color: var(--itsc-cta);
}

.checkout-cart-index .cart.table-wrapper .item-options {
    color: var(--itsc-muted);
    font-size: 13px;
}

.checkout-cart-index .cart.table-wrapper .col.price .price,
.checkout-cart-index .cart.table-wrapper .col.subtotal .price {
    color: var(--itsc-text);
    font-size: 17px;
    font-weight: 700;
}

.checkout-cart-index .cart.table-wrapper .col.subtotal .price {
    color: var(--itsc-cta);
}

/* ---------- quantity ---------- */
.checkout-cart-index .cart.table-wrapper .input-text.qty {
    background: #fff;
    border: 1px solid #c9ced6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    height: 42px;
    text-align: center;
    width: 64px;
}

.checkout-cart-index .cart.table-wrapper .input-text.qty:focus {
    border-color: var(--itsc-accent);
    box-shadow: 0 0 0 2px rgba(26, 26, 26, .12);
    outline: 0;
}

/* ---------- per-item actions: quiet buttons, remove in red ---------- */
.checkout-cart-index .cart.table-wrapper .item-actions .actions-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkout-cart-index .cart.table-wrapper .item-actions .actions-toolbar > .action,
.checkout-cart-index .cart.table-wrapper .item-actions .actions-toolbar > .gift-options-cart-item {
    margin: 0;
}

.checkout-cart-index .cart.table-wrapper .item-actions .action {
    background: #fff;
    border: 1px solid #c9ced6;
    border-radius: 8px;
    color: var(--itsc-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 14px;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.checkout-cart-index .cart.table-wrapper .item-actions .action:hover,
.checkout-cart-index .cart.table-wrapper .item-actions .action:focus-visible {
    border-color: var(--itsc-accent);
    color: var(--itsc-accent);
    text-decoration: none;
}

.checkout-cart-index .cart.table-wrapper .item-actions .action-delete:hover,
.checkout-cart-index .cart.table-wrapper .item-actions .action-delete:focus-visible {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* ---------- bottom buttons ---------- */
.checkout-cart-index .cart-container .form-cart .actions.main {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 16px;
}

.checkout-cart-index .cart-container .form-cart .actions.main > .action {
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 12px 22px;
    text-decoration: none;
}

.checkout-cart-index .cart-container .form-cart .actions.main > .action.continue {
    background: #fff;
    border: 1px solid #c9ced6;
    color: var(--itsc-text);
}

.checkout-cart-index .cart-container .form-cart .actions.main > .action.update {
    background: #fff;
    border: 1px solid var(--itsc-accent);
    color: var(--itsc-accent);
}

.checkout-cart-index .cart-container .form-cart .actions.main > .action:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

/* ---------- summary card ---------- */
.checkout-cart-index .cart-summary {
    background: #fff;
    border: 1px solid var(--itsc-border);
    border-radius: var(--itsc-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    box-sizing: border-box;
    padding: 20px;
}

@media (min-width: 768px) {
    .checkout-cart-index .cart-summary {
        position: sticky;
        top: 16px;
    }
}

.checkout-cart-index .cart-summary > .summary.title {
    color: var(--itsc-text);
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.checkout-cart-index .cart-summary .title {
    font-weight: 600;
}

.checkout-cart-index .cart-summary .totals .mark,
.checkout-cart-index .cart-summary .totals .amount {
    border: 0;
    color: var(--itsc-text);
    font-size: 14px;
    padding: 8px 4px;
}

.checkout-cart-index .cart-summary .totals .grand.totals {
    border-top: 1px solid var(--itsc-border);
}

.checkout-cart-index .cart-summary .totals .grand .mark,
.checkout-cart-index .cart-summary .totals .grand .amount {
    font-size: 16px;
    font-weight: 700;
    padding-top: 14px;
}

.checkout-cart-index .cart-summary .totals .grand .amount .price {
    color: var(--itsc-cta);
    font-size: 22px;
}

/* ---------- the call to action ---------- */
.checkout-cart-index .cart-summary .checkout-methods-items {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.checkout-cart-index .cart-summary .checkout-methods-items .item {
    margin: 0 0 12px;
}

.checkout-cart-index .cart-summary button.action.primary.checkout {
    background: var(--itsc-cta);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(229, 72, 63, .35);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    min-height: 50px;
    padding: 14px 10px;
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
    width: 100%;
}

.checkout-cart-index .cart-summary button.action.primary.checkout:hover,
.checkout-cart-index .cart-summary button.action.primary.checkout:focus-visible {
    background: var(--itsc-cta-dark);
    box-shadow: 0 4px 12px rgba(229, 72, 63, .45);
}

.checkout-cart-index .cart-summary button.action.primary.checkout:active {
    transform: translateY(1px);
}

.checkout-cart-index .cart-summary .action.multicheckout {
    color: var(--itsc-muted);
    display: block;
    font-size: 13px;
    text-align: center;
    text-decoration: underline;
}

.checkout-cart-index .cart-summary .action.multicheckout:hover {
    color: var(--itsc-text);
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
    .checkout-cart-index .cart-container .form-cart .actions.main > .action {
        flex: 1 1 100%;
        text-align: center;
    }

    .checkout-cart-index .cart.table-wrapper .item-actions .action {
        flex: 1 1 auto;
        text-align: center;
    }

    .checkout-cart-index .cart-summary {
        margin-top: 24px;
    }
}
