
 /* FishMe — Cart page */

.fishme-cart-page {
    --fishme-red: #c00208;
    --fishme-red-dark: #870106;
    --fishme-red-light: #e3333a;
    --fishme-red-soft: rgba(192, 2, 8, 0.09);
    --fishme-text: #1f1f25;
    --fishme-muted: #6e777d;
    --fishme-border: #e6e8ea;
    --fishme-border-strong: #d8dcdf;
    --fishme-bg: #f7f8f9;
    --fishme-success: #178a45;
    --fishme-success-soft: rgba(23, 138, 69, 0.1);
    --fishme-warning: #a35a00;
    --fishme-radius-card: 12px;
    --fishme-radius-control: 9px;
    --fishme-shadow: 0 1px 2px rgba(31, 31, 37, 0.04);

    background: #fff;
}

.fishme-cart-page *,
.fishme-cart-page *::before,
.fishme-cart-page *::after {
    box-sizing: border-box;
}

.fishme-cart-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Shared focus treatment for every interactive control on the page. */
.fishme-cart-page a:focus-visible,
.fishme-cart-page button:focus-visible,
.fishme-cart-page input:focus-visible {
    outline: 2px solid var(--fishme-red);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hero */

.fishme-cart-breadcrumb {
    padding: 18px 0 0;
}

.fishme-cart-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 44px;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--fishme-red-dark) 0%,
        var(--fishme-red) 48%,
        var(--fishme-red-light) 100%
    );
}

.fishme-cart-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/banner/store_banner_2.jpg") center / cover no-repeat;
    opacity: 0.18;
}

.fishme-cart-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(135, 1, 6, 0.92) 0%,
        rgba(192, 2, 8, 0.78) 55%,
        rgba(227, 51, 58, 0.62) 100%
    );
}

.fishme-cart-hero > .container {
    position: relative;
    z-index: 1;
}

.fishme-cart-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.fishme-cart-hero__copy {
    min-width: 0;
}

.fishme-cart-hero__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.fishme-cart-hero-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--fishme-red);
    font-size: 14px;
    font-weight: 700;
}

.fishme-cart-hero-count[hidden] {
    display: none;
}

.fishme-cart-hero__lead {
    max-width: 46ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.55;
}

.fishme-cart-hero__benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fishme-cart-hero__benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fishme-cart-hero__benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 17px;
    color: #fff;
}

.fishme-cart-hero__benefit-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fishme-cart-hero__benefit-copy strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.fishme-cart-hero__benefit-copy small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12.5px;
    line-height: 1.3;
}

/* Layout */

.fishme-cart-main {
    padding: 32px 0 64px;
    background: #fff;
}

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

/* With no items the summary column is hidden, so the basket would otherwise sit
   in the left 68% with dead space beside it. Widen to the full container. */
.fishme-cart-layout.is-empty {
    grid-template-columns: minmax(0, 1fr);
}

.fishme-cart-layout__primary,
.fishme-cart-layout__aside {
    min-width: 0;
}

/* Delivery bar */

.fishme-cart-delivery-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-bottom: 16px;
    padding: 14px 20px;
    border: 1px solid var(--fishme-border);
    border-radius: var(--fishme-radius-card);
    background: #fff;
    box-shadow: var(--fishme-shadow);
}

/* display:flex would otherwise override the hidden attribute. */
.fishme-cart-delivery-bar[hidden] {
    display: none;
}

.fishme-cart-delivery-bar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fishme-cart-delivery-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--fishme-red-soft);
    color: var(--fishme-red);
    font-size: 16px;
}

.fishme-cart-delivery-bar__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fishme-cart-delivery-bar__label {
    color: var(--fishme-muted);
    font-size: 12.5px;
    line-height: 1.3;
}

.fishme-cart-delivery-bar__value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fishme-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.fishme-cart-delivery-bar__value i {
    font-size: 11px;
    color: var(--fishme-muted);
    transition: transform 0.2s ease;
}

.fishme-cart-delivery-bar__value:hover {
    color: var(--fishme-red);
}

.fishme-cart-delivery-bar__value:hover i {
    transform: translateY(1px);
    color: var(--fishme-red);
}

.fishme-cart-delivery-bar__value[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* -------- Inline saved-address picker */

.fishme-cart-address-picker {
    position: relative;
}

.fishme-cart-address-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    z-index: 60;
    width: max-content;
    min-width: 288px;
    max-width: min(380px, calc(100vw - 32px));
    padding: 6px;
    border: 1px solid var(--fishme-border);
    border-radius: var(--fishme-radius-card);
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 31, 37, 0.14);
}

.fishme-cart-address-menu[hidden] {
    display: none;
}

.fishme-cart-address-menu__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 264px;
    overflow-y: auto;
}

.fishme-cart-address-menu__empty {
    margin: 0;
    padding: 12px 10px;
    color: var(--fishme-muted);
    font-size: 13px;
}

.fishme-cart-address-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fishme-cart-address-option:hover {
    background: var(--fishme-bg);
}

.fishme-cart-address-option.is-selected {
    background: var(--fishme-red-soft);
}

.fishme-cart-address-option__radio {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 2px solid var(--fishme-border-strong);
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fishme-cart-address-option.is-selected .fishme-cart-address-option__radio {
    border-color: var(--fishme-red);
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px var(--fishme-red);
}

.fishme-cart-address-option__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fishme-cart-address-option__copy strong {
    color: var(--fishme-text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}

.fishme-cart-address-option__copy small {
    color: var(--fishme-muted);
    font-size: 12.5px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.fishme-cart-address-option__tag {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--fishme-bg);
    color: var(--fishme-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fishme-cart-address-menu__add {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding: 10px;
    border: 0;
    border-top: 1px solid var(--fishme-border);
    border-radius: 0 0 8px 8px;
    background: none;
    color: var(--fishme-red);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fishme-cart-address-menu__add:hover {
    background: var(--fishme-red-soft);
}

/* Basket */

.fishme-cart-basket {
    border: 1px solid var(--fishme-border);
    border-radius: var(--fishme-radius-card);
    background: #fff;
    box-shadow: var(--fishme-shadow);
}

.fishme-cart-basket__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--fishme-border);
}

.fishme-cart-basket__title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--fishme-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.fishme-cart-basket__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--fishme-red-soft);
    color: var(--fishme-red);
    font-size: 15px;
}

.fishme-cart-basket__count {
    color: var(--fishme-muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.fishme-cart-basket__count[hidden] {
    display: none;
}

.fishme-cart-basket__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: var(--fishme-radius-control);
    background: none;
    color: var(--fishme-red);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fishme-cart-basket__clear:hover:not(:disabled) {
    border-color: rgba(192, 2, 8, 0.3);
    background: var(--fishme-red-soft);
}

.fishme-cart-basket__clear:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.fishme-cart-basket__clear[hidden] {
    display: none;
}

.fishme-cart-basket__items {
    position: relative;
    min-height: 80px;
}

/* Outlet grouping (rendered only when the basket spans >1 outlet) */

.fishme-cart-outlet-group + .fishme-cart-outlet-group {
    border-top: 1px solid var(--fishme-border);
}

.fishme-cart-outlet-group__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--fishme-bg);
    border-bottom: 1px solid var(--fishme-border);
}

.fishme-cart-outlet-group__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--fishme-border-strong);
    color: var(--fishme-red);
    font-size: 12px;
}

.fishme-cart-outlet-group__copy {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.fishme-cart-outlet-group__label {
    color: var(--fishme-muted);
    font-size: 12.5px;
}

.fishme-cart-outlet-group__name {
    color: var(--fishme-text);
    font-size: 13.5px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.fishme-cart-outlet-group__count {
    margin-left: auto;
    color: var(--fishme-muted);
    font-size: 12.5px;
    white-space: nowrap;
}

/* Product row */

.fishme-cart-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto minmax(96px, auto);
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    transition: background 0.2s ease;
}

.fishme-cart-item + .fishme-cart-item {
    border-top: 1px solid var(--fishme-border);
}

.fishme-cart-item:hover {
    background: #fcfcfd;
}

.fishme-cart-item--out-of-stock {
    background: rgba(192, 2, 8, 0.03);
}

.fishme-cart-item--out-of-stock .fishme-cart-item__media img {
    filter: grayscale(0.75);
    opacity: 0.75;
}

.fishme-cart-item--out-of-stock .fishme-cart-item__total {
    color: var(--fishme-muted);
}

/* Unavailable shelf — lines kept visible but excluded from the order.
   Mute the content only: the remove and restore controls must stay easy
   to hit, and a strikethrough would read as "already deleted". */
.fishme-cart-item--unavailable .fishme-cart-item__title,
.fishme-cart-item--unavailable .fishme-cart-item__meta {
    color: var(--fishme-muted);
}

.fishme-cart-item__qty-frozen {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 12px;
    border: 1px dashed var(--fishme-border-strong);
    border-radius: var(--fishme-radius-control);
    color: var(--fishme-muted);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.fishme-cart-item__restore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fishme-primary, #0e6e7d);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.fishme-cart-item__restore:hover {
    text-decoration: underline;
}

.fishme-cart-shelf {
    border-top: 1px dashed var(--fishme-border-strong);
}

.fishme-cart-shelf__head .fishme-cart-outlet-group__icon {
    color: var(--fishme-red);
}

.fishme-cart-item__media {
    flex: 0 0 auto;
    width: 132px;
    height: 96px;
    overflow: hidden;
    border: 1px solid var(--fishme-border);
    border-radius: 10px;
    background: var(--fishme-bg);
}

.fishme-cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fishme-cart-item__content {
    min-width: 0;
}

.fishme-cart-item__title {
    margin: 0 0 6px;
    color: var(--fishme-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.fishme-cart-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.fishme-cart-item__unit {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--fishme-red-soft);
    color: var(--fishme-red-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.fishme-cart-item__each {
    color: var(--fishme-muted);
    font-size: 13.5px;
}

.fishme-cart-item__stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

.fishme-cart-item__stock i {
    font-size: 11px;
}

.fishme-cart-item__stock--in {
    color: var(--fishme-success);
}

.fishme-cart-item__stock--low {
    color: var(--fishme-warning);
}

.fishme-cart-item__stock--out {
    color: var(--fishme-red);
}

/* Quantity stepper */

.fishme-cart-item__qty-edit {
    display: inline-flex;
    align-items: center;
    height: 42px;
    border: 1px solid var(--fishme-border-strong);
    border-radius: var(--fishme-radius-control);
    background: #fff;
    overflow: hidden;
}

.fishme-cart-item__qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fishme-text);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fishme-cart-item__qty-btn:hover {
    background: var(--fishme-red-soft);
    color: var(--fishme-red);
}

.fishme-cart-item__qty-btn:focus-visible {
    outline-offset: -2px;
}

/* No dividers — the stepper should read as one control, as in the reference. */
.fishme-cart-item__qty-field {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    min-width: 78px;
    padding: 0 4px;
    align-self: center;
}

/* Beat the theme's global input[type=text] border/line-height. */
.fishme-cart-item .fishme-cart-item__qty-input[type="text"] {
    width: 48px;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--fishme-text);
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    text-align: right;
}

.fishme-cart-item .fishme-cart-item__qty-input[type="text"]:focus {
    outline: none;
    box-shadow: none;
}

.fishme-cart-item__qty-field:focus-within {
    box-shadow: inset 0 0 0 2px var(--fishme-red-soft);
}

.fishme-cart-item__qty-unit {
    color: var(--fishme-muted);
    font-size: 12.5px;
    font-weight: 500;
}

/* -------- Remove + subtotal */

.fishme-cart-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    color: var(--fishme-muted);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.fishme-cart-item__remove:hover {
    border-color: rgba(192, 2, 8, 0.25);
    background: var(--fishme-red-soft);
    color: var(--fishme-red);
}

.fishme-cart-item__total-block {
    min-width: 92px;
    text-align: right;
}

.fishme-cart-item__total-label {
    display: none;
}

.fishme-cart-item__total {
    color: var(--fishme-red);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* Coupon */

.fishme-cart-coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin: 0 20px 20px;
    padding: 14px 16px;
    border: 1px dashed rgba(192, 2, 8, 0.28);
    border-radius: var(--fishme-radius-card);
    background: rgba(192, 2, 8, 0.04);
}

.fishme-cart-coupon[hidden] {
    display: none;
}

.fishme-cart-coupon__intro {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fishme-cart-coupon__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(192, 2, 8, 0.2);
    color: var(--fishme-red);
    font-size: 16px;
}

.fishme-cart-coupon__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fishme-cart-coupon__copy strong {
    color: var(--fishme-text);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.fishme-cart-coupon__copy small {
    color: var(--fishme-muted);
    font-size: 12.5px;
    line-height: 1.35;
}

.fishme-cart-coupon__form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex: 0 1 400px;
    min-width: 0;
    margin: 0;
}

/* The theme's input[type=text] zeroes padding and sets its own border — override both. */
.fishme-cart-coupon .fishme-cart-coupon__form input[type="text"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--fishme-border-strong);
    border-radius: var(--fishme-radius-control);
    background: #fff;
    color: var(--fishme-text);
    font-size: 14px;
    line-height: normal;
}

.fishme-cart-coupon .fishme-cart-coupon__form input[type="text"]::placeholder {
    color: #9aa2a8;
}

.fishme-cart-coupon .fishme-cart-coupon__form input[type="text"]:focus {
    outline: none;
    border-color: var(--fishme-red);
    box-shadow: 0 0 0 3px var(--fishme-red-soft);
}

/* .rts-btn.btn-primary ships display:block + max-width:max-content, which blows
   out the flex row — both have to be reset here. */
.fishme-cart-coupon .fishme-cart-coupon__form .rts-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 112px;
    max-width: none;
    height: 46px;
    padding: 0 24px;
    border-radius: var(--fishme-radius-control);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Empty state */

.fishme-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 24px 60px;
}

.fishme-cart-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--fishme-red-soft);
    color: var(--fishme-red);
    font-size: 30px;
}

.fishme-cart-empty__title {
    margin: 0 0 8px;
    color: var(--fishme-text);
    font-size: 20px;
    font-weight: 700;
}

.fishme-cart-empty__text {
    max-width: 40ch;
    margin: 0 0 22px;
    color: var(--fishme-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.fishme-cart-empty--loading {
    padding: 44px 24px;
}

.fishme-cart-empty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
}

.fishme-cart-empty__actions .rts-btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    height: 46px;
    padding: 0 26px;
    border-radius: var(--fishme-radius-control);
}

.fishme-cart-empty__secondary {
    color: var(--fishme-text);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fishme-cart-empty__secondary:hover {
    color: var(--fishme-red);
}

/* Support strip */

.fishme-cart-support {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--fishme-border);
    border-radius: var(--fishme-radius-card);
    background: var(--fishme-bg);
}

.fishme-cart-support__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fishme-cart-support__item + .fishme-cart-support__item {
    border-left: 1px solid var(--fishme-border);
    padding-left: 16px;
}

.fishme-cart-support__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--fishme-border);
    color: var(--fishme-red);
    font-size: 15px;
}

.fishme-cart-support__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fishme-cart-support__copy strong {
    color: var(--fishme-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.fishme-cart-support__copy small,
.fishme-cart-support__copy small a {
    color: var(--fishme-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

/* Keep each support line to one row; ellipsis rather than wrap if it can't fit. */
.fishme-cart-support__copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fishme-cart-support__copy small a:hover {
    color: var(--fishme-red);
}

/* Order summary */

.fishme-cart-summary {
    position: sticky;
    top: 96px;
    padding: 20px;
    border: 1px solid var(--fishme-border);
    border-radius: var(--fishme-radius-card);
    background: #fff;
    box-shadow: var(--fishme-shadow);
}

.fishme-cart-summary[hidden] {
    display: none;
}

.fishme-cart-summary__title {
    margin: 0 0 16px;
    color: var(--fishme-text);
    font-size: 18px;
    font-weight: 700;
}

.fishme-cart-summary__body[hidden] {
    display: none;
}

.fishme-cart-summary__empty-text {
    margin: 0 0 18px;
    color: var(--fishme-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* Delivery method radios (partials/delivery-method-options) */

/* Compact two-up toggle — a fulfillment choice, not a headline element. */
.fishme-cart-shipping-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.fishme-cart-summary-label {
    grid-column: 1 / -1;
    display: block;
    margin-bottom: 0;
    color: var(--fishme-muted);
    font-size: 12px;
    font-weight: 600;
}

.fishme-cart-shipping-option {
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.fishme-cart-shipping-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fishme-cart-shipping-option-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 9px 8px;
    border: 1px solid var(--fishme-border-strong);
    border-radius: var(--fishme-radius-control);
    background: #fff;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fishme-cart-shipping-option-inner > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--fishme-bg);
    color: var(--fishme-muted);
    font-size: 12px;
}

.fishme-cart-shipping-option-inner strong {
    display: block;
    color: var(--fishme-text);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
}

/* The sub-label is noise at this size — the icon and title carry the meaning. */
.fishme-cart-shipping-option-inner small {
    display: none;
}

.fishme-cart-shipping-option:hover .fishme-cart-shipping-option-inner {
    border-color: var(--fishme-red-light);
}

.fishme-cart-shipping-option input:focus-visible + .fishme-cart-shipping-option-inner {
    outline: 2px solid var(--fishme-red);
    outline-offset: 2px;
}

.fishme-cart-shipping-option input:checked + .fishme-cart-shipping-option-inner {
    border-color: var(--fishme-red);
    background: var(--fishme-red-soft);
}

.fishme-cart-shipping-option input:checked + .fishme-cart-shipping-option-inner > i {
    background: var(--fishme-red);
    color: #fff;
}

/* Applied coupon chip */

.fishme-cart-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid var(--fishme-success-soft);
    border-radius: var(--fishme-radius-control);
    background: var(--fishme-success-soft);
    color: var(--fishme-success);
    font-size: 13px;
}

.fishme-cart-coupon-applied[hidden] {
    display: none;
}

.fishme-cart-coupon-applied strong {
    font-weight: 700;
}

.fishme-cart-coupon-applied button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--fishme-red);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* Rows */

.fishme-cart-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--fishme-border);
}

.fishme-cart-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--fishme-muted);
    font-size: 14px;
}

.fishme-cart-summary__row[hidden] {
    display: none;
}

.fishme-cart-summary__row > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

.fishme-cart-summary__row .price {
    color: var(--fishme-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.fishme-cart-summary__row .price.is-free {
    color: var(--fishme-success);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fishme-cart-summary__row--discount .price {
    color: var(--fishme-success);
}

.fishme-cart-summary__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: #9aa2a8;
    font-size: 12px;
    line-height: 1;
    cursor: help;
}

.fishme-cart-summary__info:hover,
.fishme-cart-summary__info:focus-visible {
    color: var(--fishme-red);
}

.fishme-cart-shipping-breakdown {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-left: 10px;
    border-left: 2px solid var(--fishme-border);
}

.fishme-cart-shipping-breakdown[hidden] {
    display: none;
}

.fishme-cart-shipping-breakdown .fishme-cart-summary__row,
.fishme-cart-shipping-breakdown .price {
    font-size: 12.5px;
}

.fishme-cart-summary__note {
    margin: 12px 0 0;
    color: var(--fishme-muted);
    font-size: 12px;
    line-height: 1.5;
}

.fishme-cart-summary__note[hidden] {
    display: none;
}

/* -------- Total */

.fishme-cart-summary__total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--fishme-border);
}

.fishme-cart-summary__total-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fishme-cart-summary__total-copy span {
    color: var(--fishme-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.fishme-cart-summary__total-copy small {
    color: var(--fishme-muted);
    font-size: 11.5px;
}

.fishme-cart-summary__total strong {
    color: var(--fishme-red);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

/* Free-delivery / distance panel */

.fishme-cart-delivery-panel {
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid rgba(192, 2, 8, 0.16);
    border-radius: var(--fishme-radius-control);
    background: rgba(192, 2, 8, 0.05);
}

.fishme-cart-delivery-panel[hidden] {
    display: none;
}

.fishme-cart-delivery-panel__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fishme-cart-delivery-panel__icon {
    flex: 0 0 auto;
    color: var(--fishme-red);
    font-size: 16px;
    line-height: 1.4;
}

.fishme-cart-delivery-panel__head p {
    margin: 0;
    color: var(--fishme-text);
    font-size: 12.5px;
    line-height: 1.5;
}

.fishme-cart-delivery-panel__head strong {
    font-weight: 700;
}

.fishme-cart-delivery-panel__progress {
    height: 6px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(192, 2, 8, 0.14);
    overflow: hidden;
}

.fishme-cart-delivery-panel__progress .progress-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--fishme-red);
    transition: width 0.4s ease;
}

.fishme-cart-delivery-panel__outlets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.fishme-cart-delivery-panel__outlets[hidden] {
    display: none;
}

.fishme-cart-delivery-outlet {
    padding: 10px 12px;
    border: 1px solid var(--fishme-border);
    border-radius: 8px;
    background: #fff;
}

.fishme-cart-delivery-outlet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fishme-cart-delivery-outlet__name {
    color: var(--fishme-text);
    font-size: 12.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.fishme-cart-delivery-outlet__fee {
    color: var(--fishme-red);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.fishme-cart-delivery-outlet__progress {
    height: 5px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(192, 2, 8, 0.12);
    overflow: hidden;
}

.fishme-cart-delivery-outlet__progress .progress-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--fishme-red);
}

.fishme-cart-delivery-outlet__hint {
    margin: 6px 0 0;
    color: var(--fishme-muted);
    font-size: 11.5px;
    line-height: 1.45;
}

/* Trust panel */

.fishme-cart-trust {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--fishme-border);
    border-radius: var(--fishme-radius-control);
    background: var(--fishme-bg);
}

.fishme-cart-trust[hidden] {
    display: none;
}

.fishme-cart-trust__title {
    margin: 0 0 12px;
    color: var(--fishme-text);
    font-size: 13.5px;
    font-weight: 700;
}

.fishme-cart-trust__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fishme-cart-trust__list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: var(--fishme-muted);
    font-size: 11px;
    line-height: 1.35;
}

.fishme-cart-trust__list li > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--fishme-border);
    color: var(--fishme-red);
    font-size: 14px;
}

.fishme-cart-trust__list li strong {
    display: block;
    color: var(--fishme-text);
    font-size: 11.5px;
    font-weight: 700;
}

.fishme-cart-trust__list--stacked {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Checkout CTA */

.fishme-cart-summary__foot {
    margin-top: 18px;
}

.fishme-cart-summary__foot[hidden] {
    display: none;
}

/* .rts-btn.btn-primary is (0,2,0) and sets display:block + max-width:max-content,
   so these need equal-or-higher specificity to render a full-width CTA. */
.fishme-cart-summary__foot .rts-btn.fishme-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    max-width: none;
    height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--fishme-radius-control);
    background: var(--fishme-red);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

.fishme-cart-summary__foot .rts-btn.fishme-cart-checkout-btn:hover {
    background: var(--fishme-red-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(192, 2, 8, 0.24);
}

.fishme-cart-summary__foot .rts-btn.fishme-cart-checkout-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Kept clickable so the blocked reason can be announced via toast. */
.fishme-cart-summary__foot .rts-btn.fishme-cart-checkout-btn[aria-disabled="true"],
.fishme-cart-summary__foot .rts-btn.fishme-cart-checkout-btn[aria-disabled="true"]:hover {
    background: #c9ced2;
    color: #fff;
    box-shadow: none;
    cursor: not-allowed;
}

.fishme-cart-checkout-reason {
    margin: 9px 0 0;
    color: var(--fishme-red);
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
}

.fishme-cart-checkout-reason[hidden] {
    display: none;
}

.fishme-cart-summary__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 12px 0 0;
    color: var(--fishme-muted);
    font-size: 12px;
}

.fishme-cart-summary__continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--fishme-text);
    font-size: 13.5px;
    font-weight: 600;
}

.fishme-cart-summary__continue:hover {
    color: var(--fishme-red);
}

/* Responsive */

@media only screen and (max-width: 1199px) {
    .fishme-cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Basket leads on narrow screens; the summary follows it. */
    .fishme-cart-layout__primary {
        order: 1;
    }

    .fishme-cart-layout__aside {
        order: 2;
    }

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

@media only screen and (max-width: 991px) {
    .fishme-cart-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .fishme-cart-hero__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    /* Image spans both rows so no dead space opens beneath it. */
    .fishme-cart-item__media {
        width: 104px;
        height: 100%;
        min-height: 82px;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .fishme-cart-item__qty {
        grid-column: 2;
        grid-row: 2;
    }

    .fishme-cart-item__total-block {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
    }

    .fishme-cart-item__remove {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        justify-self: end;
    }

    .fishme-cart-support {
        grid-template-columns: minmax(0, 1fr);
    }

    .fishme-cart-support__item + .fishme-cart-support__item {
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid var(--fishme-border);
    }
}

@media only screen and (max-width: 767px) {
    .fishme-cart-hero {
        padding: 28px 0 32px;
    }

    .fishme-cart-main {
        padding: 24px 0 48px;
    }

    .fishme-cart-basket__head,
    .fishme-cart-item,
    .fishme-cart-outlet-group__head {
        padding-left: 14px;
        padding-right: 14px;
    }

    .fishme-cart-coupon {
        margin: 0 14px 14px;
    }

    .fishme-cart-coupon__form {
        flex: 1 1 100%;
        max-width: none;
    }

    .fishme-cart-item__media {
        width: 84px;
        min-height: 74px;
    }

    .fishme-cart-item__title {
        font-size: 15px;
    }

    .fishme-cart-trust__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 575px) {
    .fishme-cart-hero__benefits {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .fishme-cart-hero__benefits::-webkit-scrollbar {
        display: none;
    }

    .fishme-cart-hero__benefit {
        flex: 0 0 auto;
        min-width: 168px;
    }

    /* Image + info on the first row, stepper + subtotal beneath. */
    /* Image returns to row 1 only; stepper + subtotal share the full second row. */
    .fishme-cart-item__media {
        grid-row: 1;
        height: 74px;
        min-height: 0;
    }

    .fishme-cart-item__qty {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .fishme-cart-item__total-block {
        grid-column: 3;
        grid-row: 2;
        min-width: 0;
    }

    .fishme-cart-item__qty-field {
        min-width: 74px;
    }

    .fishme-cart-item__qty-btn {
        width: 34px;
    }

    .fishme-cart-empty {
        padding: 40px 16px 44px;
    }

    .fishme-cart-empty__actions {
        flex-direction: column;
        width: 100%;
    }

    .fishme-cart-empty__actions .rts-btn.btn-primary {
        width: 100%;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fishme-cart-page *,
    .fishme-cart-page *::before,
    .fishme-cart-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
