.gtg-cart {
    --c-orange: #EE6B36;
    --c-orange-dark: #d65a28;
    --c-ink: #1E1C18;
    --c-soft: #6b645a;
    --c-line: #E7E0D3;
    --c-cream: #F8F5F1;
    --c-green: #4f7a2b;
    --c-green-bg: #eef5e4;
    background: var(--c-cream);
    color: var(--c-ink);
    padding-bottom: 72px;
}

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

.gtg-cart svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gtg-cart__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.gtg-cart__hero {
    padding: 32px 0 28px;
}

.gtg-cart__crumbs {
    display: flex;
    gap: 8px;
    font-size: .875rem;
    color: var(--c-soft);
    margin-bottom: 10px;
}

.gtg-cart__crumbs a {
    color: inherit;
    text-decoration: none;
}

.gtg-cart__crumbs a:hover {
    color: var(--c-ink);
}

.gtg-cart__hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
}

.gtg-cart__title {
    margin: 0;
    font-size: clamp(1.75rem, 3.6vw, 2.375rem);
    line-height: 1.15;
    font-weight: 800;
}

.gtg-cart__count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-soft);
    margin-left: 6px;
}

.gtg-cart__continue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--c-ink);
    text-decoration: none;
}

.gtg-cart__continue svg {
    width: 18px;
    height: 18px;
}

.gtg-cart__continue:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gtg-cart .woocommerce-notices-wrapper:empty {
    display: none;
}

.gtg-cart .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.gtg-cart .woocommerce-message,
.gtg-cart .woocommerce-info,
.gtg-cart .woocommerce-error {
    margin: 0 0 10px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 0;
    background: #fff;
    list-style: none;
}

.gtg-cart .woocommerce-error {
    background: #fdecea;
    color: #8a1c12;
}

.gtg-cart__layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 1024px) {
    .gtg-cart__layout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 32px;
    }
}

.gtg-cart__main,
.gtg-cart__summary,
.gtg-cart__empty {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 22px;
}

.gtg-cart__main {
    padding: 8px 24px 24px;
}

.gtg-cart__ship {
    margin: 16px 0 8px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--c-cream);
}

.gtg-cart__ship.is-done {
    background: var(--c-green-bg);
    color: var(--c-green);
}

.gtg-cart__ship-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: .9375rem;
}

.gtg-cart__ship-text svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.6;
}

.gtg-cart__ship-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(30, 28, 24, .1);
    overflow: hidden;
}

.gtg-cart__ship-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--c-orange);
    transition: width .4s ease;
}

.gtg-cart__ship.is-done .gtg-cart__ship-bar span {
    background: var(--c-green);
}

.gtg-cart__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gtg-cart__item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto auto 40px;
    gap: 16px 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-line);
    transition: opacity .2s;
}

.gtg-cart__item:last-child {
    border-bottom: 0;
}

.gtg-cart__item.is-loading {
    opacity: .45;
    pointer-events: none;
}

.gtg-cart__item-img {
    width: 96px;
    aspect-ratio: 5 / 6;
    border-radius: 14px;
    overflow: hidden;
    background: var(--c-cream);
}

.gtg-cart__item-img a {
    display: block;
    height: 100%;
}

.gtg-cart__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gtg-cart__item-name {
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.gtg-cart__item-name a {
    color: var(--c-ink);
    text-decoration: none;
}

.gtg-cart__item-name a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gtg-cart__item-meta {
    font-size: .8125rem;
    color: var(--c-soft);
    line-height: 1.5;
}

.gtg-cart__item-meta dl.variation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 6px;
    margin: 0;
}

.gtg-cart__item-meta dt,
.gtg-cart__item-meta dd {
    margin: 0;
    float: none;
    font-weight: 400;
}

.gtg-cart__item-meta dt {
    font-weight: 600;
}

.gtg-cart__item-meta dd p {
    margin: 0;
    display: inline;
}

.gtg-cart__item-unit {
    margin: 6px 0 0;
    font-size: .8125rem;
    color: var(--c-soft);
}

.gtg-cart__item-note {
    margin: 4px 0 0;
    font-size: .8125rem;
    color: var(--c-orange-dark);
}

.gtg-cart__item-total {
    min-width: 84px;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.gtg-cart__item-remove {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--c-soft);
    text-decoration: none;
    transition: background .15s, color .15s;
}

.gtg-cart__item-remove svg {
    width: 18px;
    height: 18px;
}

.gtg-cart__item-remove:hover {
    background: #fdecea;
    color: #b32d2e;
}

.gtg-cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--c-line);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.gtg-cart .quantity .qty {
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    text-align: center;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    -moz-appearance: textfield;
}

.gtg-cart .quantity .qty::-webkit-outer-spin-button,
.gtg-cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gtg-cart__step {
    width: 40px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--c-ink);
    cursor: pointer;
}

.gtg-cart__step:hover {
    background: var(--c-cream);
}

.gtg-cart__step svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.6;
}

.gtg-cart__coupon {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--c-line);
}

.gtg-cart__coupon summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .9375rem;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gtg-cart__coupon summary::-webkit-details-marker {
    display: none;
}

.gtg-cart__coupon summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-cream);
    font-weight: 700;
}

.gtg-cart__coupon[open] summary::after {
    content: "−";
}

.gtg-cart__coupon-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.gtg-cart__coupon-msg {
    margin: 10px 0 0;
    font-size: .875rem;
}

.gtg-cart__coupon-msg.sv-co__coupon-msg--err {
    color: #b32d2e;
}

.gtg-cart__coupon-msg.sv-co__coupon-msg--ok {
    color: var(--c-green);
}

.gtg-cart__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--c-line);
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    background: #fff;
}

.gtg-cart__input:focus {
    outline: 2px solid var(--c-ink);
    outline-offset: 1px;
}

.gtg-cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.gtg-cart__btn svg {
    width: 18px;
    height: 18px;
}

.gtg-cart__btn--primary {
    background: var(--c-orange);
    color: #fff;
}

.gtg-cart__btn--primary:hover {
    background: var(--c-orange-dark);
    color: #fff;
}

.gtg-cart__btn--dark {
    background: var(--c-ink);
    color: #fff;
}

.gtg-cart__btn--ghost {
    background: #fff;
    color: var(--c-ink);
    border: 1.5px solid var(--c-line);
}

.gtg-cart__btn--ghost:hover {
    border-color: var(--c-ink);
}

.gtg-cart__summary {
    padding: 24px;
}

@media (min-width: 1024px) {
    .gtg-cart__side {
        position: sticky;
        top: 110px;
    }
}

.gtg-cart__summary-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 800;
}

.gtg-cart__rows {
    margin: 0;
    display: grid;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-line);
}

.gtg-cart__rows > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .9375rem;
}

.gtg-cart__rows dt {
    color: var(--c-soft);
}

.gtg-cart__rows dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.gtg-cart__rows dd.is-free {
    color: var(--c-green);
}

.gtg-cart__rows .is-muted {
    color: var(--c-soft);
    font-weight: 400;
}

.gtg-cart__rows .is-discount dd {
    color: var(--c-green);
}

.gtg-cart__code {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    background: var(--c-cream);
    color: var(--c-ink);
    font-size: .75rem;
    font-weight: 700;
}

.gtg-cart__code-remove {
    color: var(--c-soft);
    text-decoration: none;
    margin-left: 2px;
}

.gtg-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 16px;
    font-weight: 800;
    font-size: 1.0625rem;
}

.gtg-cart__total-amount {
    font-size: 1.625rem;
}

.gtg-cart__tax {
    margin: 2px 0 0;
    text-align: right;
    font-size: .8125rem;
    color: var(--c-soft);
}

.gtg-cart__checkout {
    width: 100%;
    margin-top: 20px;
    min-height: 56px;
    font-size: 1rem;
}

.gtg-cart__usps {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: .875rem;
}

.gtg-cart__usps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.gtg-cart__usps svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--c-green);
    stroke-width: 2.6;
}

.gtg-cart__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--c-line);
}

.gtg-cart__payments img {
    height: 28px;
    width: auto;
}

.gtg-cart__empty {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
}

.gtg-cart__empty svg {
    width: 56px;
    height: 56px;
    color: var(--c-soft);
    stroke-width: 1.5;
}

.gtg-cart__empty h2 {
    margin: 16px 0 8px;
    font-size: 1.5rem;
}

.gtg-cart__empty p {
    margin: 0 0 24px;
    color: var(--c-soft);
}

.gtg-cart__empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.gtg-cart__cross {
    margin-top: 56px;
}

.gtg-cart__cross-title {
    margin: 0 0 24px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.gtg-cart-sticky {
    display: none;
}

@media (max-width: 767px) {
    .gtg-cart__main {
        padding: 4px 16px 16px;
    }

    .gtg-cart__summary {
        padding: 20px 16px;
    }

    .gtg-cart__item {
        position: relative;
        grid-template-columns: 80px minmax(0, 1fr) auto;
        grid-template-areas:
            "img info info"
            "img qty total";
        gap: 12px 14px;
        align-items: start;
    }

    .gtg-cart__item-img {
        grid-area: img;
        width: 80px;
    }

    .gtg-cart__item-info {
        grid-area: info;
        padding-right: 40px;
    }

    .gtg-cart__item-qty {
        grid-area: qty;
    }

    .gtg-cart__item-total {
        grid-area: total;
        align-self: center;
        min-width: 0;
    }

    .gtg-cart__item-remove {
        position: absolute;
        top: 12px;
        right: -8px;
    }

    .gtg-cart__coupon-row {
        flex-direction: column;
    }

    .gtg-cart-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--c-line);
        box-shadow: 0 -8px 24px rgba(30, 28, 24, .08);
        transition: transform .25s;
    }

    .gtg-cart-sticky.is-hidden {
        transform: translateY(110%);
    }

    .gtg-cart-sticky__label {
        display: block;
        font-size: .75rem;
        color: var(--c-soft);
    }

    .gtg-cart-sticky__amount {
        font-weight: 800;
        font-size: 1.125rem;
    }
}
