/* ===================================================================================
   HEXXXA CART + CHECKOUT
   woocommerce/cart/*, woocommerce/checkout/*,
   cart-checkout-page.php, header-checkout.php, footer-checkout.php.
   Same design language as the product page (hexxxa-product.css): Oswald headings,
   Roboto text, sharp corners, gold primary button, option cards like the bundle picker.
   Enqueued from inc/cart-checkout.php on the cart and the checkout form only.
===================================================================================== */

:root {
    --primary-gold: #C8A882;
    --primary-gold-dark: #b8986f;
    --secondary-brown: #8B7355;
    --secondary-brown-dark: #6b5a45;
    --light-cream: #f8f6f0;
    --text-dark: #2c2c2c;
    --text-muted: #6b7280;
    --text-soft: #5f5a52;
    --white: #ffffff;
    --line: #ebe5da;
    --line-strong: #dcd3c3;
    --option-line: #ece7dc;
    --selected-bg: #fbf6ee;
    --error: #b3261e;
    --focus-ring: 0 0 0 1px var(--secondary-brown) inset;
}

/* ==========================================================================
   Page wrapper
   ========================================================================== */
.hexxxa-shop-flow {
    font-family: "Roboto", Sans-serif;
    color: var(--text-dark);
}

.hexxxa-shop-flow-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 20px 96px;
}

.hexxxa-shop-flow--checkout .hexxxa-shop-flow-inner {
    padding-top: 32px;
    padding-bottom: 64px;
}

.hexxxa-shop-flow .woocommerce::after,
.hexxxa-shop-flow .woocommerce::before {
    display: none;
}

.hexxxa-shop-flow a {
    color: var(--secondary-brown);
}

.hexxxa-shop-flow a:hover {
    color: var(--secondary-brown-dark);
}

.hexxxa-shop-flow svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Notices ---- */
.hexxxa-shop-flow .woocommerce-message,
.hexxxa-shop-flow .woocommerce-info,
.hexxxa-shop-flow .woocommerce-error {
    position: relative;
    margin: 0 0 20px;
    padding: 14px 18px;
    list-style: none;
    background: var(--light-cream);
    border: 0;
    border-left: 3px solid var(--primary-gold);
    border-radius: 0;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.5;
}

.hexxxa-shop-flow .woocommerce-error {
    border-left-color: var(--error);
    background: #fdf3f2;
}

.hexxxa-shop-flow .woocommerce-message::before,
.hexxxa-shop-flow .woocommerce-info::before,
.hexxxa-shop-flow .woocommerce-error::before {
    display: none;
}

.hexxxa-shop-flow .woocommerce-error li {
    margin: 0;
    padding: 0;
}

.hexxxa-shop-flow .woocommerce-error li + li {
    margin-top: 4px;
}

.hexxxa-shop-flow .woocommerce-message .button,
.hexxxa-shop-flow .woocommerce-info .button {
    float: right;
    padding: 0;
    background: none;
    color: var(--secondary-brown);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

/* ---- "+ Pridať …" links ---- */
.hexxxa-co-add,
.hexxxa-co-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--secondary-brown);
    font-family: "Roboto", Sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.hexxxa-co-add > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--primary-gold);
    color: var(--secondary-brown);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.hexxxa-co-link {
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hexxxa-co-add:hover,
.hexxxa-co-link:hover {
    color: var(--secondary-brown-dark);
}

.hexxxa-co-add:hover > span {
    border-color: var(--secondary-brown);
}

.hexxxa-co-add:focus-visible,
.hexxxa-co-link:focus-visible {
    outline: 2px solid var(--secondary-brown);
    outline-offset: 2px;
}

.hexxxa-co-add[hidden],
[hidden] {
    display: none !important;
}

/* ==========================================================================
   Form controls (cart coupon, checkout fields, login dialog)
   ========================================================================== */
.hexxxa-shop-flow .form-row,
.hexxxa-co-dialog .form-row {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hexxxa-shop-flow .form-row label,
.hexxxa-co-dialog .form-row label {
    display: block;
    margin: 0 0 7px;
    font-family: "Roboto", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark);
    text-transform: none;
    letter-spacing: 0;
}

.hexxxa-shop-flow .form-row label .required,
.hexxxa-co-dialog .form-row label .required {
    color: var(--secondary-brown);
    text-decoration: none;
    border: 0;
}

.hexxxa-shop-flow .form-row label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

.hexxxa-shop-flow .woocommerce-input-wrapper {
    display: block;
}

.hexxxa-shop-flow input.input-text,
.hexxxa-shop-flow textarea.input-text,
.hexxxa-shop-flow .form-row select,
.hexxxa-co-dialog input.input-text {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    box-shadow: none;
    color: var(--text-dark);
    font-family: "Roboto", Sans-serif;
    font-size: 16px; /* 16px: no zoom-in on iOS */
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.hexxxa-shop-flow textarea.input-text {
    height: 110px;
    padding: 14px 16px;
    resize: vertical;
}

.hexxxa-shop-flow input.input-text::placeholder,
.hexxxa-shop-flow textarea.input-text::placeholder {
    color: #9b958b;
}

.hexxxa-shop-flow input.input-text:hover,
.hexxxa-shop-flow textarea.input-text:hover {
    border-color: #c9bfae;
}

.hexxxa-shop-flow input.input-text:focus,
.hexxxa-shop-flow textarea.input-text:focus,
.hexxxa-shop-flow .form-row select:focus,
.hexxxa-co-dialog input.input-text:focus {
    border-color: var(--secondary-brown);
    box-shadow: var(--focus-ring);
}

.hexxxa-shop-flow .form-row.woocommerce-invalid input.input-text,
.hexxxa-shop-flow .form-row.woocommerce-invalid select,
.hexxxa-shop-flow .form-row.woocommerce-invalid .select2-selection {
    border-color: var(--error) !important;
}

.hexxxa-shop-flow .form-row.woocommerce-invalid label {
    color: var(--error);
}

.hexxxa-shop-flow .form-row.woocommerce-validated input.input-text,
.hexxxa-shop-flow .form-row.woocommerce-validated .select2-selection {
    border-color: var(--line-strong);
}

.hexxxa-shop-flow .checkout-inline-error-message {
    margin: 6px 0 0;
    color: var(--error);
    font-size: 13px;
}

.hexxxa-shop-flow .form-row .description {
    display: block !important; /* woocommerce.js shows it only while the field has focus */
    margin: 6px 0 0;
    padding: 0;
    background: none;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.hexxxa-shop-flow .form-row .description::before {
    display: none;
}

/* Select2 (country) */
.hexxxa-shop-flow .select2-container {
    width: 100% !important;
}

.hexxxa-shop-flow .select2-container .select2-selection--single {
    height: 52px;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 0;
}

.hexxxa-shop-flow .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 40px 0 16px;
    line-height: 50px;
    color: var(--text-dark);
    font-size: 16px;
}

.hexxxa-shop-flow .select2-container .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 10px;
    height: 50px;
}

.hexxxa-shop-flow .select2-container--focus .select2-selection--single,
.hexxxa-shop-flow .select2-container--open .select2-selection--single {
    border-color: var(--secondary-brown);
    box-shadow: var(--focus-ring);
}

.select2-dropdown {
    border-color: var(--line-strong);
    border-radius: 0;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background: var(--secondary-brown);
    color: var(--white);
}

/* Checkboxes — square, per the sharp-corner rule */
.hexxxa-shop-flow input[type="checkbox"],
.hexxxa-co-dialog input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px !important;
    height: 20px;
    margin: 0;
    background: var(--white) center / 14px 14px no-repeat;
    border: 2px solid #cfc6b5;
    border-radius: 0;
    cursor: pointer;
    vertical-align: middle;
    -webkit-appearance: none;
    appearance: none;
}

.hexxxa-shop-flow input[type="checkbox"]:checked,
.hexxxa-co-dialog input[type="checkbox"]:checked {
    background-color: var(--secondary-brown);
    border-color: var(--secondary-brown);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.hexxxa-shop-flow input[type="checkbox"]:focus-visible,
.hexxxa-co-dialog input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--secondary-brown);
    outline-offset: 2px;
}

.hexxxa-shop-flow label.checkbox,
.hexxxa-shop-flow .woocommerce-form__label-for-checkbox,
.hexxxa-co-dialog .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

.hexxxa-shop-flow label.checkbox input[type="checkbox"],
.hexxxa-shop-flow .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    margin-top: 0;
}

.hexxxa-shop-flow label.checkbox br {
    display: none;
}

/* Buttons */
.hexxxa-shop-flow .button,
.hexxxa-co-dialog .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    margin: 0;
    background: var(--secondary-brown);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--white);
    font-family: "Oswald", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hexxxa-shop-flow .button:hover,
.hexxxa-co-dialog .button:hover {
    background: var(--secondary-brown-dark);
    color: var(--white);
}

.hexxxa-shop-flow .button:focus-visible {
    outline: 2px solid var(--text-dark);
    outline-offset: 2px;
}

.hexxxa-shop-flow .button::before,
.hexxxa-shop-flow .button::after {
    display: none;
}

/* Primary action: checkout / place order (same as "Pridať do košíka") */
.hexxxa-shop-flow .hexxxa-cart-checkout-btn,
.hexxxa-shop-flow #place_order {
    display: flex;
    width: 100%;
    min-height: 60px;
    padding: 10px 24px;
    background: var(--primary-gold);
    color: var(--white);
    font-size: 19px;
    letter-spacing: 0.8px;
}

.hexxxa-shop-flow .hexxxa-cart-checkout-btn:hover,
.hexxxa-shop-flow #place_order:hover {
    background: var(--secondary-brown);
}

.hexxxa-shop-flow .hexxxa-cart-checkout-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.hexxxa-shop-flow .hexxxa-cart-checkout-btn:hover svg {
    transform: translateX(3px);
}

/* Coupon field (cart + checkout) */
.hexxxa-coupon-field {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.hexxxa-coupon-field[hidden] {
    display: none !important;
}

.hexxxa-shop-flow .hexxxa-coupon-field input.input-text {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
}

.hexxxa-shop-flow .hexxxa-coupon-field .button {
    flex: 0 0 auto;
}

/* ==========================================================================
   Option cards — shipping and payment methods (like .hexxxa-bundle)
   ========================================================================== */
.hexxxa-shop-flow ul.hexxxa-co-options {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
    background: none;
}

.hexxxa-shop-flow .hexxxa-co-options > li.hexxxa-co-option {
    position: relative;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    background: var(--white);
    border: 2px solid var(--option-line);
    line-height: 1.4;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hexxxa-shop-flow .hexxxa-co-options > li.hexxxa-co-option:last-child {
    margin-bottom: 0;
}

@media (hover: hover) {
    .hexxxa-shop-flow .hexxxa-co-options > li.hexxxa-co-option:hover {
        border-color: var(--primary-gold);
    }
}

.hexxxa-shop-flow .hexxxa-co-options > li.hexxxa-co-option:has(> input:checked),
.hexxxa-shop-flow .hexxxa-co-options > li.hexxxa-co-option:has(> input[type="hidden"]) {
    border-color: var(--secondary-brown);
    background: var(--selected-bg);
}

.hexxxa-shop-flow .hexxxa-co-options > li.hexxxa-co-option > input {
    position: absolute;
    top: 24px;
    left: 22px;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.hexxxa-shop-flow .hexxxa-co-options > li.hexxxa-co-option > label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    font-family: "Roboto", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
}

.hexxxa-co-option-mark {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: var(--white);
    border: 2px solid #d9d2c3;
}

.hexxxa-co-options > li.hexxxa-co-option:has(> input:checked) .hexxxa-co-option-mark,
.hexxxa-co-options > li.hexxxa-co-option:has(> input[type="hidden"]) .hexxxa-co-option-mark {
    border-color: var(--secondary-brown);
}

.hexxxa-co-options > li.hexxxa-co-option:has(> input:checked) .hexxxa-co-option-mark::after,
.hexxxa-co-options > li.hexxxa-co-option:has(> input[type="hidden"]) .hexxxa-co-option-mark::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--secondary-brown);
}

.hexxxa-co-options > li.hexxxa-co-option > input:focus-visible + label .hexxxa-co-option-mark {
    outline: 2px solid var(--secondary-brown);
    outline-offset: 2px;
}

.hexxxa-co-option-name {
    flex: 1 1 0;
    min-width: 0;
}

.hexxxa-co-options > li.hexxxa-co-option:has(> input:checked) .hexxxa-co-option-name {
    font-weight: 700;
}

.hexxxa-co-option-price {
    flex: 0 0 auto;
    margin-left: auto;
    font-family: "Oswald", Sans-serif;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.hexxxa-co-option-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.hexxxa-co-option-icons:empty {
    display: none;
}

.hexxxa-shop-flow .hexxxa-co-option-icons img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 26px;
    margin: 0;
    float: none;
}

/* Payment description / fields */
.hexxxa-shop-flow #payment {
    background: none;
    border-radius: 0;
}

.hexxxa-shop-flow #payment .payment_box {
    position: static;
    margin: 0;
    padding: 0 18px 18px 54px;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
}

.hexxxa-shop-flow #payment .payment_box::before {
    display: none;
}

.hexxxa-shop-flow #payment .payment_box p:last-child {
    margin-bottom: 0;
}

.hexxxa-shop-flow #payment .payment_box .wc-stripe-gateway-desc p {
    margin: 0 0 12px;
}

.hexxxa-shop-flow #payment .payment_box .form-row label {
    display: inline !important;
    font-weight: 500;
}

.hexxxa-shop-flow #payment .payment_box .woocommerce-SavedPaymentMethods-saveNew {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.hexxxa-shop-flow #payment .wc_payment_methods > li:not(.hexxxa-co-option) {
    list-style: none;
    margin: 0;
}

/* Packeta pickup point (inside the shipping option) */
.hexxxa-shop-flow .hexxxa-co-option .packeta-widget {
    margin: 0;
    padding: 0 18px 16px 54px;
}

.hexxxa-shop-flow .hexxxa-co-option .packeta-widget .packeta-widget-button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hexxxa-shop-flow .hexxxa-co-option .packeta-widget .packeta-widget-button img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0;
}

.hexxxa-shop-flow .hexxxa-co-option .packeta-widget .packeta-widget-button button,
.hexxxa-shop-flow .hexxxa-co-option .packeta-widget .packeta-widget-button .button {
    width: auto;
    min-height: 44px;
    padding: 0 18px;
    background: var(--white);
    border: 2px solid var(--secondary-brown);
    color: var(--secondary-brown);
    font-size: 15px;
}

.hexxxa-shop-flow .hexxxa-co-option .packeta-widget .packeta-widget-button button:hover,
.hexxxa-shop-flow .hexxxa-co-option .packeta-widget .packeta-widget-button .button:hover {
    background: var(--secondary-brown);
    color: var(--white);
}

.hexxxa-shop-flow .hexxxa-co-option .packeta-widget-info,
.hexxxa-shop-flow .hexxxa-co-option .packeta-widget-place,
.hexxxa-shop-flow .hexxxa-co-option .packeta-widget-selected-address {
    font-size: 14px;
    color: var(--text-soft);
}

.hexxxa-shop-flow .hexxxa-co-option .packeta-widget-info.packeta-widget-info-error {
    color: var(--error);
}

/* ==========================================================================
   CART
   ========================================================================== */
.hexxxa-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 48px;
    align-items: start;
}

.hexxxa-cart-form {
    min-width: 0;
    margin: 0;
}

/* Free shipping progress */
.hexxxa-cart-free {
    margin: 0 0 8px;
    padding: 14px 18px 16px;
    background: var(--light-cream);
    border-left: 3px solid var(--primary-gold);
}

.hexxxa-cart-free-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-dark);
}

.hexxxa-cart-free-text svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--secondary-brown);
}

.hexxxa-cart-free-text strong {
    font-weight: 700;
}

.hexxxa-cart-free-bar {
    height: 6px;
    background: var(--line);
    overflow: hidden;
}

.hexxxa-cart-free-bar span {
    display: block;
    height: 100%;
    background: var(--primary-gold);
    transition: width 0.4s ease;
}

.hexxxa-cart-free.is-reached {
    border-left-color: var(--secondary-brown);
}

.hexxxa-cart-free.is-reached .hexxxa-cart-free-bar span {
    background: var(--secondary-brown);
}

/* Items */
.hexxxa-shop-flow table.hexxxa-cart-items {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-radius: 0;
    background: none;
}

.hexxxa-cart-items tbody,
.hexxxa-cart-items tr {
    display: block;
}

.hexxxa-shop-flow .hexxxa-cart-items tr.cart_item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 148px 112px 40px;
    grid-template-areas: "thumb name qty total remove";
    align-items: center;
    column-gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.hexxxa-shop-flow .hexxxa-cart-items td {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.hexxxa-shop-flow .hexxxa-cart-items td::before {
    display: none !important;
}

.hexxxa-cart-items .product-thumbnail {
    grid-area: thumb;
}

.hexxxa-cart-items .product-thumbnail a,
.hexxxa-cart-items .product-thumbnail img {
    display: block;
}

.hexxxa-shop-flow .hexxxa-cart-items .product-thumbnail img {
    width: 104px;
    max-width: 104px;
    height: 104px;
    object-fit: contain;
}

.hexxxa-cart-items .product-name {
    grid-area: name;
    min-width: 0;
}

.hexxxa-cart-item-name {
    display: block;
    font-family: "Oswald", Sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.hexxxa-shop-flow .hexxxa-cart-item-name a {
    color: var(--text-dark);
    text-decoration: none;
}

.hexxxa-shop-flow .hexxxa-cart-item-name a:hover {
    color: var(--secondary-brown);
}

.hexxxa-cart-items .product-name dl.variation {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.hexxxa-cart-items .product-name dl.variation dt,
.hexxxa-cart-items .product-name dl.variation dd {
    display: inline;
    margin: 0;
}

.hexxxa-cart-items .product-name dl.variation dd p {
    display: inline;
    margin: 0;
}

.hexxxa-cart-item-unit {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.hexxxa-cart-items .backorder_notification {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--secondary-brown);
}

.hexxxa-cart-items .product-quantity {
    grid-area: qty;
}

.hexxxa-cart-items .product-subtotal {
    grid-area: total;
    text-align: right !important;
    font-family: "Oswald", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.hexxxa-cart-items .product-remove {
    grid-area: remove;
    justify-self: end;
}

.hexxxa-shop-flow .hexxxa-cart-items .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    background: none;
    border-radius: 0;
    color: var(--text-muted) !important;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.hexxxa-shop-flow .hexxxa-cart-items .product-remove a.remove:hover {
    background: var(--light-cream);
    color: var(--error) !important;
}

.hexxxa-cart-items .product-remove a.remove svg {
    width: 20px;
    height: 20px;
}

.hexxxa-cart-items .product-remove a.remove span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Quantity stepper */
.hexxxa-shop-flow .hexxxa-qty {
    display: inline-flex;
    align-items: stretch;
    width: 148px;
    height: 48px;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line-strong);
}

.hexxxa-shop-flow .hexxxa-qty .qty {
    flex: 1 1 auto;
    width: 40px;
    min-width: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-dark);
    font-family: "Oswald", Sans-serif;
    font-size: 19px;
    font-weight: 500;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.hexxxa-shop-flow .hexxxa-qty .qty::-webkit-outer-spin-button,
.hexxxa-shop-flow .hexxxa-qty .qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.hexxxa-shop-flow .hexxxa-qty:focus-within {
    border-color: var(--secondary-brown);
    box-shadow: var(--focus-ring);
}

.hexxxa-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.hexxxa-qty-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.hexxxa-qty-btn:hover:not(:disabled) {
    background: var(--light-cream);
    color: var(--secondary-brown);
}

.hexxxa-qty-btn:disabled {
    color: #c7c0b3;
    cursor: default;
}

.hexxxa-qty-btn:focus-visible {
    outline: 2px solid var(--secondary-brown);
    outline-offset: -2px;
}

/* Below the items: continue shopping, coupon */
.hexxxa-cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 32px;
    padding: 22px 0 0;
}

.hexxxa-shop-flow .hexxxa-cart-continue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.hexxxa-cart-continue svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.hexxxa-cart-coupon {
    flex: 0 1 380px;
    min-width: 0;
    text-align: right;
}

.hexxxa-cart-coupon .hexxxa-coupon-field {
    text-align: left;
}

.hexxxa-cart-coupon .coupon-error-notice {
    flex: 0 0 100%;
    margin: 6px 0 0;
    color: var(--error);
    font-size: 13px;
    text-align: left;
}

.hexxxa-cart-coupon .hexxxa-coupon-field {
    flex-wrap: wrap;
}

.hexxxa-cart-coupon .hexxxa-coupon-field input.input-text {
    flex: 1 1 200px;
}

.hexxxa-cart--js .hexxxa-cart-update {
    display: none !important;
}

/* Summary */
.hexxxa-cart-aside {
    position: sticky;
    top: 24px;
    min-width: 0;
    width: auto;
    float: none;
}

.hexxxa-shop-flow .cart-collaterals .hexxxa-cart-summary {
    float: none;
    width: 100%;
    margin: 0;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
}

.hexxxa-cart-summary-title,
.hexxxa-co-title {
    margin: 0 0 18px;
    padding: 0;
    font-family: "Oswald", Sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* Parent theme sets review cells to width/max-width 50% — the amount column shrinks to
   its content (1% + nowrap), the item name takes the rest */
.hexxxa-shop-flow table.hexxxa-co-review th,
.hexxxa-shop-flow table.hexxxa-co-review td {
    width: auto;
    max-width: none;
}

.hexxxa-shop-flow table.hexxxa-co-review td:last-child {
    width: 1%;
    white-space: nowrap;
}

.hexxxa-shop-flow table.hexxxa-totals,
.hexxxa-shop-flow table.hexxxa-co-review {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-radius: 0;
    background: none;
}

.hexxxa-shop-flow .hexxxa-totals th,
.hexxxa-shop-flow .hexxxa-totals td,
.hexxxa-shop-flow .hexxxa-co-review tfoot th,
.hexxxa-shop-flow .hexxxa-co-review tfoot td {
    padding: 10px 0;
    border: 0;
    background: none;
    vertical-align: top;
    font-family: "Roboto", Sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-soft);
    text-align: left;
    text-transform: none;
}

.hexxxa-shop-flow .hexxxa-totals td,
.hexxxa-shop-flow .hexxxa-co-review tfoot td {
    text-align: right;
    color: var(--text-dark);
    font-weight: 500;
}

.hexxxa-shop-flow .hexxxa-totals td::before {
    display: none;
}

.hexxxa-shop-flow .hexxxa-totals .hexxxa-totals-shipping td {
    color: var(--text-muted);
    font-weight: 400;
}

.hexxxa-shop-flow .hexxxa-totals .order-total th,
.hexxxa-shop-flow .hexxxa-totals .order-total td,
.hexxxa-shop-flow .hexxxa-co-review tfoot .order-total th,
.hexxxa-shop-flow .hexxxa-co-review tfoot .order-total td {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--text-dark);
    vertical-align: bottom;
}

.hexxxa-shop-flow .hexxxa-totals .order-total th,
.hexxxa-shop-flow .hexxxa-co-review tfoot .order-total th {
    font-family: "Oswald", Sans-serif;
    font-size: 19px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hexxxa-shop-flow .hexxxa-totals .order-total th small {
    display: block;
    font-family: "Roboto", Sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
}

.hexxxa-shop-flow .hexxxa-totals .order-total td,
.hexxxa-shop-flow .hexxxa-co-review tfoot .order-total td {
    font-family: "Oswald", Sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}

.hexxxa-shop-flow .hexxxa-totals .order-total td strong {
    font-weight: 600;
}

.hexxxa-shop-flow .hexxxa-totals .order-total td small,
.hexxxa-shop-flow .hexxxa-co-review tfoot .order-total td small {
    display: block;
    font-family: "Roboto", Sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.hexxxa-shop-flow .cart-discount td a,
.hexxxa-shop-flow .woocommerce-remove-coupon {
    display: inline-block;
    margin-left: 6px;
    font-size: 13px;
    font-weight: 500;
}

.hexxxa-shop-flow .cart-discount td,
.hexxxa-shop-flow .cart-discount th {
    color: var(--secondary-brown) !important;
}

.hexxxa-shop-flow .wc-proceed-to-checkout {
    margin: 20px 0 0;
    padding: 0;
}

.hexxxa-shop-flow .wc-proceed-to-checkout > * + * {
    margin-top: 12px;
}

/* Trust list */
.hexxxa-trust {
    margin: 22px 0 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.hexxxa-trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-soft);
}

.hexxxa-trust svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--secondary-brown);
}

.hexxxa-shop-flow .hexxxa-trust a {
    color: var(--text-soft);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
}

.hexxxa-shop-flow .hexxxa-trust a:hover {
    color: var(--secondary-brown);
}

/* Empty cart */
.hexxxa-cart-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 0 0;
    text-align: center;
}

.hexxxa-cart-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: var(--primary-gold);
}

.hexxxa-shop-flow .hexxxa-cart-empty .wc-empty-cart-message .cart-empty {
    margin: 0 0 24px;
    padding: 0;
    background: none;
    border: 0;
    font-family: "Oswald", Sans-serif;
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
}

.hexxxa-cart-empty .return-to-shop {
    max-width: 360px;
    margin: 0 auto;
}

/* ==========================================================================
   CHECKOUT — header / footer (header-checkout.php, footer-checkout.php)
   ========================================================================== */
body.hexxxa-checkout-focus {
    background: #f7f4ee;
}

.hexxxa-co-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.hexxxa-co-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 20px;
}

.hexxxa-co-header-logo {
    display: block;
    line-height: 0;
}

.hexxxa-co-header-logo img {
    width: auto;
    height: 46px;
}

.hexxxa-co-header-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--secondary-brown);
    font-family: "Roboto", Sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.hexxxa-co-header-back:hover {
    color: var(--secondary-brown-dark);
}

.hexxxa-co-header-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hexxxa-co-footer {
    border-top: 1px solid var(--line);
    background: var(--white);
}

.hexxxa-co-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px;
    font-family: "Roboto", Sans-serif;
    font-size: 14px;
    color: var(--text-muted);
}

.hexxxa-co-footer-company {
    margin: 0;
}

.hexxxa-co-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hexxxa-co-footer-links a {
    color: var(--text-soft);
    text-decoration: none;
}

.hexxxa-co-footer-links a:hover {
    color: var(--secondary-brown);
    text-decoration: underline;
}

/* ==========================================================================
   CHECKOUT — layout and sections
   ========================================================================== */
.hexxxa-shop-flow form.hexxxa-co {
    margin: 0;
}

.hexxxa-co-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 32px;
    align-items: start;
}

.hexxxa-co-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.hexxxa-co-section {
    margin: 0 0 16px;
    padding: 28px 32px 32px;
    background: var(--white);
    border: 1px solid var(--line);
}

.hexxxa-co-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin: 0 0 18px;
}

.hexxxa-co-section-head .hexxxa-co-title {
    margin: 0;
}

.hexxxa-co-login {
    margin: 0;
    font-size: 15px;
    color: var(--text-soft);
}

/* Field grid: full width rows; names, PSČ + mesto, e-mail + telefón, IČO + DIČ in pairs */
.hexxxa-co-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.hexxxa-co-fields > * {
    grid-column: 1 / -1;
    min-width: 0;
}

/* The grid decides the widths. Fluid Checkout's locale data (applied by address-i18n.js)
   can still mark postcode/city as form-row-first/last, which other stylesheets size at 47 %. */
.hexxxa-shop-flow .hexxxa-co-fields .form-row,
.hexxxa-shop-flow .hexxxa-co-fields .form-row-first,
.hexxxa-shop-flow .hexxxa-co-fields .form-row-last,
.hexxxa-shop-flow .hexxxa-co-fields .form-row-wide {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hexxxa-co-fields > #billing_email_field,
.hexxxa-co-fields > #billing_phone_field,
.hexxxa-co-fields > #shipping_first_name_field,
.hexxxa-co-fields > #shipping_last_name_field,
.hexxxa-co-fields > #billing_first_name_field,
.hexxxa-co-fields > #billing_last_name_field,
.hexxxa-co-fields > #shipping_postcode_field,
.hexxxa-co-fields > #shipping_city_field,
.hexxxa-co-fields > #billing_postcode_field,
.hexxxa-co-fields > #billing_city_field,
.hexxxa-co-fields > #billing_ico_field,
.hexxxa-co-fields > #billing_dic_field {
    grid-column: auto / span 1;
}

.hexxxa-co-fields + .hexxxa-co-fields,
.hexxxa-co-fields + .woocommerce-account-fields,
.woocommerce-billing-fields > .form-row + .hexxxa-co-fields,
.woocommerce-billing-fields > .hexxxa-co-fields + .form-row,
.woocommerce-billing-fields > .hexxxa-co-check + .form-row,
.woocommerce-billing-fields > .hexxxa-co-check + .hexxxa-co-fields,
.woocommerce-additional-fields {
    margin-top: 18px;
}

.hexxxa-co-section .woocommerce-shipping-fields + .woocommerce-additional-fields {
    margin-top: 18px;
}

.woocommerce-additional-fields:not(:has(.form-row, .hexxxa-co-optional)) {
    margin-top: 0;
}

.hexxxa-co-optional-field {
    margin-top: 2px;
}

.woocommerce-account-fields {
    margin-top: 20px;
}

.woocommerce-account-fields .create-account.hexxxa-co-fields {
    margin-top: 16px;
}

.hexxxa-co-check {
    margin: 0;
}

.hexxxa-co-billing-address:not([hidden]) {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.hexxxa-co-company:not([hidden]) {
    margin-top: 18px;
}

.hexxxa-co-note {
    margin: 0;
    padding: 14px 18px;
    background: var(--light-cream);
    color: var(--text-soft);
    font-size: 15px;
}

.hexxxa-co-package {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Coupon row inside "Spôsob platby" */
.hexxxa-co-coupon {
    margin: 0 0 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.hexxxa-co-coupon-notice:empty {
    display: none;
}

.hexxxa-co-coupon-notice .woocommerce-message,
.hexxxa-co-coupon-notice .woocommerce-error,
.hexxxa-co-coupon-notice .woocommerce-info {
    margin: 12px 0 0;
}

/* Place order */
.hexxxa-shop-flow .hexxxa-co-place-order {
    margin: 24px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
}

.hexxxa-shop-flow .woocommerce-privacy-policy-text p {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

.hexxxa-shop-flow .woocommerce-terms-and-conditions {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 13px;
}

.hexxxa-shop-flow .woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 0 0 14px;
}

.hexxxa-shop-flow .woocommerce-terms-and-conditions-checkbox-text {
    font-weight: 500;
}

.hexxxa-shop-flow .place-order abbr.required {
    color: var(--secondary-brown);
    text-decoration: none;
    border: 0;
}

.hexxxa-co-pay-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 14px;
    font-size: 16px;
    font-weight: 500;
}

.hexxxa-co-pay-total strong,
.hexxxa-co-pay-total .amount {
    color: var(--text-dark);
}

.hexxxa-co-pay-total strong {
    font-family: "Oswald", Sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.hexxxa-co-pay-total strong small {
    display: block;
    font-family: "Roboto", Sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

/* ==========================================================================
   CHECKOUT — order summary
   ========================================================================== */
.hexxxa-co-summary {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
}

.hexxxa-co-summary-toggle {
    display: none;
}

.hexxxa-co-summary-body {
    padding: 26px 28px 28px;
}

.hexxxa-co-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.hexxxa-co-summary-head .hexxxa-co-title {
    margin: 0;
    font-size: 22px;
}

.hexxxa-shop-flow .hexxxa-co-summary-edit {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hexxxa-shop-flow .hexxxa-co-review tbody td {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    vertical-align: middle;
}

.hexxxa-shop-flow .hexxxa-co-review tbody tr:first-child td {
    border-top: 1px solid var(--line);
}

.hexxxa-shop-flow .hexxxa-co-review tbody .product-total {
    padding-left: 12px;
    text-align: right;
    white-space: nowrap;
    font-family: "Oswald", Sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-dark);
}

.hexxxa-co-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hexxxa-co-item-thumb {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    margin-top: 8px;
}

.hexxxa-shop-flow .hexxxa-co-item-thumb img {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0;
    object-fit: contain;
}

.hexxxa-co-item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--text-dark);
    color: var(--white);
    font-family: "Roboto", Sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.hexxxa-co-item-text {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
}

.hexxxa-co-item-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.hexxxa-co-item-text .product-quantity {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hexxxa-co-item-text dl.variation {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.hexxxa-co-item-text dl.variation dt,
.hexxxa-co-item-text dl.variation dd,
.hexxxa-co-item-text dl.variation dd p {
    display: inline;
    margin: 0;
}

.hexxxa-shop-flow .hexxxa-co-review tfoot tr:first-child th,
.hexxxa-shop-flow .hexxxa-co-review tfoot tr:first-child td {
    padding-top: 16px;
}

.hexxxa-shop-flow .hexxxa-co-review tfoot th small {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

/* Summary trust line under the totals */
.hexxxa-co-summary .hexxxa-trust {
    margin-top: 18px;
}

/* ==========================================================================
   Login dialog
   ========================================================================== */
.hexxxa-co-dialog {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 24px 60px rgba(30, 26, 20, 0.25);
    font-family: "Roboto", Sans-serif;
}

.hexxxa-co-dialog::backdrop {
    background: rgba(30, 26, 20, 0.5);
}

.hexxxa-co-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.hexxxa-co-dialog-title {
    margin: 0;
    font-family: "Oswald", Sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
}

.hexxxa-co-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -8px -10px -8px 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--text-dark);
    cursor: pointer;
}

.hexxxa-co-dialog-close:hover {
    background: var(--light-cream);
}

.hexxxa-co-dialog-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.hexxxa-co-dialog .woocommerce-form-login {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 22px 24px 26px;
    border: 0;
    border-radius: 0;
}

.hexxxa-co-dialog .woocommerce-form-login > p {
    margin: 0;
}

.hexxxa-co-dialog .woocommerce-form-login > p:first-child {
    color: var(--text-soft);
    font-size: 15px;
}

.hexxxa-co-dialog .woocommerce-form-login .clear {
    display: none;
}

.hexxxa-co-dialog .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hexxxa-co-dialog .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    font-weight: 500 !important;
}

.hexxxa-co-dialog .woocommerce-form-login__submit {
    background: var(--primary-gold);
    color: var(--white);
    min-width: 160px;
}

.hexxxa-co-dialog .woocommerce-form-login__submit:hover {
    background: var(--secondary-brown);
}

.hexxxa-co-dialog .lost_password {
    margin: 0;
    font-size: 14px;
}

.hexxxa-co-dialog .lost_password a {
    color: var(--secondary-brown);
}

.hexxxa-co-dialog .password-input {
    display: block;
    position: relative;
}

.hexxxa-co-dialog .show-password-input {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

/* ==========================================================================
   Parent theme (suxnix-shop.css) overrides — its cart rules target the same
   Woo classes (.cart-collaterals, .woocommerce-cart-form table td, #coupon_code)
   ========================================================================== */
.hexxxa-shop-flow .cart-collaterals.hexxxa-cart-aside {
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

.hexxxa-shop-flow .cart-collaterals .cart_totals > h2.hexxxa-cart-summary-title {
    padding: 0;
    border: 0;
}

.hexxxa-shop-flow .cart-collaterals .hexxxa-totals th,
.hexxxa-shop-flow .cart-collaterals .hexxxa-totals td {
    padding: 10px 0;
    border: 0;
}

.hexxxa-shop-flow .cart-collaterals .hexxxa-totals th {
    color: var(--text-soft);
    font-size: 15px;
}

.hexxxa-shop-flow .cart-collaterals .hexxxa-totals td {
    color: var(--text-dark);
    font-size: 15px;
}

.hexxxa-shop-flow .cart-collaterals .hexxxa-totals .order-total th,
.hexxxa-shop-flow .cart-collaterals .hexxxa-totals .order-total td {
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    color: var(--text-dark);
}

.hexxxa-shop-flow .cart-collaterals .hexxxa-totals .order-total th {
    font-size: 19px;
}

.hexxxa-shop-flow .cart-collaterals .hexxxa-totals .order-total td {
    font-size: 28px;
}

.hexxxa-shop-flow .cart-collaterals .hexxxa-totals .order-total .amount,
.hexxxa-shop-flow .cart-collaterals .hexxxa-totals .order-total strong {
    font-size: inherit;
    font-weight: 600;
    color: inherit;
}

.hexxxa-shop-flow .cart-collaterals .wc-proceed-to-checkout {
    border: 0;
}

.hexxxa-shop-flow .hexxxa-coupon-field #coupon_code {
    height: 52px;
    margin: 0;
    padding: 0 16px;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    color: var(--text-dark);
}

.hexxxa-shop-flow .hexxxa-coupon-field #coupon_code:focus {
    border-color: var(--secondary-brown);
    box-shadow: var(--focus-ring);
}

.hexxxa-shop-flow .woocommerce-cart-form .hexxxa-cart-coupon .coupon label {
    display: none;
}

.hexxxa-shop-flow .hexxxa-cart-items td.product-subtotal,
.hexxxa-shop-flow .hexxxa-cart-items td.product-remove {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
}

.hexxxa-shop-flow .hexxxa-cart-items td.product-remove a.remove {
    position: static;
}

/* Terms: asterisk right after the text (Woo prints it as a separate flex item) */
.hexxxa-shop-flow .woocommerce-terms-and-conditions-wrapper label.checkbox abbr.required {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.hexxxa-shop-flow .woocommerce-terms-and-conditions-checkbox-text::after {
    content: " *";
    color: var(--secondary-brown);
}

/* A checkbox is optional by nature — no "(voliteľné)" next to it */
.hexxxa-shop-flow label.checkbox .optional {
    display: none;
}

.hexxxa-co-before-submit > label.checkbox {
    margin: 0 0 14px;
}

.hexxxa-co-before-submit:empty {
    display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
    .hexxxa-cart {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 32px;
    }

    .hexxxa-co-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    /* Cart: summary under the items */
    .hexxxa-cart {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .hexxxa-cart-aside {
        position: static;
    }

    /* Order on small screens: items → summary with the checkout button → coupon and
       "continue shopping". The form's boxes join the cart grid (display: contents keeps the
       <form> and its submit behaviour; cart.js still finds and replaces it). */
    .hexxxa-cart {
        gap: 0;
    }

    .hexxxa-cart-form {
        display: contents;
    }

    .hexxxa-cart > *,
    .hexxxa-cart-form > * {
        order: 2;
    }

    .hexxxa-cart-aside {
        order: 3;
        margin-top: 24px;
    }

    .hexxxa-cart-actions {
        order: 4;
        padding-top: 24px;
    }

    /* Checkout: summary collapses into a bar above the form */
    .hexxxa-co-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .hexxxa-co-main,
    .hexxxa-co-summary {
        grid-column: 1;
        grid-row: auto;
    }

    .hexxxa-co-summary {
        position: static;
    }

    .hexxxa-co-summary-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 58px;
        padding: 12px 20px;
        margin: 0;
        background: var(--white);
        border: 0;
        border-radius: 0;
        color: var(--secondary-brown);
        font-family: "Roboto", Sans-serif;
        font-size: 15px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
    }

    .hexxxa-co-summary-toggle svg {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .hexxxa-co-summary-toggle-caret {
        width: 18px !important;
        height: 18px !important;
        transition: transform 0.2s ease;
    }

    .hexxxa-co-summary.is-open .hexxxa-co-summary-toggle-caret {
        transform: rotate(180deg);
    }

    .hexxxa-co-summary-total {
        margin-left: auto;
        color: var(--text-dark);
        font-family: "Oswald", Sans-serif;
        font-size: 20px;
        font-weight: 600;
        white-space: nowrap;
    }

    .hexxxa-co-summary-toggle:focus-visible {
        outline: 2px solid var(--secondary-brown);
        outline-offset: -2px;
    }

    .hexxxa-co-summary-body {
        display: none;
        padding: 4px 20px 22px;
        border-top: 1px solid var(--line);
    }

    .hexxxa-co-summary.is-open .hexxxa-co-summary-body {
        display: block;
    }

    .hexxxa-co-summary-head {
        margin-top: 18px;
    }
}

@media (max-width: 767px) {
    .hexxxa-shop-flow-inner {
        padding: 0 16px 120px; /* room above the fixed mobile tab bar */
    }

    .hexxxa-shop-flow--checkout .hexxxa-shop-flow-inner {
        padding: 12px 12px 40px;
    }

    /* Cart rows: thumb | name + remove / quantity + total */
    .hexxxa-shop-flow .hexxxa-cart-items tr.cart_item {
        grid-template-columns: 80px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb name remove"
            "thumb qty total";
        column-gap: 14px;
        row-gap: 12px;
        align-items: start;
        padding: 18px 0;
    }

    .hexxxa-shop-flow .hexxxa-cart-items .product-thumbnail img {
        width: 80px;
        max-width: 80px;
        height: 80px;
    }

    .hexxxa-cart-item-name {
        font-size: 17px;
    }

    .hexxxa-cart-items .product-quantity,
    .hexxxa-cart-items .product-subtotal {
        align-self: center;
    }

    .hexxxa-cart-items .product-remove {
        margin: -8px -8px 0 0;
    }

    .hexxxa-shop-flow .hexxxa-qty {
        width: 132px;
        height: 44px;
    }

    .hexxxa-qty-btn {
        flex-basis: 42px;
    }

    .hexxxa-cart-items .product-subtotal {
        font-size: 19px;
    }

    .hexxxa-cart-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .hexxxa-cart-coupon {
        flex: 0 0 auto;
        text-align: left;
    }

    .hexxxa-shop-flow .cart-collaterals .hexxxa-cart-summary {
        padding: 22px 18px;
    }

    .hexxxa-cart-summary-title,
    .hexxxa-co-title {
        font-size: 21px;
    }

    /* Checkout */
    .hexxxa-co-header-inner {
        padding: 12px 16px;
    }

    .hexxxa-co-header-logo img {
        height: 38px;
    }

    .hexxxa-co-header-back span {
        font-size: 14px;
    }

    .hexxxa-co-section {
        margin-bottom: 12px;
        padding: 22px 16px 24px;
    }

    .hexxxa-co-summary-toggle {
        padding: 12px 16px;
    }

    .hexxxa-co-summary-body {
        padding: 4px 16px 20px;
    }

    .hexxxa-co-fields > #billing_email_field,
    .hexxxa-co-fields > #billing_phone_field {
        grid-column: 1 / -1;
    }

    .hexxxa-shop-flow #payment .payment_box {
        padding: 0 14px 16px 14px;
    }

    .hexxxa-shop-flow .hexxxa-co-option .packeta-widget {
        padding: 0 14px 14px;
    }

    .hexxxa-shop-flow .hexxxa-co-options > li.hexxxa-co-option > label {
        padding: 15px 14px;
        font-size: 15px;
    }

    .hexxxa-co-option-icons {
        flex: 0 0 100%;
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 36px;
    }

    .hexxxa-co-option-icons img {
        max-width: 150px;
    }

    .hexxxa-co-pay-total strong {
        font-size: 26px;
    }

    .hexxxa-co-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px;
    }
}

@media (max-width: 359px) {
    .hexxxa-co-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .hexxxa-co-fields > * {
        grid-column: 1 / -1 !important;
    }

    .hexxxa-shop-flow .hexxxa-co-options > li.hexxxa-co-option > label {
        gap: 6px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hexxxa-cart-free-bar span,
    .hexxxa-cart-checkout-btn svg,
    .hexxxa-co-summary-toggle-caret {
        transition: none;
    }
}
