/* ── Header cart icon ─────────────────────────────────────────────────────── */
a.tcc-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
}
a.tcc-cart-link:hover {
    color: #fff !important;
    transform: scale(1.07);
}

.tcc-cart-svg {
    width: 30px;
    height: 30px;
    display: block;
}

.tcc-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #5f1221;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    transition: transform 0.2s ease;
}

.tcc-cart-count--empty {
    display: none;
}

.tcc-cart-link:hover .tcc-cart-svg {
    opacity: 0.8;
}

/* ── Ensure WooCommerce notices and their links are always on top and clickable */
.wc-block-components-notice-banner,
.woocommerce-notices-wrapper,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    position: relative;
    z-index: 200;
}

.wc-block-components-notice-banner a,
.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
    pointer-events: auto !important;
    position: relative;
    z-index: 201;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
    background-color: #5f1221 !important;
    border-radius: var(--tec-border-radius-default) !important;
    color: white !important;
    font-weight: 700 !important;
    transition: color 0.3s ease-in-out;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover,
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):focus {
    background-color: #7a1829 !important;
    color: white !important;
}

.woocommerce-customer-details {
    margin-top: 50px;
}

@media (max-width: 900px) {
    .tcc-cart-link {
        margin-left: 0px;
        margin-top: 50px;
    }
}