/* =========================================================
   TCG — CART AND CHECKOUT
   Styles for templates/cart-page.php, checkout-page.php and the
   WooCommerce template files in templates/woocommerce/.
   The #tcg-shop id on both page shells keeps these above
   WooCommerce, theme and page-builder rules.
========================================================= */

html body.tcg-cart-page,
html body.tcg-checkout-page {
    overflow-x: clip !important;
    overflow-y: visible !important;
    background: #f6f4ef;
}

#tcg-shop {
    --tcg-ink: #111111;
    --tcg-paper: #f6f4ef;
    --tcg-tile: #e9e6df;
    --tcg-line: rgba(17, 17, 17, .13);
    --tcg-edge: #d9d6cf;
    --tcg-muted: #6f6d66;
    --tcg-sale: #7a1f2b;
    --tcg-gutter: clamp(12px, 1.3vw, 22px);
    --tcg-top: calc(104px + var(--wp-admin--admin-bar--height, 0px));

    position: relative;
    z-index: 1;
    min-height: 70vh;
    padding: 84px var(--tcg-gutter) clamp(64px, 7vw, 112px);
    background: var(--tcg-paper);
    color: var(--tcg-ink);
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#tcg-shop *,
#tcg-shop *::before,
#tcg-shop *::after {
    box-sizing: border-box;
}

.tcg-shop__head,
#tcg-shop > .woocommerce,
.tcg-shop__more {
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
}

#tcg-shop .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}


/* ---------------------------------------------------------
   HEAD — steps and title
--------------------------------------------------------- */

.tcg-shop__head {
    padding: 34px 2px 0;
}

#tcg-shop .tcg-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#tcg-shop .tcg-steps__step {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--tcg-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    list-style: none;
}

.tcg-steps__number {
    font-size: 9px;
    letter-spacing: .08em;
    opacity: .7;
}

#tcg-shop .tcg-steps__step a {
    color: inherit;
    text-decoration: none;
}

#tcg-shop .tcg-steps__step a:hover {
    color: var(--tcg-ink);
}

#tcg-shop .tcg-steps__step.is-current {
    color: var(--tcg-ink);
    font-weight: 900;
}

.tcg-shop__headline {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
}

#tcg-shop .tcg-shop__title {
    margin: 0;
    padding: 0;
    color: var(--tcg-ink);
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(38px, 4vw, 65px);
    font-weight: 700;
    line-height: .86;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

.tcg-shop__count {
    padding-top: 3px;
    color: var(--tcg-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

#tcg-shop > .woocommerce {
    margin-top: 30px;
    padding: 0 2px;
}


/* ---------------------------------------------------------
   BUTTONS AND SMALL CONTROLS
--------------------------------------------------------- */

#tcg-shop .tcg-button,
#tcg-shop .woocommerce a.tcg-button,
#tcg-shop .woocommerce button.tcg-button,
#tcg-shop .woocommerce #place_order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: auto;
    min-height: 54px;
    margin: 0;
    padding: 0 34px;
    border: 1px solid var(--tcg-ink);
    border-radius: 8px;
    background: var(--tcg-ink);
    color: #ffffff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

#tcg-shop .tcg-button:hover,
#tcg-shop .woocommerce a.tcg-button:hover,
#tcg-shop .woocommerce button.tcg-button:hover,
#tcg-shop .woocommerce #place_order:hover {
    border-color: #2b2a27;
    background: #2b2a27;
    color: #ffffff;
}

#tcg-shop .tcg-button--wide,
#tcg-shop .woocommerce a.tcg-button--wide,
#tcg-shop .woocommerce #place_order {
    display: flex;
    width: 100%;
}

/* text fields shared by the coupon box and the checkout form */
#tcg-shop .woocommerce input.input-text,
#tcg-shop .woocommerce textarea,
#tcg-shop .woocommerce select {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--tcg-edge);
    border-radius: 8px;
    background: #ffffff;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    box-shadow: none;
    transition: border-color .18s ease;
}

#tcg-shop .woocommerce textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
    line-height: 1.5;
    resize: vertical;
}

#tcg-shop .woocommerce input.input-text:hover,
#tcg-shop .woocommerce textarea:hover,
#tcg-shop .woocommerce select:hover {
    border-color: #bdb9b0;
}

#tcg-shop .woocommerce input.input-text:focus,
#tcg-shop .woocommerce textarea:focus,
#tcg-shop .woocommerce select:focus {
    border-color: var(--tcg-ink);
    outline: none;
    box-shadow: none;
}

#tcg-shop .woocommerce ::placeholder {
    color: #a09d95;
    opacity: 1;
}


/* ---------------------------------------------------------
   NOTICES
--------------------------------------------------------- */

#tcg-shop .woocommerce-notices-wrapper:empty {
    display: none;
}

#tcg-shop .woocommerce .woocommerce-message,
#tcg-shop .woocommerce .woocommerce-info,
#tcg-shop .woocommerce .woocommerce-error,
#tcg-shop .woocommerce ul.woocommerce-error {
    display: block;
    width: auto;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 0;
    border-radius: 8px;
    background: #ebe8e1;
    color: var(--tcg-ink);
    font-size: 13.5px;
    line-height: 1.5;
    list-style: none;
    box-shadow: none;
}

#tcg-shop .woocommerce .woocommerce-message::before,
#tcg-shop .woocommerce .woocommerce-info::before,
#tcg-shop .woocommerce .woocommerce-error::before {
    display: none;
}

#tcg-shop .woocommerce .woocommerce-error,
#tcg-shop .woocommerce ul.woocommerce-error {
    background: #f3e4e2;
    color: #6d1a25;
}

#tcg-shop .woocommerce .woocommerce-error li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#tcg-shop .woocommerce .woocommerce-error li + li {
    margin-top: 6px;
}

#tcg-shop .woocommerce .woocommerce-message a,
#tcg-shop .woocommerce .woocommerce-info a,
#tcg-shop .woocommerce .woocommerce-error a {
    float: none;
    margin: 0 0 0 6px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
}

/* while WooCommerce saves a change */
#tcg-shop .blockUI.blockOverlay {
    border-radius: 8px;
    background: rgba(246, 244, 239, .66) !important;
    opacity: 1 !important;
}

#tcg-shop .blockUI.blockOverlay::before {
    display: none;
}


/* ---------------------------------------------------------
   CART — items left, summary right
--------------------------------------------------------- */

.tcg-cart__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(340px, 31vw, 440px);
    align-items: start;
    gap: clamp(28px, 4.4vw, 76px);
}

#tcg-shop .woocommerce form.tcg-cart__items {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.tcg-lines {
    border-top: 1px solid var(--tcg-line);
}

.tcg-line {
    display: grid;
    grid-template-columns: clamp(92px, 9vw, 132px) minmax(0, 1fr);
    gap: clamp(14px, 1.6vw, 24px);
    padding: 20px 0;
    border-bottom: 1px solid var(--tcg-line);
}

.tcg-line__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 6px;
    background: var(--tcg-tile);
}

#tcg-shop .tcg-line__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    mix-blend-mode: multiply;
}

#tcg-shop .tcg-line__media img.tcg-fit {
    object-fit: contain;
    transform: scale(var(--tcg-zoom, 1)) translate(var(--tcg-x, 0), var(--tcg-y, 0));
}

#tcg-shop .tcg-line__media img.tcg-photo {
    mix-blend-mode: normal;
}

.tcg-line__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 2px 0;
}

.tcg-line__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.tcg-line__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

#tcg-shop .tcg-line__name {
    color: var(--tcg-ink);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

#tcg-shop a.tcg-line__name:hover {
    color: var(--tcg-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tcg-line__details,
.tcg-line__each {
    color: var(--tcg-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.tcg-line__total {
    flex: none;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.tcg-line__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* quantity: − [n] + */
.tcg-qty {
    display: inline-flex;
    align-items: stretch;
    height: 38px;
    border: 1px solid var(--tcg-edge);
    border-radius: 8px;
    background: #ffffff;
}

#tcg-shop .tcg-qty .tcg-qty__step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    transition: opacity .18s ease;
}

#tcg-shop .tcg-qty .tcg-qty__step:hover {
    background: transparent;
    color: var(--tcg-ink);
    opacity: .5;
}

#tcg-shop .tcg-qty .tcg-qty__step:disabled {
    opacity: .25;
    cursor: default;
}

#tcg-shop .tcg-qty .quantity {
    display: flex;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

/* buttons other plugins add inside WooCommerce's quantity box */
#tcg-shop .tcg-qty .quantity > button,
#tcg-shop .tcg-qty .quantity > a,
#tcg-shop .tcg-qty .quantity .plus,
#tcg-shop .tcg-qty .quantity .minus {
    display: none !important;
}

#tcg-shop .woocommerce .tcg-qty input.qty {
    width: 38px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.tcg-qty input.qty::-webkit-outer-spin-button,
.tcg-qty input.qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

#tcg-shop .woocommerce .tcg-line__remove a.remove {
    display: inline;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--tcg-muted) !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

#tcg-shop .woocommerce .tcg-line__remove a.remove:hover {
    background: none;
    color: var(--tcg-ink) !important;
}

/* the update button is only needed when scripts are off */
.tcg-cart__actions {
    margin-top: 16px;
}

.tcg-js .tcg-cart__actions {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

#tcg-shop .woocommerce .tcg-cart__update {
    min-height: 0;
    padding: 10px 16px;
    border: 1px solid var(--tcg-edge);
    border-radius: 8px;
    background: #ffffff;
    color: var(--tcg-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#tcg-shop .tcg-cart__continue {
    display: inline-block;
    margin-top: 22px;
    color: var(--tcg-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .18s ease;
}

#tcg-shop .tcg-cart__continue:hover {
    color: var(--tcg-ink);
    opacity: .58;
}

#tcg-shop .woocommerce .cart-collaterals.tcg-cart__side {
    position: sticky;
    top: var(--tcg-top);
    float: none;
    width: auto;
    margin: 0;
}

#tcg-shop .woocommerce .cart-collaterals .cart_totals {
    float: none;
    width: auto;
}

.tcg-cart__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 34px 0 30px;
    border-top: 1px solid var(--tcg-line);
}

#tcg-shop .woocommerce .tcg-cart__empty-text {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--tcg-ink);
    font-size: 17px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   SUMMARY — cart totals, and the order summary at checkout
--------------------------------------------------------- */

.tcg-summary,
#tcg-shop .woocommerce .cart-collaterals .cart_totals.tcg-summary {
    padding: clamp(22px, 2vw, 30px);
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
}

#tcg-shop .tcg-summary__title {
    margin: 0 0 18px;
    padding: 0;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tcg-summary__rows {
    display: flex;
    flex-direction: column;
}

.tcg-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    font-size: 13.5px;
    line-height: 1.4;
}

.tcg-summary__row > span:last-child {
    text-align: right;
}

.tcg-summary__soft {
    color: var(--tcg-muted);
}

.tcg-summary__label {
    display: block;
    font-size: 13.5px;
    line-height: 1.4;
}

.tcg-summary__block {
    padding: 7px 0;
}

.tcg-summary .cart-discount {
    color: var(--tcg-sale);
}

#tcg-shop .tcg-summary a.woocommerce-remove-coupon {
    margin-left: 8px;
    color: var(--tcg-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tcg-summary__row--total {
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--tcg-line);
    font-size: 17px;
    font-weight: 700;
}

.tcg-summary__row--total strong {
    font-weight: 700;
}

.tcg-summary__row--total small {
    display: block;
    margin-top: 3px;
    color: var(--tcg-muted);
    font-size: 11.5px;
    font-weight: 400;
}

/* delivery options (cart-shipping.php) */
.tcg-delivery {
    padding: 7px 0;
}

#tcg-shop ul#shipping_method.tcg-delivery__options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

#tcg-shop ul#shipping_method li.tcg-delivery__option {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    text-indent: 0;
    list-style: none;
}

#tcg-shop ul#shipping_method li.tcg-delivery__option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

#tcg-shop ul#shipping_method li.tcg-delivery__option label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--tcg-edge);
    border-radius: 8px;
    background: #ffffff;
    color: var(--tcg-ink);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.3;
    text-indent: 0;
    cursor: pointer;
    transition: border-color .18s ease;
}

.tcg-delivery__option label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 16px;
    height: 16px;
    border: 1px solid #b4b1a9;
    border-radius: 50%;
    background: #ffffff;
    transform: translateY(-50%);
}

.tcg-delivery__option label:hover {
    border-color: #bdb9b0;
}

.tcg-delivery__option input:checked + label {
    border-color: var(--tcg-ink);
}

.tcg-delivery__option input:checked + label::before {
    border-color: var(--tcg-ink);
    background: radial-gradient(circle, #111111 0 4px, #ffffff 4.6px);
}

.tcg-delivery__option input:focus-visible + label {
    outline: 1px solid var(--tcg-ink);
    outline-offset: 2px;
}

/* a single option needs no choosing */
#tcg-shop ul#shipping_method li.tcg-delivery__option input[type="hidden"] + label {
    padding-left: 14px;
    cursor: default;
}

.tcg-delivery__option input[type="hidden"] + label::before {
    display: none;
}

.tcg-delivery__price {
    flex: none;
    font-weight: 700;
}

#tcg-shop .tcg-delivery__to,
#tcg-shop .tcg-delivery__note {
    margin: 9px 0 0;
    color: var(--tcg-muted);
    font-size: 12px;
    line-height: 1.45;
}

#tcg-shop .tcg-delivery__note--none {
    color: #6d1a25;
}

/* discount code */
.tcg-coupon {
    margin-top: 16px;
    border-top: 1px solid var(--tcg-line);
}

#tcg-shop .tcg-coupon summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    color: var(--tcg-ink);
    font-size: 12.5px;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
}

.tcg-coupon summary::-webkit-details-marker {
    display: none;
}

.tcg-coupon summary svg {
    width: 10px;
    height: 6px;
    transition: transform .25s ease;
}

.tcg-coupon[open] summary svg {
    transform: rotate(180deg);
}

.tcg-coupon__form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 16px;
}

#tcg-shop .woocommerce .tcg-coupon__form input.input-text {
    flex: 1 1 140px;
    width: auto;
    height: 46px;
    text-transform: uppercase;
}

#tcg-shop .woocommerce .tcg-coupon__form input.input-text::placeholder {
    text-transform: none;
}

#tcg-shop .woocommerce .tcg-coupon__form .button {
    flex: none;
    float: none;
    width: auto;
    height: 46px;
    min-height: 0;
    margin: 0;
    padding: 0 20px;
    border: 1px solid var(--tcg-ink);
    border-radius: 8px;
    background: #ffffff;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

#tcg-shop .woocommerce .tcg-coupon__form .button:hover {
    background: var(--tcg-ink);
    color: #ffffff;
}

#tcg-shop .tcg-coupon__form .coupon-error-notice,
#tcg-shop .tcg-coupon__message {
    flex: 1 1 100%;
    margin: 2px 0 0;
    color: #6d1a25;
    font-size: 12px;
    line-height: 1.4;
}

#tcg-shop .tcg-coupon__message.is-good {
    color: #2f5d3a;
}

#tcg-shop .woocommerce .wc-proceed-to-checkout {
    margin-top: 18px;
    padding: 0;
}

.tcg-coupon + .wc-proceed-to-checkout {
    margin-top: 4px;
}

#tcg-shop .tcg-summary__notes {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 18px 0 0;
    padding: 0;
    color: var(--tcg-muted);
    font-size: 12px;
    line-height: 1.45;
    list-style: none;
}

#tcg-shop .tcg-summary__notes li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#tcg-shop .tcg-summary__notes a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#tcg-shop .tcg-summary__notes a:hover {
    color: var(--tcg-ink);
}


/* ---------------------------------------------------------
   CHECKOUT — the form left, the order right
--------------------------------------------------------- */

.tcg-co {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(360px, 34vw, 480px);
    align-items: start;
    gap: clamp(28px, 5vw, 96px);
}

.tcg-co__main {
    min-width: 0;
    max-width: 760px;
}

#tcg-shop .woocommerce form.tcg-co__form {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.tcg-co__section {
    padding: 28px 0 30px;
    border-top: 1px solid var(--tcg-line);
}

.tcg-co__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

#tcg-shop .tcg-co__heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tcg-co__heading span {
    color: var(--tcg-muted);
    font-size: 9.5px;
    letter-spacing: .08em;
}

#tcg-shop .tcg-co__hint {
    margin: 0 0 20px;
    color: var(--tcg-muted);
    font-size: 12.5px;
    line-height: 1;
}

#tcg-shop .tcg-co__hint a,
#tcg-shop .tcg-co__back {
    color: var(--tcg-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* fields: two columns, WooCommerce's "first / last" halves kept */
.tcg-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

#tcg-shop .woocommerce form .form-row {
    float: none;
    grid-column: 1 / -1;
    width: auto;
    margin: 0;
    padding: 0;
}

#tcg-shop .woocommerce form .tcg-fields .form-row-first {
    grid-column: 1;
}

#tcg-shop .woocommerce form .tcg-fields .form-row-last {
    grid-column: 2;
}

#tcg-shop .woocommerce form .form-row label {
    display: block;
    margin: 0 0 7px;
    color: var(--tcg-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#tcg-shop .woocommerce form .form-row label .required {
    color: var(--tcg-sale);
    font-weight: 700;
    text-decoration: none;
    border: 0;
}

#tcg-shop .woocommerce form .form-row label .optional {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

#tcg-shop .woocommerce form .form-row .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

#tcg-shop .woocommerce form .form-row.woocommerce-invalid input.input-text,
#tcg-shop .woocommerce form .form-row.woocommerce-invalid select,
#tcg-shop .woocommerce form .form-row.woocommerce-invalid .select2-selection {
    border-color: #b5413f;
}

#tcg-shop .woocommerce form .form-row.woocommerce-validated input.input-text,
#tcg-shop .woocommerce form .form-row.woocommerce-validated select,
#tcg-shop .woocommerce form .form-row.woocommerce-validated .select2-selection {
    border-color: var(--tcg-edge);
}

#tcg-shop .woocommerce form .form-row .checkout-inline-error-message {
    margin: 6px 0 0;
    color: #6d1a25;
    font-size: 12px;
    line-height: 1.4;
}

/* country / region pickers (selectWoo) */
#tcg-shop .select2-container {
    width: 100% !important;
}

#tcg-shop .select2-container .select2-selection--single {
    height: 48px;
    margin: 0;
    border: 1px solid var(--tcg-edge);
    border-radius: 8px;
    background: #ffffff;
    outline: none;
}

#tcg-shop .select2-container--open .select2-selection--single,
#tcg-shop .select2-container--focus .select2-selection--single {
    border-color: var(--tcg-ink);
}

#tcg-shop .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 38px 0 14px;
    color: var(--tcg-ink);
    font-size: 14px;
    line-height: 46px;
}

#tcg-shop .select2-container .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 8px;
    width: 26px;
    height: 46px;
}

body.tcg-checkout-page .select2-dropdown {
    border: 1px solid #111111;
    border-radius: 8px;
    overflow: hidden;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

body.tcg-checkout-page .select2-container--default .select2-results__option--highlighted[aria-selected],
body.tcg-checkout-page .select2-container--default .select2-results__option--highlighted[data-selected] {
    background: #111111;
    color: #ffffff;
}

body.tcg-checkout-page .select2-search--dropdown .select2-search__field {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d6cf;
    border-radius: 6px;
    outline: none;
}

/* tick boxes */
#tcg-shop .woocommerce form .tcg-co__check,
#tcg-shop .woocommerce .tcg-co__check {
    margin: 16px 0 0;
    padding: 0;
}

#tcg-shop .woocommerce .woocommerce-form__label-for-checkbox,
#tcg-shop .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
    position: relative;
    display: block;
    margin: 0;
    padding-left: 28px;
    color: var(--tcg-ink);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

#tcg-shop .woocommerce input[type="checkbox"],
#tcg-shop .woocommerce input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: #111111;
}

#tcg-shop .woocommerce .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
}

#tcg-shop .woocommerce .create-account.tcg-fields,
#tcg-shop .woocommerce .shipping_address {
    margin-top: 18px;
}

/* order note */
.tcg-co__notes {
    margin-top: 18px;
}

#tcg-shop .tcg-co__notes summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tcg-ink);
    font-size: 13.5px;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.tcg-co__notes summary::-webkit-details-marker {
    display: none;
}

.tcg-co__notes summary svg {
    width: 10px;
    height: 6px;
    transition: transform .25s ease;
}

.tcg-co__notes[open] summary svg {
    transform: rotate(180deg);
}

.tcg-co__notes .tcg-fields {
    margin-top: 14px;
}

/* returning customers' log-in form */
#tcg-shop .woocommerce form.woocommerce-form-login {
    margin: 0 0 26px;
    padding: 24px;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
}

#tcg-shop .woocommerce form.woocommerce-form-login > p:first-child {
    margin: 0 0 16px;
    font-size: 13.5px;
}

#tcg-shop .woocommerce form.woocommerce-form-login .form-row {
    margin: 0 0 12px;
}

#tcg-shop .woocommerce form.woocommerce-form-login .form-row-first,
#tcg-shop .woocommerce form.woocommerce-form-login .form-row-last {
    width: 100%;
}

#tcg-shop .woocommerce form.woocommerce-form-login .button {
    min-height: 46px;
    margin: 0 14px 0 0;
    padding: 0 26px;
    border: 1px solid var(--tcg-ink);
    border-radius: 8px;
    background: var(--tcg-ink);
    color: #ffffff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#tcg-shop .woocommerce form.woocommerce-form-login .lost_password {
    margin: 12px 0 0;
    font-size: 12.5px;
}

#tcg-shop .woocommerce form.woocommerce-form-login .lost_password a {
    color: var(--tcg-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* delivery step */
.tcg-co-shipping .tcg-delivery {
    padding: 0;
}

.tcg-co-shipping .tcg-delivery__label {
    display: none;
}

#tcg-shop .tcg-co-shipping ul#shipping_method.tcg-delivery__options {
    margin-top: 0;
}

/* BOX NOW: the locker choice under its delivery option. The button, the
   map it opens and the "selected locker" panel are the BOX NOW plugin's
   own; only their look is set here. */
#tcg-shop .woocommerce #box_now_delivery_button {
    width: 100%;
    min-height: 48px;
    margin: 6px 0 0;
    padding: 0 18px;
    border: 1px solid var(--tcg-ink);
    border-radius: 8px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .15em;
    text-transform: uppercase;
    box-shadow: none;
    transform: none;
    cursor: pointer;
}

#tcg-shop .woocommerce #box_now_delivery_button:hover {
    box-shadow: none;
    transform: none;
    opacity: .86;
}

#tcg-shop .woocommerce #box_now_selected_locker_details {
    max-width: none;
    max-height: none;
    margin: 6px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--tcg-ink);
    border-radius: 8px;
    background: #ffffff;
    color: var(--tcg-ink);
    font-size: 13.5px;
    line-height: 1.45;
}

#tcg-shop .woocommerce #box_now_selected_locker_details .locker-title {
    margin: 0 0 6px;
    color: var(--tcg-muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .15em;
    text-transform: uppercase;
}

#tcg-shop .woocommerce #box_now_selected_locker_details .locker-detail {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
}

#tcg-shop .woocommerce #box_now_delivery_embedded_map {
    margin: 6px 0 0;
}

/* the field the plugin keeps the locker's number in is not for the customer */
#tcg-shop .woocommerce .boxnow-locker-id-field,
#tcg-shop .woocommerce .boxnow-form-row-hidden {
    display: none !important;
}

#tcg-shop .tcg-co-shipping .tcg-delivery__note {
    margin: 0;
    font-size: 13.5px;
}

/* payment step */
#tcg-shop .woocommerce #payment {
    border-radius: 0;
    background: none;
}

#tcg-shop .woocommerce #payment ul.payment_methods {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

/* each method is one box, and the whole of its top row takes the click:
   the label is stretched over it and the radio sits on top of the label */
#tcg-shop .woocommerce #payment ul.payment_methods li {
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid var(--tcg-edge);
    border-radius: 8px;
    background: #ffffff;
    line-height: 1.4;
    list-style: none;
}

#tcg-shop .woocommerce #payment ul.payment_methods li:has(input:checked) {
    border-color: var(--tcg-ink);
}

#tcg-shop .woocommerce #payment ul.payment_methods li > input[type="radio"] {
    position: absolute;
    top: 18px;
    left: 16px;
    margin: 0;
    pointer-events: none;
}

#tcg-shop .woocommerce #payment ul.payment_methods li > label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    min-height: 54px;
    margin: 0;
    padding: 14px 16px 14px 46px;
    color: var(--tcg-ink);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

/* one method only: WooCommerce hides the radio, so nothing to make room for */
#tcg-shop .woocommerce #payment ul.payment_methods li:only-child > label,
#tcg-shop .woocommerce #payment ul.payment_methods li:only-child div.payment_box {
    padding-left: 16px;
}

#tcg-shop .woocommerce #payment ul.payment_methods li > label img {
    max-height: 24px;
    margin: 0;
}

/* each method's own marks, at the right edge of its box */
#tcg-shop .woocommerce #payment ul.payment_methods li > label .tcg-pay-marks {
    display: flex;
    flex: none;
    align-items: center;
    gap: 5px;
    margin: 0;
}

#tcg-shop .woocommerce #payment ul.payment_methods li > label .tcg-pay-marks img {
    display: block;
    width: auto;
    height: 24px;
    max-height: none;
    margin: 0;
}

/* a logo that comes without its own white tile gets one, to sit level with the rest */
#tcg-shop .woocommerce #payment ul.payment_methods li > label .tcg-pay-marks img.is-plain {
    padding: 3px 5px;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 2px;
    background: #ffffff;
    box-sizing: border-box;
}

#tcg-shop .woocommerce #payment div.payment_box {
    margin: -6px 0 0;
    padding: 0 16px 14px 46px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--tcg-muted);
    font-size: 12.5px;
    line-height: 1.5;
    box-shadow: none;
}

#tcg-shop .woocommerce #payment div.payment_box::before {
    display: none;
}

#tcg-shop .woocommerce #payment div.payment_box p {
    margin: 0;
}

#tcg-shop .woocommerce #payment div.form-row.place-order {
    margin: 22px 0 0;
    padding: 0;
}

/* PayPal's own button, which takes the place of ours while PayPal is the chosen method */
#tcg-shop .woocommerce .ppc-button-wrapper {
    margin: 16px 0 0;
}

#tcg-shop .woocommerce .woocommerce-terms-and-conditions-wrapper {
    margin: 0 0 18px;
    color: var(--tcg-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

#tcg-shop .woocommerce .woocommerce-privacy-policy-text p {
    margin: 0 0 12px;
}

#tcg-shop .woocommerce .woocommerce-terms-and-conditions-wrapper a {
    color: var(--tcg-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#tcg-shop .woocommerce .woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 0;
}

#tcg-shop .woocommerce .woocommerce-terms-and-conditions-wrapper .required {
    color: var(--tcg-sale);
    text-decoration: none;
    border: 0;
}

#tcg-shop .tcg-co__back {
    display: inline-block;
    margin-top: 20px;
    font-size: 12.5px;
    text-decoration: none;
}

#tcg-shop .tcg-co__back:hover {
    opacity: .58;
}

/* the order, beside the form */
.tcg-co__side {
    position: sticky;
    top: var(--tcg-top);
}

.tcg-co__toggle {
    display: none;
}

.tcg-co-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tcg-line);
}

.tcg-co-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.tcg-co-item__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 5px;
    background: var(--tcg-tile);
}

#tcg-shop .tcg-co-item__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    mix-blend-mode: multiply;
}

#tcg-shop .tcg-co-item__media img.tcg-fit {
    object-fit: contain;
    transform: scale(var(--tcg-zoom, 1)) translate(var(--tcg-x, 0), var(--tcg-y, 0));
}

#tcg-shop .tcg-co-item__media img.tcg-photo {
    mix-blend-mode: normal;
}

.tcg-co-item__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tcg-co-item .tcg-line__name {
    font-size: 11.5px;
}

.tcg-co-item .tcg-line__details {
    font-size: 12px;
}

.tcg-co-item__total {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.tcg-co__side .tcg-coupon {
    margin-top: 0;
    border-top: 0;
    border-bottom: 1px solid var(--tcg-line);
}

.tcg-co-totals {
    padding-top: 12px;
}


/* ---------------------------------------------------------
   CONFIRMATION — after the order
--------------------------------------------------------- */

.tcg-thanks__lead {
    max-width: 760px;
    padding: 4px 0 26px;
}

#tcg-shop .woocommerce .tcg-thanks__text {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--tcg-ink);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.45;
}

#tcg-shop .woocommerce ul.tcg-thanks__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px clamp(28px, 5vw, 76px);
    margin: 0 0 34px;
    padding: 22px 0;
    border-top: 1px solid var(--tcg-line);
    border-bottom: 1px solid var(--tcg-line);
    list-style: none;
}

/* WooCommerce's clearfix boxes would count as items in these rows */
#tcg-shop .woocommerce ul.tcg-thanks__facts::before,
#tcg-shop .woocommerce ul.tcg-thanks__facts::after,
#tcg-shop .woocommerce #payment ul.payment_methods::before,
#tcg-shop .woocommerce #payment ul.payment_methods::after {
    display: none;
}

#tcg-shop .woocommerce ul.tcg-thanks__facts li {
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--tcg-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
    list-style: none;
}

#tcg-shop .woocommerce ul.tcg-thanks__facts li strong {
    display: block;
    margin-top: 7px;
    color: var(--tcg-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.tcg-thanks__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(26px, 4.4vw, 76px);
}

.tcg-thanks__order .tcg-co-items {
    border-bottom: 1px solid var(--tcg-line);
}

.tcg-thanks__where {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 30px;
    padding-top: clamp(22px, 2vw, 30px);
}

#tcg-shop .tcg-thanks__block address,
#tcg-shop .tcg-thanks__block p {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--tcg-ink);
    font-size: 13.5px;
    font-style: normal;
    line-height: 1.6;
}

#tcg-shop .tcg-thanks__block p {
    margin-top: 8px;
    color: var(--tcg-muted);
    overflow-wrap: anywhere;
}

#tcg-shop .tcg-thanks__note {
    margin: 18px 0 0;
    color: var(--tcg-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

#tcg-shop .tcg-thanks__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin: 40px 0 0;
    padding: 0;
    border: 0;
    background: none;
}

#tcg-shop .tcg-thanks__lead .tcg-thanks__actions {
    margin-top: 22px;
}

#tcg-shop .tcg-thanks__link {
    color: var(--tcg-ink);
    font-size: 12.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ---------------------------------------------------------
   YOU MAY ALSO LIKE
--------------------------------------------------------- */

.tcg-shop__more {
    margin-top: clamp(70px, 8vw, 124px);
    padding: 0 2px;
}

.tcg-shop__more-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

#tcg-shop .tcg-shop__more-head h2 {
    margin: 0;
    padding: 0;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

#tcg-shop .tcg-shop__more-head a {
    color: var(--tcg-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
}

#tcg-shop .tcg-shop__more-head a:hover {
    color: var(--tcg-ink);
    opacity: .58;
}

.tcg-shop__more-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 6px;
}


/* ---------------------------------------------------------
   TABLET / MOBILE
--------------------------------------------------------- */

@media (max-width: 1024px) {

    #tcg-shop {
        padding-top: 76px;
    }

    .tcg-shop__head {
        padding-top: 22px;
    }

    #tcg-shop > .woocommerce {
        margin-top: 22px;
    }

    .tcg-cart__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    #tcg-shop .woocommerce .cart-collaterals.tcg-cart__side {
        position: static;
    }

    .tcg-line {
        padding: 16px 0;
    }

    .tcg-shop__more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 6px;
    }

    /* checkout: the order folds into a bar above the form */
    .tcg-co {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .tcg-co__main {
        max-width: none;
    }

    .tcg-co__side {
        position: static;
        order: -1;
    }

    #tcg-shop .tcg-co__toggle {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 52px;
        margin: 0;
        padding: 0 18px;
        border: 0;
        border-radius: 10px;
        background: #ffffff;
        color: var(--tcg-ink);
        font-family: inherit;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: 0;
        text-align: left;
        text-transform: none;
        box-shadow: none;
        cursor: pointer;
    }

    .tcg-co__toggle-label {
        flex: 1 1 auto;
    }

    .tcg-co-toggle__total {
        font-weight: 700;
    }

    .tcg-co__toggle svg {
        flex: none;
        width: 10px;
        height: 6px;
        transition: transform .25s ease;
    }

    .tcg-co__side.is-open .tcg-co__toggle svg {
        transform: rotate(180deg);
    }

    .tcg-js .tcg-co__side:not(.is-open) .tcg-summary {
        display: none;
    }

    .tcg-co__side .tcg-summary {
        margin-top: 6px;
    }

    .tcg-co__section {
        padding: 24px 0 26px;
    }

    .tcg-thanks__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tcg-thanks__where {
        padding-top: 0;
    }
}

@media (max-width: 560px) {

    /* one field per line on a phone */
    #tcg-shop .woocommerce form .tcg-fields .form-row-first,
    #tcg-shop .woocommerce form .tcg-fields .form-row-last {
        grid-column: 1 / -1;
    }
}


/* ---------------------------------------------------------
   TOUCH — phones and tablets
   Text links keep the size they are drawn at and get an
   area a fingertip can hit (a transparent ::after reaching
   past the text); the small controls grow to 40px.
--------------------------------------------------------- */

@media (max-width: 1024px) {

    #tcg-shop .tcg-steps__step a,
    #tcg-shop .woocommerce .tcg-line__remove a.remove,
    #tcg-shop .tcg-cart__continue,
    #tcg-shop .tcg-co__back,
    #tcg-shop .tcg-shop__more-head a,
    #tcg-shop .tcg-summary__notes a {
        position: relative;
    }

    #tcg-shop .tcg-steps__step a::after,
    #tcg-shop .woocommerce .tcg-line__remove a.remove::after,
    #tcg-shop .tcg-cart__continue::after,
    #tcg-shop .tcg-co__back::after,
    #tcg-shop .tcg-shop__more-head a::after,
    #tcg-shop .tcg-summary__notes a::after {
        content: "";
        position: absolute;
        inset: -14px -8px;
    }

    .tcg-qty {
        height: 42px;
    }

    #tcg-shop .tcg-qty .tcg-qty__step {
        width: 40px;
    }
}
