/* ===========================================
   HISTORICUM COMMERCE PAGES
   Cart · Checkout · My Account
   =========================================== */

/* -----------------------------------------
   0. BODY RESETS – Cart & Checkout
----------------------------------------- */
body.historicum-cart-page,
body.historicum-checkout-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #000000 !important;
    color: #ffffff;
    font-family: var(--h-font-cormorant);
}

body.historicum-cart-page *,
body.historicum-checkout-page * {
    box-sizing: border-box;
}

/* Hide Botiga default header/footer (custom ones loaded via template-parts) */
body.historicum-cart-page .site-header,
body.historicum-cart-page #masthead,
body.historicum-cart-page .site-footer,
body.historicum-cart-page #colophon,
body.historicum-checkout-page .site-header,
body.historicum-checkout-page #masthead,
body.historicum-checkout-page .site-footer,
body.historicum-checkout-page #colophon {
    display: none !important;
}

body.historicum-cart-page .entry-header,
body.historicum-cart-page .page-header,
body.historicum-checkout-page .entry-header,
body.historicum-checkout-page .page-header {
    display: none !important;
}


/* -----------------------------------------
   1. PAGE WRAPPER & STAGE
----------------------------------------- */
.h-page-wrapper.h-commerce-page {
    min-height: 100vh;
    overflow: visible;
    background: transparent;
}

.h-page-stage {
    background:
        radial-gradient(circle at 14% 0%, rgba(70, 54, 0, 0.34), transparent 32%),
        radial-gradient(circle at 18% 0%, rgba(20, 44, 30, 0.18), transparent 38%),
        linear-gradient(180deg, #050805 0%, #020302 58%, #050604 100%);
}


/* -----------------------------------------
   2. HERO – Shared Cart & Checkout
----------------------------------------- */
.h-page-hero.h-commerce-hero {
    position: relative;
    min-height: 340px;
    padding: 132px 40px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(90% 88% at 16% 0%, rgba(150, 112, 0, 0.28) 0%, rgba(42, 31, 0, 0.16) 34%, rgba(0, 0, 0, 0) 64%),
        linear-gradient(135deg, #151000 0%, #070704 35%, #000000 100%);
    text-align: center;
}

.h-page-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 16% 0%, rgba(235, 188, 0, 0.12), transparent 58%),
        linear-gradient(180deg, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0.78) 100%);
    pointer-events: none;
    z-index: 1;
}

.h-page-hero-content {
    position: relative;
    z-index: 2;
    width: min(1040px, 100%);
}

.h-page-title {
    margin: 0 0 20px;
    color: #ffffff;
    font-family: var(--h-font-cinzel);
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.03;
    text-transform: uppercase;
}

.h-page-subtitle {
    margin: 0;
    color: #f5f0e6;
    font-family: var(--h-font-cormorant);
    font-size: clamp(20px, 3vw, 28px);
    font-style: italic;
    line-height: 1.35;
}


/* -----------------------------------------
   3. PAPER SECTION – Torn Edges
----------------------------------------- */
.h-paper-section.h-commerce-paper-section {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: visible;
    isolation: isolate;
    background: #0a0a0a;
}

.h-paper-content.h-commerce-paper {
    position: relative;
    z-index: 2;
    background: var(--h-paper);
    color: #0a0a0a;
    padding: clamp(34px, 6vw, 80px);
    max-width: 100%;
    overflow: visible;
}

/* Paper grain texture */
.h-paper-content.h-commerce-paper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('https://historicum.pl/wp-content/uploads/2026/04/noise.png');
    background-repeat: repeat;
    background-size: 256px 256px;
    opacity: 0.055;
}

.h-paper-content.h-commerce-paper::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 35%,
        rgba(150, 120, 80, 0.18) 100%
    );
}

.h-paper-content.h-commerce-paper > * {
    position: relative;
    z-index: 1;
}

/* --- Torn edges (commerce pages) --- */
.h-commerce-paper-section > .h-torn-top,
.h-commerce-paper-section > .h-torn-bottom,
.h-paper-content.h-commerce-paper > .h-torn-top,
.h-paper-content.h-commerce-paper > .h-torn-bottom {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 4 !important;
    display: block !important;
    width: 100% !important;
    height: 62px !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transform: none !important;
    pointer-events: none;
}

.h-commerce-paper-section > .h-torn-top,
.h-paper-content.h-commerce-paper > .h-torn-top {
    top: -61px !important;
}

.h-commerce-paper-section > .h-torn-bottom,
.h-paper-content.h-commerce-paper > .h-torn-bottom {
    bottom: -61px !important;
}

.h-commerce-paper-section > .h-torn-top::before,
.h-commerce-paper-section > .h-torn-bottom::before,
.h-commerce-paper-section > .h-torn-top::after,
.h-commerce-paper-section > .h-torn-bottom::after,
.h-paper-content.h-commerce-paper > .h-torn-top::before,
.h-paper-content.h-commerce-paper > .h-torn-bottom::before,
.h-paper-content.h-commerce-paper > .h-torn-top::after,
.h-paper-content.h-commerce-paper > .h-torn-bottom::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--h-paper);
}

/* Clip-path fallback */
.h-commerce-paper-section > .h-torn-top::before,
.h-paper-content.h-commerce-paper > .h-torn-top::before {
    clip-path: polygon(0 70%, 5% 64%, 10% 72%, 16% 63%, 22% 71%, 29% 65%, 35% 73%, 42% 67%, 48% 75%, 55% 69%, 61% 76%, 68% 70%, 75% 77%, 82% 68%, 89% 74%, 95% 66%, 100% 72%, 100% 100%, 0 100%);
}

.h-commerce-paper-section > .h-torn-bottom::before,
.h-paper-content.h-commerce-paper > .h-torn-bottom::before {
    clip-path: polygon(0 70%, 5% 64%, 10% 72%, 16% 63%, 22% 71%, 29% 65%, 35% 73%, 42% 67%, 48% 75%, 55% 69%, 61% 76%, 68% 70%, 75% 77%, 82% 68%, 89% 74%, 95% 66%, 100% 72%, 100% 100%, 0 100%);
    transform: scaleY(-1);
    transform-origin: center;
}

.h-commerce-paper-section > .h-torn-top::after,
.h-commerce-paper-section > .h-torn-bottom::after,
.h-paper-content.h-commerce-paper > .h-torn-top::after,
.h-paper-content.h-commerce-paper > .h-torn-bottom::after {
    opacity: 0;
}

/* SVG mask upgrade */
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
    .h-commerce-paper-section > .h-torn-top::before,
    .h-commerce-paper-section > .h-torn-bottom::before,
    .h-paper-content.h-commerce-paper > .h-torn-top::before,
    .h-paper-content.h-commerce-paper > .h-torn-bottom::before {
        opacity: 0;
    }

    .h-commerce-paper-section > .h-torn-top::after,
    .h-commerce-paper-section > .h-torn-bottom::after,
    .h-paper-content.h-commerce-paper > .h-torn-top::after,
    .h-paper-content.h-commerce-paper > .h-torn-bottom::after {
        opacity: 1;
        -webkit-mask-image: url("https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg");
        -webkit-mask-size: 126% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-image: url("https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg");
        mask-size: 126% 100%;
        mask-repeat: no-repeat;
    }

    .h-commerce-paper-section > .h-torn-top::after,
    .h-paper-content.h-commerce-paper > .h-torn-top::after {
        -webkit-mask-position: 42% bottom;
        mask-position: 42% bottom;
    }

    .h-commerce-paper-section > .h-torn-bottom::after,
    .h-paper-content.h-commerce-paper > .h-torn-bottom::after {
        -webkit-mask-position: 58% top;
        mask-position: 58% top;
        transform: scaleY(-1);
        transform-origin: center;
    }
}


/* -----------------------------------------
   4. CART PAGE
----------------------------------------- */

/* --- Empty cart --- */
.h-cart-empty-panel {
    text-align: center;
    padding: clamp(60px, 10vw, 120px) clamp(24px, 4vw, 60px);
}

.h-cart-empty-icon {
    font-family: var(--h-font-cinzel);
    font-size: 72px;
    font-weight: 700;
    color: var(--h-accent);
    line-height: 1;
    margin-bottom: 24px;
}

.h-cart-empty-panel h2 {
    font-family: var(--h-font-cinzel);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0a0a0a;
    margin: 0 0 16px;
}

.h-cart-empty-panel p {
    font-family: var(--h-font-cormorant);
    font-size: clamp(18px, 2.4vw, 22px);
    color: #0a0a0a;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    body.historicum-cart-page .h-page-hero.h-commerce-hero {
        min-height: 260px;
        padding: 112px 18px 58px;
    }

    body.historicum-cart-page .h-commerce-paper-section {
        width: 100%;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
    }

    body.historicum-cart-page .h-paper-content.h-commerce-paper {
        width: 100%;
        padding-right: 18px;
        padding-left: 18px;
    }

    body.historicum-cart-page .h-cart-empty-panel {
        padding-top: 56px;
        padding-bottom: 68px;
    }
}

.h-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 15px 35px;
    border: 2px solid var(--h-accent);
    background: var(--h-accent);
    color: #0a0a0a !important;
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
}

.h-btn-gold:hover {
    transform: translateY(-2px);
    background: var(--h-accent-hover);
    border-color: var(--h-accent-hover);
}

.h-btn-dark-text {
    color: #0a0a0a !important;
}


/* --- Cart layout (two-column) --- */
.h-med-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Cart items column --- */
.h-med-cart-header {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) 100px 100px 120px 100px;
    gap: 16px;
    align-items: center;
    padding: 0 0 14px;
    border-bottom: 2px solid rgba(10, 10, 10, 0.12);
    margin-bottom: 4px;
}

.h-med-cart-header span {
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
}

.h-med-cart-item {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) 100px 100px 120px 100px;
    gap: 16px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.h-med-cart-product {
    display: flex;
    gap: 18px;
    align-items: center;
}

.h-med-cart-image {
    position: relative;
    display: block;
    width: 90px;
    min-width: 90px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(10, 10, 10, 0.1);
}

.h-med-cart-image img:not(.h-watermark) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-med-cart-image .h-watermark {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: auto;
    opacity: 0.25;
    pointer-events: none;
}

.h-med-cart-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.h-med-cart-name {
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.3;
}

.h-med-cart-name a {
    color: inherit;
    text-decoration: none;
}

.h-med-cart-name a:hover {
    color: var(--h-accent-hover);
}

.h-med-cart-meta {
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.h-med-cart-meta dt {
    font-weight: 700;
    display: inline;
}

.h-med-cart-meta dd {
    display: inline;
    margin: 0;
}

.h-med-cart-meta dd p {
    margin: 0;
    display: inline;
}

/* Wait badge */
.h-wait-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(10, 10, 10, 0.15);
    font-family: var(--h-font-cormorant);
    font-size: 13px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.h-wait-badge--in_stock {
    border-color: #2a7d3f;
    color: #1e6b30;
    background: rgba(42, 125, 63, 0.08);
}

.h-wait-badge--made_to_order {
    border-color: var(--h-accent);
    color: #8a6d00;
    background: rgba(235, 188, 0, 0.08);
}

.h-med-cart-price,
.h-med-cart-total {
    font-family: var(--h-font-cinzel);
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
}

.h-med-cart-qty {
    display: flex;
    align-items: center;
}

.h-med-cart-qty .quantity {
    display: flex;
    align-items: center;
    border: 1px solid rgba(10, 10, 10, 0.2);
}

.h-med-cart-qty .quantity input[type="number"] {
    width: 52px;
    height: 38px;
    text-align: center;
    border: none;
    background: #fffaf0;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    color: #0a0a0a;
    -moz-appearance: textfield;
}

.h-med-cart-qty .quantity input[type="number"]::-webkit-inner-spin-button,
.h-med-cart-qty .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.h-med-cart-remove {
    text-align: center;
}

.h-cart-remove {
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.h-cart-remove:hover {
    color: #c0392b;
}

/* --- Cart actions row --- */
.h-med-cart-actions {
    display: flex;
    gap: 14px;
    padding-top: 24px;
    flex-wrap: wrap;
}

.h-med-cart-actions .h-btn {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 12px;
}

.h-med-cart-actions .h-btn-outline {
    border: 2px solid #0a0a0a;
    color: #0a0a0a;
    background: transparent;
}

.h-med-cart-actions .h-btn-outline:hover,
.h-med-cart-actions .h-btn-outline:focus-visible {
    background: #0a0a0a;
    color: var(--h-accent) !important;
}

/* --- Order summary sidebar (Cart) --- */
.h-med-order-summary {
    position: sticky;
    top: 100px;
    padding: 32px;
    border: 1px solid rgba(10, 10, 10, 0.12);
    background: rgba(255, 255, 255, 0.5);
}

.h-med-order-summary h2 {
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0a0a0a;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(10, 10, 10, 0.1);
}

.h-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 10px 0;
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: #0a0a0a;
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.h-summary-row span {
    flex: 0 0 auto;
    color: #555;
}

.h-summary-row strong {
    flex: 1 1 auto;
    font-family: var(--h-font-cinzel);
    font-size: 15px;
    text-align: right;
}

.h-summary-row-stack {
    flex-direction: column;
    gap: 6px;
}

.h-summary-total {
    padding: 16px 0;
    margin-top: 8px;
    border-top: 2px solid rgba(10, 10, 10, 0.15);
    border-bottom: none;
}

.h-summary-total span {
    font-family: var(--h-font-cinzel);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0a0a0a;
}

.h-summary-total strong {
    font-size: 22px;
    color: var(--h-accent-hover);
}

/* --- Coupon form --- */
.h-coupon-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 20px;
}

.h-coupon-form input[type="text"] {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(10, 10, 10, 0.2);
    background: #fffaf0;
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    color: #0a0a0a;
}

.h-coupon-form input::placeholder {
    color: #999;
}

.h-coupon-form button {
    min-height: 44px;
    padding: 0 20px;
    border: 2px solid #0a0a0a;
    background: transparent;
    color: #0a0a0a;
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.h-coupon-form button:hover {
    background: #0a0a0a;
    color: var(--h-paper);
}

/* --- Workshop info box --- */
.h-workshop-info {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    background: rgba(235, 188, 0, 0.05);
}

.h-workshop-info strong {
    display: block;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0a0a0a;
    margin-bottom: 6px;
}

.h-workshop-info p {
    margin: 0;
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* --- Proceed to checkout button --- */
.h-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    border: 2px solid var(--h-accent);
    background: var(--h-accent);
    color: #0a0a0a !important;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
}

.h-checkout-btn:hover {
    transform: translateY(-2px);
    background: var(--h-accent-hover);
    border-color: var(--h-accent-hover);
}

/* --- Shipping row: WooCommerce shipping options --- */
.h-summary-row .woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.h-summary-row .woocommerce-shipping-methods li {
    margin-bottom: 6px;
    font-family: var(--h-font-cormorant);
    font-size: 15px;
}

.h-summary-row .woocommerce-shipping-methods label {
    cursor: pointer;
}


/* -----------------------------------------
   5. RECOMMENDATIONS SECTION (Cart)
----------------------------------------- */
.h-commerce-recommendations {
    position: relative;
    overflow: visible;
}

.h-commerce-recommendations .h-paper-content {
    padding: clamp(40px, 6vw, 80px);
}

.h-paper-title {
    font-family: var(--h-font-cinzel);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    color: #0a0a0a;
    margin: 0 0 40px;
}

.h-commerce-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.h-commerce-rec-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #0a0a0a;
    border: 1px solid rgba(10, 10, 10, 0.1);
    transition: transform 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.h-commerce-rec-card:hover {
    transform: translateY(-4px);
    border-color: var(--h-accent);
}

.h-commerce-rec-image {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0ebe0;
}

.h-commerce-rec-image img:not(.h-watermark) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-commerce-rec-image .h-watermark {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px;
    opacity: 0.2;
    pointer-events: none;
}

.h-commerce-rec-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
}

.h-commerce-rec-copy strong {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.h-commerce-rec-copy em {
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-style: normal;
    color: var(--h-accent-hover);
}


/* -----------------------------------------
   6. CHECKOUT PAGE
----------------------------------------- */

/* --- Checkout heading & breadcrumb --- */
.h-checkout-heading-row {
    text-align: center;
    margin-bottom: 8px;
}

.h-checkout-main-title {
    font-family: var(--h-font-cinzel);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #0a0a0a;
    margin: 0;
}

.h-checkout-topline {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 0 32px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    margin-bottom: 40px;
}

.h-checkout-topline a,
.h-checkout-topline span {
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.h-checkout-topline a:hover {
    color: var(--h-accent-hover);
}

/* Active step */
.h-checkout-topline .h-progress-step.is-active {
    color: #0a0a0a;
    border-bottom: 2px solid var(--h-accent);
    padding-bottom: 4px;
}

/* --- Checkout two-column layout --- */
.h-med-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 48px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Checkout form panels --- */
.h-med-checkout-forms {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.h-checkout-panel {
    padding: 28px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    background: rgba(255, 255, 255, 0.4);
}

.h-checkout-panel-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.h-checkout-panel-head span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--h-accent);
    background: var(--h-accent);
    color: #0a0a0a;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.h-checkout-panel-head h2 {
    font-family: var(--h-font-cinzel);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0a0a0a;
    margin: 0;
}

/* --- WooCommerce form fields inside checkout --- */
.h-med-checkout-form .woocommerce-billing-fields,
.h-med-checkout-form .woocommerce-shipping-fields,
.h-med-checkout-form .woocommerce-additional-fields {
    margin: 0;
}

.h-med-checkout-form .woocommerce-billing-fields h3,
.h-med-checkout-form .woocommerce-shipping-fields h3 {
    display: none;
}

.h-med-checkout-form .form-row {
    margin-bottom: 14px;
}

.h-med-checkout-form label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #555;
}

.h-med-checkout-form .form-row .required {
    color: var(--h-accent-hover);
}

.h-med-checkout-form input.input-text,
.h-med-checkout-form textarea,
.h-med-checkout-form select,
.h-med-checkout-form .select2-container .select2-selection {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(10, 10, 10, 0.2);
    background: #fffaf0;
    color: #0a0a0a;
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    transition: border-color 0.2s;
}

.h-med-checkout-form input.input-text:focus,
.h-med-checkout-form textarea:focus,
.h-med-checkout-form select:focus {
    outline: none;
    border-color: var(--h-accent);
}

.h-med-checkout-form .woocommerce-input-wrapper {
    width: 100%;
}

/* Select2 overrides */
.h-med-checkout-form .select2-container--default .select2-selection--single {
    height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(10, 10, 10, 0.2);
    background: #fffaf0;
}

.h-med-checkout-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: #0a0a0a;
}

/* Ship to different address checkbox */
.h-med-checkout-form #ship-to-different-address {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.h-med-checkout-form #ship-to-different-address label {
    margin: 0;
    cursor: pointer;
}

/* --- Checkout order summary sidebar --- */
.h-checkout-summary-panel {
    position: sticky;
    top: 100px;
    padding: 32px;
    border: 1px solid rgba(10, 10, 10, 0.12);
    background: rgba(255, 255, 255, 0.5);
}

.h-checkout-summary-panel h2 {
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0a0a0a;
    margin: 0 0 8px;
}

.h-checkout-summary-panel > p {
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    font-style: italic;
    color: #777;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

/* Order review table */
.h-checkout-review-order .shop_table {
    width: 100%;
    border-collapse: collapse;
}

.h-checkout-review-order .shop_table thead th {
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    text-align: left;
}

.h-checkout-review-order .shop_table thead th:last-child {
    text-align: right;
}

.h-checkout-review-order .shop_table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    color: #0a0a0a;
    vertical-align: top;
}

.h-checkout-review-order .shop_table td:last-child {
    text-align: right;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
}

.h-checkout-review-order .shop_table .product-name .product-quantity {
    color: #888;
}

.h-checkout-review-order .shop_table .cart-subtotal td,
.h-checkout-review-order .shop_table .shipping td,
.h-checkout-review-order .shop_table .tax-rate td,
.h-checkout-review-order .shop_table .tax-total td,
.h-checkout-review-order .shop_table .fee td {
    font-family: var(--h-font-cinzel);
    font-size: 14px;
}

.h-checkout-review-order .shop_table .order-total th,
.h-checkout-review-order .shop_table .order-total td {
    padding-top: 16px;
    border-top: 2px solid rgba(10, 10, 10, 0.15);
    font-family: var(--h-font-cinzel);
    font-weight: 700;
}

.h-checkout-review-order .shop_table .order-total td {
    font-size: 20px;
    color: var(--h-accent-hover);
}

/* Payment methods */
.h-checkout-review-order .wc_payment_methods {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.h-checkout-review-order .wc_payment_method {
    padding: 14px;
    margin-bottom: 8px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    background: rgba(255, 255, 255, 0.3);
}

.h-checkout-review-order .wc_payment_method label {
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #0a0a0a;
    cursor: pointer;
}

.h-checkout-review-order .wc_payment_method .payment_box {
    margin-top: 10px;
    padding: 12px;
    background: rgba(10, 10, 10, 0.03);
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Place order button */
.h-checkout-review-order #place_order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    border: 2px solid var(--h-accent);
    background: var(--h-accent);
    color: #0a0a0a;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.h-checkout-review-order #place_order:hover {
    transform: translateY(-2px);
    background: var(--h-accent-hover);
    border-color: var(--h-accent-hover);
}

/* Privacy & terms */
.h-checkout-review-order .woocommerce-terms-and-conditions-wrapper {
    margin-top: 16px;
    font-family: var(--h-font-cormorant);
    font-size: 14px;
    color: #666;
}

.h-checkout-review-order .woocommerce-terms-and-conditions-wrapper a {
    color: var(--h-accent-hover);
}

/* Coupon form on checkout (WooCommerce login/coupon toggles) */
.h-checkout-paper .woocommerce-form-coupon-toggle,
.h-checkout-paper .woocommerce-form-login-toggle {
    margin-bottom: 20px;
}

.h-checkout-paper .woocommerce-info {
    padding: 14px 20px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    background: rgba(235, 188, 0, 0.06);
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    color: #555;
}

.h-checkout-paper .woocommerce-info a {
    color: var(--h-accent-hover);
    font-weight: 700;
}

.h-checkout-paper .checkout_coupon,
.h-checkout-paper .woocommerce-form-login {
    padding: 20px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
}

.h-checkout-paper .checkout_coupon input,
.h-checkout-paper .woocommerce-form-login input[type="text"],
.h-checkout-paper .woocommerce-form-login input[type="password"],
.h-checkout-paper .woocommerce-form-login input[type="email"] {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(10, 10, 10, 0.2);
    background: #fffaf0;
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    color: #0a0a0a;
}

.h-checkout-paper .checkout_coupon button,
.h-checkout-paper .woocommerce-form-login button {
    min-height: 44px;
    padding: 10px 24px;
    border: 2px solid var(--h-accent);
    background: var(--h-accent);
    color: #0a0a0a;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}


/* -----------------------------------------
   7. WOOCOMMERCE NOTICES (Cart & Checkout)
----------------------------------------- */
.h-commerce-paper .woocommerce-error,
.h-commerce-paper .woocommerce-message,
.h-commerce-paper .woocommerce-info {
    padding: 14px 20px;
    margin-bottom: 20px;
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    color: #0a0a0a;
    border: 1px solid rgba(10, 10, 10, 0.1);
    list-style: none;
}

.h-commerce-paper .woocommerce-error {
    border-left: 3px solid #c0392b;
    background: rgba(192, 57, 43, 0.06);
}

.h-commerce-paper .woocommerce-message {
    border-left: 3px solid #27ae60;
    background: rgba(39, 174, 96, 0.06);
}

.h-commerce-paper .woocommerce-error li,
.h-commerce-paper .woocommerce-message li {
    list-style: none;
}

.h-commerce-paper .woocommerce-error a,
.h-commerce-paper .woocommerce-message a {
    color: var(--h-accent-hover);
    font-weight: 700;
}


/* -----------------------------------------
   8. MY ACCOUNT – Enhanced Styles
   Builds on reference-pages.css defaults
----------------------------------------- */

/* Orders table */
body.woocommerce-account .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

body.woocommerce-account .woocommerce-orders-table th {
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    padding: 12px 10px;
    border-bottom: 2px solid rgba(10, 10, 10, 0.12);
    text-align: left;
}

body.woocommerce-account .woocommerce-orders-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    color: #0a0a0a;
    vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #0a0a0a;
    font-family: var(--h-font-cinzel);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0a0a0a;
    text-decoration: none;
    transition: all 0.2s;
}

body.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    background: var(--h-accent);
    border-color: var(--h-accent);
}

/* No orders message */
body.woocommerce-account .woocommerce-message--info,
body.woocommerce-account .woocommerce-Message--info {
    padding: 32px;
    text-align: center;
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    color: #555;
}

body.woocommerce-account .woocommerce-Message .woocommerce-Button,
body.woocommerce-account .woocommerce-info .woocommerce-Button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 16px;
    padding: 12px 28px;
    border: 2px solid var(--h-accent) !important;
    background: var(--h-accent) !important;
    color: #0a0a0a !important;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Addresses on account */
body.woocommerce-account .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

body.woocommerce-account .woocommerce-Address {
    padding: 24px;
    border: 1px solid rgba(10, 10, 10, 0.12);
    background: rgba(255, 255, 255, 0.4);
}

body.woocommerce-account .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

body.woocommerce-account .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 14px;
}

body.woocommerce-account .woocommerce-Address-title a {
    font-family: var(--h-font-cinzel);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--h-accent-hover) !important;
    text-decoration: none;
}

body.woocommerce-account .woocommerce-Address address {
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    font-style: normal;
    color: #444;
    line-height: 1.6;
}

/* Order detail page */
body.woocommerce-account .woocommerce-order-details .shop_table {
    width: 100%;
    border-collapse: collapse;
}

body.woocommerce-account .woocommerce-order-details .shop_table th {
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    padding: 10px;
    border-bottom: 2px solid rgba(10, 10, 10, 0.12);
    text-align: left;
}

body.woocommerce-account .woocommerce-order-details .shop_table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    color: #0a0a0a;
}

body.woocommerce-account .woocommerce-order-details .shop_table tfoot th,
body.woocommerce-account .woocommerce-order-details .shop_table tfoot td {
    padding: 10px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

/* Login / Register forms on account page */
body.woocommerce-account .woocommerce form.login h2,
body.woocommerce-account .woocommerce form.register h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

body.woocommerce-account .woocommerce form.login label,
body.woocommerce-account .woocommerce form.register label {
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #555;
}

body.woocommerce-account .u-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
}

/* Dashboard greeting */
body.woocommerce-account .woocommerce-MyAccount-content p {
    font-family: var(--h-font-cormorant);
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

body.woocommerce-account .woocommerce-MyAccount-content p a {
    color: var(--h-accent-hover);
    font-weight: 700;
    text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-content p a:hover {
    text-decoration: underline;
}

/* Downloads table */
body.woocommerce-account .woocommerce-table--order-downloads {
    width: 100%;
    border-collapse: collapse;
}

body.woocommerce-account .woocommerce-table--order-downloads th {
    font-family: var(--h-font-cinzel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    padding: 12px 10px;
    border-bottom: 2px solid rgba(10, 10, 10, 0.12);
}

body.woocommerce-account .woocommerce-table--order-downloads td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
    font-family: var(--h-font-cormorant);
    font-size: 15px;
}

/* Edit account form */
body.woocommerce-account .woocommerce-EditAccountForm fieldset {
    border: 1px solid rgba(10, 10, 10, 0.1);
    padding: 20px;
    margin-top: 20px;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0a0a0a;
    padding: 0 8px;
}


/* -----------------------------------------
   9. RESPONSIVE – COMMERCE PAGES
----------------------------------------- */

/* Tablet */
@media (max-width: 1100px) {
    .h-med-cart-layout {
        grid-template-columns: 1fr;
    }

    .h-med-checkout-layout {
        grid-template-columns: 1fr;
    }

    .h-med-order-summary,
    .h-checkout-summary-panel {
        position: static;
    }
}

/* Cart item grid collapses to stacked on tablet */
@media (max-width: 900px) {
    .h-med-cart-header {
        display: none;
    }

    .h-med-cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 0;
    }

    .h-med-cart-product {
        gap: 14px;
    }

    .h-med-cart-wait,
    .h-med-cart-price,
    .h-med-cart-qty,
    .h-med-cart-total,
    .h-med-cart-remove {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
    }

    .h-med-cart-wait::before,
    .h-med-cart-price::before,
    .h-med-cart-qty::before,
    .h-med-cart-total::before {
        content: attr(data-label);
        font-family: var(--h-font-cinzel);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #888;
    }

    .h-med-cart-remove {
        text-align: right;
        justify-content: flex-end;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .h-page-hero.h-commerce-hero {
        min-height: 260px;
        padding: 104px 20px 60px;
    }

    .h-paper-content.h-commerce-paper {
        padding: 28px 16px;
    }

    .h-med-cart-image {
        width: 72px;
        min-width: 72px;
    }

    .h-med-order-summary,
    .h-checkout-summary-panel {
        padding: 24px 16px;
    }

    .h-checkout-topline {
        gap: 18px;
    }

    .h-checkout-panel {
        padding: 20px 16px;
    }

    .h-commerce-rec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    /* Account addresses */
    body.woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    body.woocommerce-account .u-columns {
        grid-template-columns: 1fr !important;
    }
}

/* Empty cart mobile contract: the hero stays dark, the paper stays readable,
   and the section never uses 100vw offsets that create a right-side stroke. */
@media (max-width: 767px) {
    body.historicum-cart-page,
    body.historicum-cart-page .h-cart-page-shell,
    body.historicum-cart-page .h-commerce-page {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        background: #000000 !important;
    }

    body.historicum-cart-page .h-page-hero.h-commerce-hero {
        min-height: 264px !important;
        padding: 112px 18px 60px !important;
        background:
            radial-gradient(92% 92% at 15% 0%, rgba(235, 188, 0, 0.24) 0%, rgba(60, 44, 0, 0.15) 36%, rgba(0, 0, 0, 0) 66%),
            linear-gradient(135deg, #151000 0%, #070704 38%, #000000 100%) !important;
    }

    body.historicum-cart-page .h-page-hero-content {
        color: #ffffff !important;
    }

    body.historicum-cart-page .h-page-title {
        color: #ffffff !important;
    }

    body.historicum-cart-page .h-page-subtitle {
        color: rgba(255, 255, 255, 0.84) !important;
    }

    body.historicum-cart-page .h-commerce-paper-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        overflow: visible !important;
        background: #000000 !important;
    }

    body.historicum-cart-page .h-paper-content.h-commerce-paper,
    body.historicum-cart-page .h-cart-empty-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 18px !important;
        padding-left: 18px !important;
        color: #0a0a0a !important;
        background: var(--h-paper) !important;
    }

    body.historicum-cart-page .h-cart-empty-panel h2,
    body.historicum-cart-page .h-cart-empty-panel p {
        color: #0a0a0a !important;
    }
}

@media (max-width: 767px) {
    body.historicum-cart-page .h-cart-empty-panel h2,
    body.historicum-cart-page .h-cart-empty-panel .h-cart-empty-title {
        font-size: clamp(17px, 4.6vw, 22px) !important;
        line-height: 1.15 !important;
        letter-spacing: 0.04em !important;
    }
}

/* -----------------------------------------
   10. PURCHASE FLOW AUDIT IMPLEMENTATION
----------------------------------------- */
body.historicum-checkout-page .h-checkout-paper-section {
    margin-top: clamp(118px, 10vw, 150px);
    margin-bottom: 0;
}

body.historicum-checkout-page .h-checkout-flow-paper {
    padding: clamp(34px, 4.8vw, 72px) clamp(20px, 4vw, 58px) !important;
}

body.historicum-checkout-page .h-checkout-heading-row,
body.historicum-checkout-page .h-checkout-topline,
body.historicum-checkout-page .h-checkout-coupon-details,
body.historicum-checkout-page .h-med-checkout-form,
body.historicum-checkout-page .h-checkout-endpoint-content {
    width: 100% !important;
    max-width: 1360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
}

body.historicum-cart-page .h-commerce-notices:empty,
body.historicum-checkout-page .h-commerce-notices:empty {
    display: none;
}

body.historicum-cart-page .h-commerce-notices,
body.historicum-checkout-page .h-commerce-notices {
    width: min(1360px, 100%);
    margin: 0 auto 22px;
}

body.historicum-cart-page .h-commerce-paper .woocommerce-error,
body.historicum-cart-page .h-commerce-paper .woocommerce-message,
body.historicum-cart-page .h-commerce-paper .woocommerce-info,
body.historicum-checkout-page .h-commerce-paper .woocommerce-error,
body.historicum-checkout-page .h-commerce-paper .woocommerce-message,
body.historicum-checkout-page .h-commerce-paper .woocommerce-info {
    border: 0.3px solid #111111 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.28) !important;
    color: #111111 !important;
    box-shadow: none !important;
}

body.historicum-cart-page .h-commerce-paper .woocommerce-error,
body.historicum-checkout-page .h-commerce-paper .woocommerce-error {
    border-left: 3px solid #b8322a !important;
}

body.historicum-cart-page .h-commerce-paper .woocommerce-message,
body.historicum-checkout-page .h-commerce-paper .woocommerce-message {
    border-left: 3px solid #2f7d3d !important;
}

body.historicum-cart-page .h-commerce-progress .h-progress-step-received::before,
body.historicum-checkout-page .h-commerce-progress .h-progress-step-received::before {
    content: "4" !important;
}

body.historicum-cart-page .h-commerce-progress .h-progress-step.is-complete,
body.historicum-checkout-page .h-commerce-progress .h-progress-step.is-complete {
    opacity: 0.86 !important;
}

body.historicum-cart-page .h-commerce-progress .h-progress-step.is-complete::before,
body.historicum-checkout-page .h-commerce-progress .h-progress-step.is-complete::before {
    border-color: #111111 !important;
    background: #111111 !important;
    color: var(--h-paper) !important;
}

body.historicum-cart-page .h-commerce-paper > .h-cart-progress {
    margin-top: 0 !important;
}

body.historicum-cart-page .h-med-cart-items,
body.historicum-cart-page .h-med-order-summary,
body.historicum-cart-page .h-commerce-rec-card,
body.historicum-checkout-page .h-checkout-panel,
body.historicum-checkout-page .h-checkout-summary-panel,
body.historicum-checkout-page .h-order-received-card,
body.historicum-checkout-page .h-order-received-overview li,
body.historicum-checkout-page .h-order-bank-account {
    border: 0.3px solid #111111 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 4px 4px 8px -1px rgba(0, 0, 0, 0.18) !important;
}

body.historicum-cart-page .h-med-cart-items,
body.historicum-cart-page .h-med-order-summary {
    background: rgba(255, 255, 255, 0.22) !important;
}

body.historicum-cart-page .h-cart-coupon-details {
    margin-top: 20px;
}

body.historicum-cart-page .h-cart-coupon-details summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 0.3px solid #111111;
    border-radius: 8px;
    background: var(--h-paper);
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

body.historicum-cart-page .h-cart-coupon-details summary::-webkit-details-marker {
    display: none;
}

body.historicum-cart-page .h-cart-coupon-details summary::after {
    content: "+";
    font-size: 18px;
    line-height: 1;
}

body.historicum-cart-page .h-cart-coupon-details[open] summary::after {
    content: "-";
}

body.historicum-cart-page .h-cart-coupon-details .h-coupon-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}

body.historicum-cart-page .h-cart-coupon-details .h-coupon-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    border: 0.3px solid #111111;
    border-radius: 999px;
    background: var(--h-paper);
}

body.historicum-cart-page .h-cart-coupon-details .h-coupon-form button {
    flex: 0 0 auto;
    min-height: 46px;
    margin-left: 0;
    border: 0.3px solid #111111;
    border-radius: 999px;
    background: var(--h-accent);
    color: #111111;
}

body.historicum-cart-page .h-shipping-info,
body.historicum-cart-page .h-workshop-info {
    margin-top: 18px;
    padding: 16px;
    border: 0.3px solid #111111;
    border-radius: 8px;
    background: rgba(235, 188, 0, 0.09);
}

body.historicum-cart-page .h-shipping-info strong,
body.historicum-cart-page .h-workshop-info strong {
    display: block;
    margin-bottom: 6px;
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.historicum-cart-page .h-shipping-info p,
body.historicum-cart-page .h-workshop-info p {
    margin: 0;
    color: #111111;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif));
    font-size: clamp(16px, 1.05vw, 18px);
    font-weight: 500;
    line-height: 1.55;
}

body.historicum-cart-page .is-cart-dirty button[name="update_cart"] {
    border-color: var(--h-accent) !important;
    background: rgba(235, 188, 0, 0.14) !important;
}

body.historicum-cart-page .is-cart-updating {
    cursor: progress;
}

body.historicum-cart-page .is-cart-updating .h-med-order-summary {
    position: relative;
}

body.historicum-cart-page .is-cart-updating .h-med-order-summary::after {
    content: "Updating totals...";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(245, 240, 230, 0.84);
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.historicum-checkout-page .h-checkout-review-order .blockUI.blockOverlay,
body.historicum-checkout-page .h-checkout-summary-panel .blockUI.blockOverlay,
body.historicum-checkout-page .h-checkout-summary-panel .blockOverlay,
body.woocommerce-checkout #order_review .blockUI.blockOverlay,
body.woocommerce-checkout #order_review .blockOverlay,
body.woocommerce-checkout .woocommerce-checkout-review-order .blockUI.blockOverlay,
body.woocommerce-checkout .woocommerce-checkout-review-order .blockOverlay {
    background: rgba(245, 240, 230, 0.78) !important;
    opacity: 1 !important;
}

body.historicum-checkout-page.h-checkout-is-processing .h-checkout-review-order {
    position: relative;
}

body.historicum-checkout-page.h-checkout-is-processing .h-checkout-review-order::after {
    content: "Processing order...";
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(245, 240, 230, 0.84);
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

body.historicum-checkout-page .h-checkout-review-order #place_order,
body.historicum-cart-page .h-checkout-btn,
body.historicum-checkout-page .h-order-received-actions .h-order-primary-action {
    width: 100% !important;
    min-height: 54px !important;
    border: 1px solid var(--h-accent) !important;
    border-radius: 8px !important;
    background: var(--h-accent) !important;
    color: #111111 !important;
    box-shadow: none !important;
}

body.historicum-checkout-page .h-order-received-actions .h-order-secondary-action {
    border-radius: 8px !important;
}

body.historicum-cart-page .h-checkout-btn:hover,
body.historicum-cart-page .h-checkout-btn:focus-visible,
body.historicum-checkout-page .h-checkout-review-order #place_order:hover,
body.historicum-checkout-page .h-checkout-review-order #place_order:focus-visible,
body.historicum-checkout-page .h-order-received-actions .h-order-primary-action:hover,
body.historicum-checkout-page .h-order-received-actions .h-order-primary-action:focus-visible {
    background: #f0c62d !important;
    border-color: #f0c62d !important;
    transform: translateY(-1px);
}

body.historicum-checkout-page .h-checkout-review-order .woocommerce-terms-and-conditions-wrapper,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-terms-and-conditions-wrapper .form-row,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-terms-and-conditions-wrapper label,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-privacy-policy-text,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-privacy-policy-text p {
    width: 100% !important;
    max-width: 100% !important;
    color: #3d3528 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-order-bank-account dd {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

body.historicum-checkout-page .h-order-bank-account dd span {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.historicum-checkout-page .h-copy-bank-detail {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 10px;
    border: 0.3px solid #111111;
    border-radius: 999px;
    background: transparent;
    color: #111111;
    font-family: var(--h-font-cinzel);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

body.historicum-checkout-page .h-copy-bank-detail.is-copied {
    background: rgba(47, 125, 61, 0.14);
}

body.historicum-checkout-page .h-copy-bank-detail.is-copy-failed {
    background: rgba(235, 188, 0, 0.14);
}

body.historicum-cart-page .h-commerce-rec-empty {
    max-width: 620px;
    margin: 0 auto;
    color: #3d3528;
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

body.historicum-cart-page a:focus-visible,
body.historicum-cart-page button:focus-visible,
body.historicum-cart-page input:focus-visible,
body.historicum-checkout-page a:focus-visible,
body.historicum-checkout-page button:focus-visible,
body.historicum-checkout-page input:focus-visible,
body.historicum-checkout-page select:focus-visible,
body.historicum-checkout-page textarea:focus-visible {
    outline: 3px solid rgba(235, 188, 0, 0.42) !important;
    outline-offset: 3px !important;
}

@media (max-width: 1180px) {
    body.historicum-checkout-page .h-checkout-heading-row,
    body.historicum-checkout-page .h-checkout-topline,
    body.historicum-checkout-page .h-checkout-coupon-details,
    body.historicum-checkout-page .h-med-checkout-form,
    body.historicum-checkout-page .h-checkout-endpoint-content {
        max-width: 760px !important;
    }
}

@media (max-width: 820px) {
    body.historicum-cart-page .h-med-cart-item {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 18px 0 !important;
    }

    body.historicum-cart-page .h-med-cart-product {
        display: flex !important;
        gap: 14px !important;
        align-items: center !important;
    }

    body.historicum-cart-page .h-med-cart-image {
        width: 76px !important;
        min-width: 76px !important;
    }

    body.historicum-cart-page .h-med-cart-wait-desktop {
        display: none !important;
    }

    body.historicum-cart-page .h-med-cart-wait-mobile {
        display: block !important;
    }

    body.historicum-cart-page .h-med-cart-price,
    body.historicum-cart-page .h-med-cart-qty,
    body.historicum-cart-page .h-med-cart-total,
    body.historicum-cart-page .h-med-cart-remove {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-width: 0 !important;
        padding: 6px 0 !important;
    }

    body.historicum-cart-page .h-med-cart-price::before,
    body.historicum-cart-page .h-med-cart-qty::before,
    body.historicum-cart-page .h-med-cart-total::before {
        content: attr(data-label) !important;
        color: #5f5548 !important;
        font-family: var(--h-font-cinzel) !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
    }

    body.historicum-cart-page .h-med-cart-remove {
        justify-content: flex-end !important;
    }

    body.historicum-cart-page .h-cart-remove {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 10px 12px !important;
        border: 0.3px solid #111111 !important;
        border-radius: 999px !important;
        color: #111111 !important;
    }

    body.historicum-cart-page .h-cart-remove::before {
        content: none !important;
    }
}

@media (max-width: 640px) {
    body.historicum-checkout-page .h-checkout-paper-section {
        margin-top: 104px;
    }

    body.historicum-checkout-page .h-order-received-hero h2 {
        font-size: clamp(28px, 8.2vw, 40px) !important;
    }

    body.historicum-checkout-page .h-commerce-progress,
    body.historicum-cart-page .h-commerce-progress {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.historicum-cart-page .h-cart-coupon-details .h-coupon-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.historicum-cart-page .h-cart-coupon-details .h-coupon-form input[type="text"],
    body.historicum-cart-page .h-cart-coupon-details .h-coupon-form button {
        border: 0.3px solid #111111;
        border-radius: 999px;
    }

body.historicum-checkout-page .h-order-bank-account dd {
    align-items: flex-start !important;
    flex-direction: column !important;
    }
}

/* -----------------------------------------
   11. PURCHASE FLOW VISUAL CORRECTIONS
----------------------------------------- */
body.historicum-cart-page,
body.historicum-checkout-page,
body.woocommerce-checkout {
    background-color: #000000 !important;
    background-image:
        radial-gradient(82% 74% at 0% 0%, rgba(235, 188, 0, 0.24) 0%, rgba(126, 92, 0, 0.11) 34%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(180deg, #090600 0%, #050301 48%, #000000 100%) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
}

body.historicum-cart-page .h-page-stage,
body.historicum-checkout-page .h-page-stage,
body.woocommerce-checkout .h-page-stage {
    background:
        radial-gradient(82% 74% at 0% 0%, rgba(235, 188, 0, 0.24) 0%, rgba(126, 92, 0, 0.11) 34%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(180deg, #090600 0%, #050301 48%, #000000 100%) !important;
}

body.historicum-checkout-page .h-checkout-paper-section {
    position: relative !important;
    margin-top: 62px !important;
    margin-bottom: 86px !important;
    overflow: visible !important;
    background: transparent !important;
}

body.historicum-checkout-page.woocommerce-order-received .h-checkout-paper-section,
body.woocommerce-order-received .h-checkout-paper-section {
    margin-top: 62px !important;
}

body.historicum-checkout-page .h-checkout-flow-paper > .h-torn-top,
body.historicum-checkout-page.woocommerce-order-received .h-checkout-flow-paper > .h-torn-top,
body.woocommerce-order-received .h-checkout-flow-paper > .h-torn-top {
    top: -61px !important;
}

body.historicum-checkout-page .h-checkout-flow-paper > .h-torn-top,
body.historicum-checkout-page .h-checkout-flow-paper > .h-torn-bottom {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.historicum-checkout-page .h-checkout-flow-paper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
    background: var(--h-paper) !important;
}

body.historicum-checkout-page .h-checkout-heading-row,
body.historicum-checkout-page .h-checkout-topline,
body.historicum-checkout-page .h-checkout-coupon-details,
body.historicum-checkout-page .h-checkout-before-customer-details,
body.historicum-checkout-page .h-med-checkout-form,
body.historicum-checkout-page .h-checkout-endpoint-content {
    width: min(1360px, 100%) !important;
    max-width: 1360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.historicum-checkout-page .h-checkout-before-customer-details:empty {
    display: none !important;
}

body.historicum-checkout-page .h-checkout-before-customer-details {
    margin: 0 auto 18px !important;
}

body.historicum-checkout-page .h-med-checkout-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
    gap: clamp(24px, 3vw, 40px) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
}

body.historicum-checkout-page .h-med-checkout-layout > .h-med-checkout-forms,
body.historicum-checkout-page .h-med-checkout-layout > .h-checkout-summary-panel {
    align-self: start !important;
    margin-top: 0 !important;
}

body.historicum-checkout-page .h-med-checkout-forms > .h-checkout-billing {
    margin-top: 0 !important;
}

body.historicum-checkout-page .h-med-checkout-forms,
body.historicum-checkout-page .h-checkout-panel,
body.historicum-checkout-page .checkout-wrapper,
body.historicum-checkout-page .h-checkout-summary-panel,
body.historicum-checkout-page .h-checkout-review-order,
body.historicum-checkout-page .h-checkout-review-order > * {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
}

body.historicum-checkout-page .checkout-wrapper,
body.historicum-checkout-page .h-checkout-summary-panel,
body.historicum-checkout-page .checkout-wrapper *,
body.historicum-checkout-page .checkout-wrapper *::before,
body.historicum-checkout-page .checkout-wrapper *::after,
body.historicum-checkout-page .h-checkout-summary-panel *,
body.historicum-checkout-page .h-checkout-summary-panel *::before,
body.historicum-checkout-page .h-checkout-summary-panel *::after {
    box-sizing: border-box !important;
}

body.historicum-checkout-page .checkout-wrapper,
body.historicum-checkout-page .h-checkout-summary-panel {
    position: relative !important;
    top: auto !important;
    justify-self: stretch !important;
    align-self: start !important;
    padding: 26px 28px !important;
    overflow: visible !important;
}

body.historicum-checkout-page .h-checkout-order-heading,
body.historicum-checkout-page .h-checkout-summary-panel h2,
body.historicum-checkout-page .h-checkout-summary-panel .h-checkout-shipping-note {
    position: static !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-review-order table,
body.historicum-checkout-page .h-checkout-review-order .shop_table,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-checkout-review-order-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

body.historicum-checkout-page .h-checkout-review-order #payment,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-checkout-payment,
body.historicum-checkout-page .h-checkout-review-order .wc_payment_methods,
body.historicum-checkout-page .h-checkout-review-order .wc_payment_method,
body.historicum-checkout-page .h-checkout-review-order .form-row.place-order,
body.historicum-checkout-page .h-checkout-review-order .ppc-button-wrapper,
body.historicum-checkout-page .h-checkout-review-order .ppcp-width-500,
body.historicum-checkout-page .h-checkout-review-order [class*="ppcp-width"],
body.historicum-checkout-page .h-checkout-review-order [id^="ppc-button"],
body.historicum-checkout-page .h-checkout-review-order #ppcp-hosted-fields,
body.historicum-checkout-page .h-checkout-review-order #payments-sdk__contingency-lightbox,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-terms-and-conditions-wrapper,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-terms-and-conditions-wrapper .form-row,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-terms-and-conditions-wrapper label,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-terms-and-conditions,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-privacy-policy-text,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-privacy-policy-text p,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-terms-and-conditions-checkbox-text {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.historicum-checkout-page .checkout-wrapper > *,
body.historicum-checkout-page .checkout-wrapper .h-checkout-order-heading,
body.historicum-checkout-page .checkout-wrapper .h-checkout-shipping-note,
body.historicum-checkout-page .checkout-wrapper #order_review,
body.historicum-checkout-page .checkout-wrapper .woocommerce-checkout-review-order {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
}

body.historicum-checkout-page .h-checkout-review-order .ppc-button-wrapper,
body.historicum-checkout-page .h-checkout-review-order .ppcp-width-500,
body.historicum-checkout-page .h-checkout-review-order [class*="ppcp-width"] {
    display: block !important;
}

body.historicum-checkout-page .h-checkout-review-order .paypal-buttons,
body.historicum-checkout-page .h-checkout-review-order .paypal-buttons-context-iframe,
body.historicum-checkout-page .h-checkout-review-order iframe {
    max-width: 100% !important;
}

body.historicum-checkout-page .h-checkout-review-order .wc_payment_methods {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.historicum-checkout-page .h-checkout-review-order .wc_payment_method label {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

body.historicum-checkout-page .h-checkout-review-order .wc_payment_method label img {
    max-width: 100% !important;
    flex: 0 1 auto !important;
}

body.historicum-checkout-page .h-checkout-review-order #place_order {
    width: 100% !important;
    max-width: 100% !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table th,
body.historicum-checkout-page .h-checkout-review-order .shop_table td,
body.historicum-checkout-page .h-checkout-review-order .shop_table thead th,
body.historicum-checkout-page .h-checkout-review-order .shop_table tfoot th,
body.historicum-checkout-page .h-checkout-review-order .shop_table tfoot td,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-totals th,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-totals td {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 12px 10px !important;
    color: #111111 !important;
    font-family: var(--h-font-cinzel, serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.32 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-transform: none !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-name {
    width: 58% !important;
    padding-left: 0 !important;
    padding-right: 14px !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-total {
    width: 42% !important;
    padding-right: 12px !important;
    padding-left: 14px !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table th:first-child,
body.historicum-checkout-page .h-checkout-review-order .shop_table td:first-child {
    padding-left: 0 !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table th:last-child,
body.historicum-checkout-page .h-checkout-review-order .shop_table td:last-child,
body.historicum-checkout-page .h-checkout-review-order tr.order-total td,
body.historicum-checkout-page .h-checkout-review-order tr.cart-subtotal td,
body.historicum-checkout-page .h-checkout-review-order tr.woocommerce-shipping-totals td {
    padding-right: 12px !important;
    text-align: right !important;
}

body.historicum-checkout-page .h-checkout-review-order .order-total th,
body.historicum-checkout-page .h-checkout-review-order .order-total td,
body.historicum-checkout-page .h-checkout-review-order .order-total strong,
body.historicum-checkout-page .h-checkout-review-order .order-total .amount {
    font-size: clamp(20px, 1.45vw, 24px) !important;
    font-weight: 900 !important;
}

body.historicum-checkout-page .h-checkout-review-order .wc_payment_method input.input-radio:checked + label,
body.historicum-checkout-page .h-checkout-review-order .wc_payment_method.is-selected label,
body.historicum-checkout-page .h-checkout-review-order .wc_payment_method.is-selected > label,
body.historicum-checkout-page .h-checkout-review-order .wc_payment_method.selected label,
body.historicum-checkout-page .h-checkout-review-order .wc_payment_method:has(input.input-radio:checked) label,
body.historicum-checkout-page .h-checkout-review-order .wc_payment_method:has(> input.input-radio:checked) > label,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method input.input-radio:checked + label,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method.is-selected label,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method.is-selected > label,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method.selected label,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method:has(input.input-radio:checked) label,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method:has(> input.input-radio:checked) > label {
    background: #b6b0a7 !important;
    background-color: #b6b0a7 !important;
    background-image: none !important;
    border-color: #111111 !important;
    box-shadow: inset 0 0 0 999px rgba(17, 17, 17, 0.08) !important;
    color: #111111 !important;
}

body.historicum-checkout-page .h-checkout-summary-panel .h-checkout-shipping-note,
body.historicum-checkout-page .checkout-wrapper .h-checkout-shipping-note {
    padding: 24px 28px !important;
}

body.historicum-checkout-page .h-med-checkout-forms,
body.historicum-checkout-page .h-checkout-panel,
body.historicum-checkout-page .checkout-wrapper,
body.historicum-checkout-page .h-checkout-summary-panel {
    align-self: start !important;
    margin-top: 0 !important;
}

body.historicum-checkout-page.woocommerce-order-received .h-commerce-progress .h-progress-step.is-complete::before,
body.woocommerce-order-received .h-commerce-progress .h-progress-step.is-complete::before {
    border-color: rgba(17, 17, 17, 0.34) !important;
    background: transparent !important;
    color: #111111 !important;
}

body.historicum-checkout-page.woocommerce-order-received .h-commerce-progress .h-progress-step-received.is-active::before,
body.woocommerce-order-received .h-commerce-progress .h-progress-step-received.is-active::before {
    border-color: #e7b900 !important;
    background: #e7b900 !important;
    color: #0a0a0a !important;
}

body.historicum-checkout-page.woocommerce-order-received .h-order-received-grid--addresses,
body.woocommerce-order-received .h-order-received-grid--addresses {
    margin-top: clamp(26px, 3vw, 42px) !important;
}

body.historicum-cart-page .h-commerce-rec-copy {
    background-image: linear-gradient(135deg, #252525 0%, #121212 48%, #020202 100%) !important;
    color: #ffffff !important;
}

body.historicum-cart-page .h-commerce-rec-copy strong {
    color: #ffffff !important;
}

body.historicum-cart-page .h-commerce-rec-copy em,
body.historicum-cart-page .h-commerce-rec-copy .amount {
    color: var(--h-accent, #ebbc00) !important;
}

body.historicum-checkout-page .h-commerce-progress .h-progress-step {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.historicum-checkout-page .h-commerce-progress .h-progress-step.is-active {
    border-bottom: 2px solid var(--h-accent, #ebbc00) !important;
    padding-bottom: 4px !important;
}

@media (max-width: 1180px) {
    body.historicum-checkout-page .h-checkout-heading-row,
    body.historicum-checkout-page .h-checkout-topline,
    body.historicum-checkout-page .h-checkout-coupon-details,
    body.historicum-checkout-page .h-med-checkout-form,
    body.historicum-checkout-page .h-checkout-endpoint-content {
        width: min(760px, 100%) !important;
        max-width: 760px !important;
    }

    body.historicum-checkout-page .h-med-checkout-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.historicum-checkout-page .h-checkout-summary-panel {
        position: static !important;
    }
}

@media (max-width: 640px) {
    body.historicum-cart-page .h-cart-coupon-details .h-coupon-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.historicum-cart-page .h-cart-coupon-details .h-coupon-form input[type="text"],
    body.historicum-cart-page .h-cart-coupon-details .h-coupon-form button {
        margin-left: 0;
        border: 0.3px solid #111111;
        border-radius: 999px;
    }
}

/* Checkout order review alignment source of truth. */
body.historicum-checkout-page .h-checkout-review-order .shop_table,
body.woocommerce-checkout .h-checkout-review-order .shop_table {
    table-layout: fixed !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table th,
body.historicum-checkout-page .h-checkout-review-order .shop_table td,
body.woocommerce-checkout .h-checkout-review-order .shop_table th,
body.woocommerce-checkout .h-checkout-review-order .shop_table td {
    text-align: left !important;
    vertical-align: top !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table thead th.product-total,
body.historicum-checkout-page .h-checkout-review-order .shop_table tbody td.product-total,
body.historicum-checkout-page .h-checkout-review-order .shop_table tfoot td,
body.woocommerce-checkout .h-checkout-review-order .shop_table thead th.product-total,
body.woocommerce-checkout .h-checkout-review-order .shop_table tbody td.product-total,
body.woocommerce-checkout .h-checkout-review-order .shop_table tfoot td {
    text-align: right !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table .product-name,
body.historicum-checkout-page .h-checkout-review-order .shop_table .product-name *,
body.historicum-checkout-page .h-checkout-review-order .shop_table tfoot th,
body.woocommerce-checkout .h-checkout-review-order .shop_table .product-name,
body.woocommerce-checkout .h-checkout-review-order .shop_table .product-name *,
body.woocommerce-checkout .h-checkout-review-order .shop_table tfoot th {
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table .product-total,
body.historicum-checkout-page .h-checkout-review-order .shop_table .product-total *,
body.historicum-checkout-page .h-checkout-review-order .shop_table tfoot td *,
body.woocommerce-checkout .h-checkout-review-order .shop_table .product-total,
body.woocommerce-checkout .h-checkout-review-order .shop_table .product-total *,
body.woocommerce-checkout .h-checkout-review-order .shop_table tfoot td * {
    text-align: right !important;
}

body.historicum-checkout-page .h-checkout-review-order dl.variation,
body.woocommerce-checkout .h-checkout-review-order dl.variation {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    gap: 4px 8px !important;
    margin: 8px 0 0 !important;
}

body.historicum-checkout-page .h-checkout-review-order dl.variation dt,
body.historicum-checkout-page .h-checkout-review-order dl.variation dd,
body.historicum-checkout-page .h-checkout-review-order dl.variation dd p,
body.historicum-checkout-page .h-checkout-review-order dl.variation dd div,
body.woocommerce-checkout .h-checkout-review-order dl.variation dt,
body.woocommerce-checkout .h-checkout-review-order dl.variation dd,
body.woocommerce-checkout .h-checkout-review-order dl.variation dd p,
body.woocommerce-checkout .h-checkout-review-order dl.variation dd div {
    min-width: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-methods,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-methods li,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-methods label,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-shipping-methods,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-shipping-methods li,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-shipping-methods label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

/* Order-received endpoint title and details table. */
body.woocommerce-order-received .h-checkout-policy-paper .h-checkout-heading-row,
body.historicum-checkout-page.woocommerce-order-received .h-checkout-policy-paper .h-checkout-heading-row {
    width: min(1360px, 100%) !important;
    max-width: 1360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-left: 0 !important;
    text-align: left !important;
}

body.woocommerce-order-received .h-checkout-policy-paper .h-checkout-main-title,
body.historicum-checkout-page.woocommerce-order-received .h-checkout-policy-paper .h-checkout-main-title {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-flow-paper--received > .h-checkout-heading-row,
body.historicum-checkout-page .h-checkout-flow-paper--received > .h-checkout-topline,
body.historicum-checkout-page .h-checkout-flow-paper--received > .h-checkout-endpoint-content {
    width: 100% !important;
    max-width: 1360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-flow-paper--received > .h-checkout-topline {
    justify-content: flex-start !important;
}

body.historicum-checkout-page .h-checkout-flow-paper--received > .h-checkout-heading-row .h-checkout-main-title {
    text-align: left !important;
}

body.woocommerce-order-received .h-checkout-policy-paper .h-checkout-topline,
body.historicum-checkout-page.woocommerce-order-received .h-checkout-policy-paper .h-checkout-topline,
body.woocommerce-order-received .h-checkout-policy-paper .h-commerce-progress,
body.historicum-checkout-page.woocommerce-order-received .h-checkout-policy-paper .h-commerce-progress {
    width: min(1360px, 100%) !important;
    max-width: 1360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

body.woocommerce-order-received .h-order-details-table,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table {
    table-layout: fixed !important;
}

body.woocommerce-order-received .h-order-details-table .product-name,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table .product-name {
    width: 64% !important;
    padding-right: 22px !important;
    text-align: left !important;
}

body.woocommerce-order-received .h-order-details-table .product-total,
body.woocommerce-order-received .h-order-details-table tfoot td,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table .product-total,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table tfoot td {
    width: 36% !important;
    padding-left: 22px !important;
    text-align: right !important;
}

body.woocommerce-order-received .h-order-details-table thead th,
body.woocommerce-order-received .h-order-details-table tfoot th,
body.woocommerce-order-received .h-order-details-table tfoot td,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table thead th,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table tfoot th,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table tfoot td {
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.42 !important;
    text-transform: none !important;
}

body.woocommerce-order-received .h-order-details-table tbody td,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table tbody td {
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: clamp(15px, 0.96vw, 16px) !important;
    font-weight: 500 !important;
    line-height: 1.42 !important;
}

body.woocommerce-order-received .h-order-details-table tbody td.product-total,
body.woocommerce-order-received .h-order-details-table tbody td.product-total *,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table tbody td.product-total,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table tbody td.product-total * {
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-weight: 700 !important;
    text-align: right !important;
}

body.woocommerce-order-received .h-order-details-table .wc-item-meta,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table .wc-item-meta {
    display: grid !important;
    gap: 6px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.woocommerce-order-received .h-order-details-table .wc-item-meta li,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table .wc-item-meta li {
    display: grid !important;
    grid-template-columns: minmax(118px, max-content) minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: baseline !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

body.woocommerce-order-received .h-order-details-table .wc-item-meta-label,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table .wc-item-meta-label {
    margin: 0 !important;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: clamp(14px, 0.92vw, 15px) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

body.woocommerce-order-received .h-order-details-table .wc-item-meta p,
body.historicum-checkout-page.woocommerce-order-received .h-order-details-table .wc-item-meta p {
    margin: 0 !important;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: clamp(14px, 0.92vw, 15px) !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

/* Checkout vital information uses the readable contact-page font system. */
body.historicum-checkout-page,
body.woocommerce-checkout,
body.woocommerce-order-received {
    --h-checkout-readable-font: var(--h-font-readable, var(--h-font-instrument, "Instrument Sans", Arial, sans-serif));
}

body.historicum-checkout-page .h-checkout-shipping-note,
body.historicum-checkout-page .h-checkout-review-order .shop_table th,
body.historicum-checkout-page .h-checkout-review-order .shop_table td,
body.historicum-checkout-page .h-checkout-review-order .shop_table td *,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-methods,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-methods *,
body.woocommerce-checkout .h-checkout-review-order .shop_table th,
body.woocommerce-checkout .h-checkout-review-order .shop_table td,
body.woocommerce-checkout .h-checkout-review-order .shop_table td *,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-shipping-methods,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-shipping-methods *,
body.historicum-checkout-page .h-order-received-overview span,
body.historicum-checkout-page .h-order-received-overview strong,
body.historicum-checkout-page .h-order-received-card--pathway p,
body.historicum-checkout-page .h-order-payment-currency-note,
body.historicum-checkout-page .h-order-bank-account dt,
body.historicum-checkout-page .h-order-bank-account dd,
body.historicum-checkout-page .h-order-bank-account dd *,
body.historicum-checkout-page .h-order-details-table th,
body.historicum-checkout-page .h-order-details-table td,
body.historicum-checkout-page .h-order-details-table td *,
body.historicum-checkout-page .h-order-details-table .wc-item-meta-label,
body.historicum-checkout-page .h-order-details-table .wc-item-meta p,
body.historicum-checkout-page .h-order-address-card address,
body.historicum-checkout-page .h-order-address-card address * {
    font-family: var(--h-checkout-readable-font) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.historicum-checkout-page .h-checkout-shipping-note,
body.historicum-checkout-page .h-order-received-card--pathway p,
body.historicum-checkout-page .h-order-address-card address {
    font-size: clamp(16px, 1.05vw, 18px) !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table th,
body.historicum-checkout-page .h-checkout-review-order .shop_table td,
body.woocommerce-checkout .h-checkout-review-order .shop_table th,
body.woocommerce-checkout .h-checkout-review-order .shop_table td,
body.historicum-checkout-page .h-order-details-table th,
body.historicum-checkout-page .h-order-details-table td {
    font-size: clamp(15px, 1vw, 17px) !important;
    line-height: 1.42 !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table thead th,
body.historicum-checkout-page .h-checkout-review-order .shop_table tfoot th,
body.woocommerce-checkout .h-checkout-review-order .shop_table thead th,
body.woocommerce-checkout .h-checkout-review-order .shop_table tfoot th,
body.historicum-checkout-page .h-order-details-table thead th,
body.historicum-checkout-page .h-order-details-table tfoot th {
    font-weight: 700 !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-name,
body.historicum-checkout-page .h-checkout-review-order .product-name *,
body.historicum-checkout-page .h-order-details-table .product-name,
body.historicum-checkout-page .h-order-details-table .product-name * {
    font-weight: 500 !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-quantity,
body.historicum-checkout-page .h-checkout-review-order .product-total,
body.historicum-checkout-page .h-checkout-review-order .product-total *,
body.historicum-checkout-page .h-checkout-review-order tfoot td,
body.historicum-checkout-page .h-checkout-review-order tfoot td *,
body.historicum-checkout-page .h-checkout-review-order .order-total th,
body.historicum-checkout-page .h-checkout-review-order .order-total td,
body.historicum-checkout-page .h-checkout-review-order .order-total *,
body.woocommerce-checkout .h-checkout-review-order .product-quantity,
body.woocommerce-checkout .h-checkout-review-order .product-total,
body.woocommerce-checkout .h-checkout-review-order .product-total *,
body.woocommerce-checkout .h-checkout-review-order tfoot td,
body.woocommerce-checkout .h-checkout-review-order tfoot td *,
body.woocommerce-checkout .h-checkout-review-order .order-total th,
body.woocommerce-checkout .h-checkout-review-order .order-total td,
body.woocommerce-checkout .h-checkout-review-order .order-total *,
body.historicum-checkout-page .h-order-received-overview strong,
body.historicum-checkout-page .h-order-bank-account dd,
body.historicum-checkout-page .h-order-bank-account dd *,
body.historicum-checkout-page .h-order-details-table .product-quantity,
body.historicum-checkout-page .h-order-details-table .product-total,
body.historicum-checkout-page .h-order-details-table .product-total *,
body.historicum-checkout-page .h-order-details-table tfoot td,
body.historicum-checkout-page .h-order-details-table tfoot td *,
body.historicum-checkout-page .h-order-details-table tfoot tr:last-child th,
body.historicum-checkout-page .h-order-details-table tfoot tr:last-child td,
body.historicum-checkout-page .h-order-address-card address {
    font-variant-numeric: tabular-nums lining-nums !important;
    font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

body.historicum-checkout-page .h-checkout-review-order .order-total th,
body.historicum-checkout-page .h-checkout-review-order .order-total td,
body.historicum-checkout-page .h-checkout-review-order .order-total *,
body.woocommerce-checkout .h-checkout-review-order .order-total th,
body.woocommerce-checkout .h-checkout-review-order .order-total td,
body.woocommerce-checkout .h-checkout-review-order .order-total *,
body.historicum-checkout-page .h-order-details-table tfoot tr:last-child th,
body.historicum-checkout-page .h-order-details-table tfoot tr:last-child td,
body.historicum-checkout-page .h-order-details-table tfoot tr:last-child td * {
    font-weight: 800 !important;
}

/* Exact WooCommerce purchase-data classes: readable font, black text, tabular numbers. */
body.historicum-checkout-page .h-checkout-summary-panel p.h-checkout-shipping-note[role="note"],
body.woocommerce-checkout .h-checkout-summary-panel p.h-checkout-shipping-note[role="note"],
body.historicum-cart-page .h-shipping-info p,
body.historicum-cart-page .h-workshop-info p,
body.historicum-cart-page .h-med-cart-header span,
body.historicum-cart-page .h-med-cart-name,
body.historicum-cart-page .h-med-cart-name a,
body.historicum-cart-page .h-med-cart-meta,
body.historicum-cart-page .h-med-cart-meta *,
body.historicum-cart-page .h-med-cart-wait,
body.historicum-cart-page .h-med-cart-wait *,
body.historicum-cart-page .h-med-cart-price,
body.historicum-cart-page .h-med-cart-price *,
body.historicum-cart-page .h-med-cart-qty,
body.historicum-cart-page .h-med-cart-qty *,
body.historicum-cart-page .h-med-cart-total,
body.historicum-cart-page .h-med-cart-total *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table th,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table td,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table th *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table td *,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table th,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table td,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table th *,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table td *,
body.woocommerce-order-received .woocommerce-table__product-name,
body.woocommerce-order-received .woocommerce-table__product-name *,
body.woocommerce-order-received .woocommerce-table__product-table,
body.woocommerce-order-received .woocommerce-table__product-table *,
body.woocommerce-order-received .woocommerce-table__product-total,
body.woocommerce-order-received .woocommerce-table__product-total *,
body.woocommerce-order-received .woocommerce-Price-amount,
body.woocommerce-order-received .woocommerce-Price-currencySymbol,
body.woocommerce-order-received .woocs_price_code,
body.woocommerce-order-received .woocs_special_price_code {
    color: #111111 !important;
    font-family: var(--h-checkout-readable-font, var(--h-font-readable, var(--h-font-instrument, "Instrument Sans", Arial, sans-serif))) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.historicum-cart-page .h-med-cart-header span,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table thead th,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot th,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table thead th,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot th {
    font-weight: 800 !important;
}

body.historicum-cart-page .h-med-cart-price,
body.historicum-cart-page .h-med-cart-price *,
body.historicum-cart-page .h-med-cart-qty input,
body.historicum-cart-page .h-med-cart-total,
body.historicum-cart-page .h-med-cart-total *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-quantity,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-total,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-total *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot td,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot td *,
body.woocommerce-order-received .woocommerce-Price-amount,
body.woocommerce-order-received .woocommerce-Price-currencySymbol,
body.woocommerce-order-received .woocs_price_code,
body.woocommerce-order-received .woocs_special_price_code {
    font-variant-numeric: tabular-nums lining-nums !important;
    font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-name,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-name {
    text-align: left !important;
}

body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-total,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-total *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot td,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot td *,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-total,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-total *,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot td,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot td * {
    text-align: right !important;
}

/* Order-received hierarchy polish. */
body.historicum-checkout-page .h-order-received-card--pathway .h-order-card-body h3,
body.woocommerce-order-received .h-order-received-card--pathway .h-order-card-body h3 {
    margin-bottom: clamp(20px, 1.8vw, 28px) !important;
}

body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table thead th,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table thead th {
    font-size: clamp(17px, 1.08vw, 19px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tbody td,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tbody td {
    font-size: clamp(15px, 0.96vw, 16px) !important;
    font-weight: 500 !important;
    line-height: 1.42 !important;
}

body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tbody td.product-name,
body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tbody td.product-name > *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tbody td.product-name,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tbody td.product-name > * {
    font-size: clamp(15px, 0.96vw, 16px) !important;
    font-weight: 500 !important;
    line-height: 1.42 !important;
}

body.historicum-checkout-page.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tbody td.product-name > .product-quantity,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tbody td.product-name > .product-quantity {
    display: inline !important;
    font-size: inherit !important;
    font-weight: 800 !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
}

/* Commerce vital typography contract: readable data, tabular numbers, decorative fonts only for titles/buttons. */
body.historicum-checkout-page,
body.woocommerce-checkout,
body.woocommerce-order-received,
body.historicum-cart-page {
    --h-commerce-data-font: var(--h-font-readable, var(--h-font-instrument, "Instrument Sans", Arial, sans-serif));
}

body.historicum-checkout-page .h-checkout-summary-panel p.h-checkout-shipping-note[role="note"],
body.historicum-checkout-page .h-checkout-review-order .shop_table th,
body.historicum-checkout-page .h-checkout-review-order .shop_table td,
body.historicum-checkout-page .h-checkout-review-order .shop_table td *,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-methods,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-methods *,
body.woocommerce-checkout .h-checkout-review-order .shop_table th,
body.woocommerce-checkout .h-checkout-review-order .shop_table td,
body.woocommerce-checkout .h-checkout-review-order .shop_table td *,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-shipping-methods,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-shipping-methods *,
body.historicum-checkout-page .h-order-received-card--pathway p,
body.historicum-checkout-page .h-order-payment-currency-note,
body.historicum-checkout-page .h-order-bank-account dt,
body.historicum-checkout-page .h-order-bank-account dd,
body.historicum-checkout-page .h-order-bank-account dd *,
body.historicum-checkout-page .h-order-details-table th,
body.historicum-checkout-page .h-order-details-table td,
body.historicum-checkout-page .h-order-details-table th *,
body.historicum-checkout-page .h-order-details-table td *,
body.historicum-checkout-page .h-order-details-table .wc-item-meta-label,
body.historicum-checkout-page .h-order-details-table .wc-item-meta p,
body.historicum-checkout-page .h-order-address-card address,
body.historicum-checkout-page .h-order-address-card address *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table th,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table td,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table th *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table td *,
body.historicum-cart-page .h-shipping-info p,
body.historicum-cart-page .h-workshop-info p,
body.historicum-cart-page .h-med-cart-header span,
body.historicum-cart-page .h-med-cart-name,
body.historicum-cart-page .h-med-cart-name a,
body.historicum-cart-page .h-med-cart-meta,
body.historicum-cart-page .h-med-cart-meta *,
body.historicum-cart-page .h-med-cart-wait,
body.historicum-cart-page .h-med-cart-wait *,
body.historicum-cart-page .h-med-cart-price,
body.historicum-cart-page .h-med-cart-price *,
body.historicum-cart-page .h-med-cart-qty,
body.historicum-cart-page .h-med-cart-qty *,
body.historicum-cart-page .h-med-cart-total,
body.historicum-cart-page .h-med-cart-total * {
    color: #111111 !important;
    font-family: var(--h-commerce-data-font) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.historicum-checkout-page .h-checkout-summary-panel p.h-checkout-shipping-note[role="note"],
body.historicum-checkout-page .h-order-received-card--pathway p,
body.historicum-checkout-page .h-order-address-card address {
    font-size: clamp(16px, 1.05vw, 18px) !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table th,
body.historicum-checkout-page .h-checkout-review-order .shop_table td,
body.woocommerce-checkout .h-checkout-review-order .shop_table th,
body.woocommerce-checkout .h-checkout-review-order .shop_table td,
body.historicum-checkout-page .h-order-details-table th,
body.historicum-checkout-page .h-order-details-table td,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table th,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table td {
    font-size: clamp(15px, 1vw, 17px) !important;
    line-height: 1.42 !important;
}

body.historicum-checkout-page .h-checkout-review-order .shop_table thead th,
body.historicum-checkout-page .h-checkout-review-order .shop_table tfoot th,
body.woocommerce-checkout .h-checkout-review-order .shop_table thead th,
body.woocommerce-checkout .h-checkout-review-order .shop_table tfoot th,
body.historicum-checkout-page .h-order-details-table thead th,
body.historicum-checkout-page .h-order-details-table tfoot th,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table thead th,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot th {
    font-size: clamp(16px, 1.05vw, 18px) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-name,
body.historicum-checkout-page .h-checkout-review-order .product-name *,
body.historicum-checkout-page .h-order-details-table .product-name,
body.historicum-checkout-page .h-order-details-table .product-name *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-name,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-name * {
    font-size: clamp(15px, 0.96vw, 16px) !important;
    font-weight: 500 !important;
    line-height: 1.42 !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-quantity,
body.historicum-checkout-page .h-order-details-table .product-quantity,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-quantity {
    display: inline !important;
    font-size: inherit !important;
    font-weight: 800 !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-total,
body.historicum-checkout-page .h-checkout-review-order .product-total *,
body.historicum-checkout-page .h-checkout-review-order tfoot td,
body.historicum-checkout-page .h-checkout-review-order tfoot td *,
body.woocommerce-checkout .h-checkout-review-order .product-total,
body.woocommerce-checkout .h-checkout-review-order .product-total *,
body.woocommerce-checkout .h-checkout-review-order tfoot td,
body.woocommerce-checkout .h-checkout-review-order tfoot td *,
body.historicum-checkout-page .h-order-bank-account dd,
body.historicum-checkout-page .h-order-bank-account dd *,
body.historicum-checkout-page .h-order-details-table .product-total,
body.historicum-checkout-page .h-order-details-table .product-total *,
body.historicum-checkout-page .h-order-details-table tfoot td,
body.historicum-checkout-page .h-order-details-table tfoot td *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-total,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table .product-total *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot td,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot td *,
body.historicum-cart-page .h-med-cart-price,
body.historicum-cart-page .h-med-cart-price *,
body.historicum-cart-page .h-med-cart-qty input,
body.historicum-cart-page .h-med-cart-total,
body.historicum-cart-page .h-med-cart-total * {
    font-variant-numeric: tabular-nums lining-nums !important;
    font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

body.historicum-checkout-page .h-checkout-review-order .order-total th,
body.historicum-checkout-page .h-checkout-review-order .order-total td,
body.historicum-checkout-page .h-checkout-review-order .order-total *,
body.woocommerce-checkout .h-checkout-review-order .order-total th,
body.woocommerce-checkout .h-checkout-review-order .order-total td,
body.woocommerce-checkout .h-checkout-review-order .order-total *,
body.historicum-checkout-page .h-order-details-table tfoot tr:last-child th,
body.historicum-checkout-page .h-order-details-table tfoot tr:last-child td,
body.historicum-checkout-page .h-order-details-table tfoot tr:last-child td *,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot tr:last-child th,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot tr:last-child td,
body.woocommerce-order-received table.woocommerce-table.woocommerce-table--order-details.h-order-details-table tfoot tr:last-child td * {
    font-size: clamp(20px, 1.45vw, 24px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.historicum-cart-page .h-summary-row {
    gap: 18px !important;
    align-items: baseline !important;
    font-family: var(--h-commerce-data-font) !important;
}

body.historicum-cart-page .h-summary-row span {
    flex: 0 0 auto !important;
}

body.historicum-cart-page .h-summary-row strong {
    flex: 1 1 auto !important;
    font-family: var(--h-commerce-data-font) !important;
    font-weight: 700 !important;
    text-align: right !important;
}
