/* Historicum account + checkout final fixes.
   Loaded after pages.css and reference-pages.css. */

body.historicum-account-page,
body.woocommerce-account,
body.historicum-checkout-page,
body.woocommerce-checkout,
body.historicum-cart-page {
    background-color: #000000 !important;
    background-image:
        radial-gradient(circle at 22% 0%, rgba(151, 101, 17, 0.30), transparent 30%),
        radial-gradient(circle at 76% 12%, rgba(92, 62, 12, 0.20), transparent 28%),
        linear-gradient(180deg, #171005 0%, #0b0804 30%, #020202 58%, #000000 78%, #000000 100%) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
}

body.historicum-account-page #h-site-footer,
body.historicum-account-page .h-site-footer,
body.historicum-account-page footer,
body.woocommerce-account #h-site-footer,
body.woocommerce-account .h-site-footer,
body.woocommerce-account footer,
body.historicum-checkout-page #h-site-footer,
body.historicum-checkout-page .h-site-footer,
body.historicum-checkout-page footer,
body.woocommerce-checkout #h-site-footer,
body.woocommerce-checkout .h-site-footer,
body.woocommerce-checkout footer {
    border-top: 0 !important;
    background-color: #000000 !important;
    background-image: none !important;
}

/* My Account */
body.historicum-account-page .h-account-page-shell,
body.woocommerce-account .h-account-page-shell,
body.historicum-account-page main .woocommerce,
body.woocommerce-account main .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

body.historicum-account-page .h-ref-page-account,
body.woocommerce-account .h-ref-page-account {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.historicum-account-page .h-ref-page-account .account-shell,
body.woocommerce-account .h-ref-page-account .account-shell,
body.historicum-account-page .woocommerce .h-ref-page .account-shell,
body.woocommerce-account .woocommerce .h-ref-page .account-shell {
    width: 100% !important;
    max-width: none !important;
    margin: clamp(94px, 9vw, 118px) 0 24px !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.historicum-account-page .h-ref-page-account .account-paper,
body.woocommerce-account .h-ref-page-account .account-paper,
body.historicum-account-page .woocommerce .h-ref-page .account-paper,
body.woocommerce-account .woocommerce .h-ref-page .account-paper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(34px, 4vw, 58px) clamp(20px, 3.4vw, 52px) clamp(30px, 3.5vw, 50px) !important;
    background: var(--h-paper) !important;
}

body.historicum-account-page .h-ref-page-account .account-inner,
body.woocommerce-account .h-ref-page-account .account-inner {
    display: grid !important;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) !important;
    gap: 0 38px !important;
    width: min(1400px, 100%) !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

body.historicum-account-page .h-ref-page-account .account-heading,
body.woocommerce-account .h-ref-page-account .account-heading {
    grid-column: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 22px !important;
    text-align: left !important;
}

body.historicum-account-page .h-ref-page-account .account-title,
body.woocommerce-account .h-ref-page-account .account-title {
    display: block !important;
    margin: 0 !important;
    color: #0a0a0a !important;
    text-align: left !important;
}

body.historicum-account-page .h-ref-page-account .account-greeting,
body.woocommerce-account .h-ref-page-account .account-greeting {
    display: block !important;
    margin: 10px 0 0 !important;
    color: #4a4339 !important;
    font-size: clamp(18px, 1.55vw, 22px) !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

body.historicum-account-page .h-ref-page-account .account-grid,
body.woocommerce-account .h-ref-page-account .account-grid {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) !important;
    gap: 38px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    align-items: start !important;
}

body.historicum-account-page .h-ref-page-account .account-nav,
body.woocommerce-account .h-ref-page-account .account-nav,
body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
}

body.historicum-account-page .h-ref-page-account .account-nav a,
body.woocommerce-account .h-ref-page-account .account-nav a,
body.woocommerce-account .woocommerce-MyAccount-navigation a {
    border: 1px solid rgba(10, 10, 10, 0.74) !important;
    border-radius: 13px !important;
    padding: 17px 20px !important;
    color: #0a0a0a !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.08em !important;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms ease !important;
}

body.historicum-account-page .h-ref-page-account .account-nav a.is-active,
body.woocommerce-account .h-ref-page-account .account-nav a.is-active,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.historicum-account-page .h-ref-page-account .account-nav a:hover,
body.woocommerce-account .h-ref-page-account .account-nav a:hover {
    border-color: #d9a900 !important;
    background: #e7b900 !important;
    color: #090705 !important;
    box-shadow: 0 8px 18px rgba(108, 77, 0, 0.16) !important;
    transform: translateY(-1px);
}

body.historicum-account-page .h-ref-page-account .account-content,
body.woocommerce-account .h-ref-page-account .account-content {
    display: grid !important;
    gap: 24px !important;
    min-width: 0 !important;
}

body.historicum-account-page .h-ref-page-account .account-card,
body.woocommerce-account .h-ref-page-account .account-card {
    border: 1px solid rgba(10, 10, 10, 0.16) !important;
    border-radius: 12px !important;
    padding: clamp(24px, 2.4vw, 34px) !important;
    background: rgba(255, 255, 255, 0.34) !important;
}

body.historicum-account-page .h-ref-page-account .quick-actions,
body.woocommerce-account .h-ref-page-account .quick-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-top: 26px !important;
}

body.historicum-account-page .h-ref-page-account .quick-action-icon,
body.woocommerce-account .h-ref-page-account .quick-action-icon {
    display: none !important;
}

body.historicum-account-page .h-ref-page-account .quick-action-card,
body.woocommerce-account .h-ref-page-account .quick-action-card {
    border: 1px solid rgba(181, 135, 16, 0.56) !important;
    border-radius: 12px !important;
    padding: 22px !important;
    background: rgba(255, 255, 255, 0.30) !important;
    color: #0a0a0a !important;
    transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms ease, box-shadow 240ms ease !important;
}

body.historicum-account-page .h-ref-page-account .quick-action-card:hover,
body.woocommerce-account .h-ref-page-account .quick-action-card:hover,
body.historicum-account-page .h-ref-page-account .quick-action-card:focus-visible,
body.woocommerce-account .h-ref-page-account .quick-action-card:focus-visible {
    border-color: #d9a900 !important;
    background: #e7b900 !important;
    color: #090705 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(108, 77, 0, 0.18) !important;
}

body.historicum-account-page .h-ref-page-account .quick-action-title,
body.woocommerce-account .h-ref-page-account .quick-action-title {
    margin-bottom: 8px !important;
    color: #0a0a0a !important;
    font-size: clamp(17px, 1.45vw, 21px) !important;
}

body.historicum-account-page .h-ref-page-account .quick-action-desc,
body.woocommerce-account .h-ref-page-account .quick-action-desc,
body.historicum-account-page .h-ref-page-account .account-card p,
body.woocommerce-account .h-ref-page-account .account-card p {
    color: #4a4339 !important;
    font-size: clamp(18px, 1.35vw, 21px) !important;
    line-height: 1.46 !important;
}

body.historicum-account-page .h-ref-page-account .account-native-content,
body.historicum-account-page .h-ref-page-account .account-native-content *,
body.woocommerce-account .h-ref-page-account .account-native-content,
body.woocommerce-account .h-ref-page-account .account-native-content * {
    color: #0a0a0a !important;
}

body.historicum-account-page .h-ref-page-account .account-native-content,
body.woocommerce-account .h-ref-page-account .account-native-content {
    font-size: clamp(18px, 1.35vw, 21px) !important;
    line-height: 1.48 !important;
}

body.historicum-account-page .h-ref-page-account .account-native-content p,
body.historicum-account-page .h-ref-page-account .account-native-content li,
body.historicum-account-page .h-ref-page-account .account-native-content td,
body.historicum-account-page .h-ref-page-account .account-native-content th,
body.woocommerce-account .h-ref-page-account .account-native-content p,
body.woocommerce-account .h-ref-page-account .account-native-content li,
body.woocommerce-account .h-ref-page-account .account-native-content td,
body.woocommerce-account .h-ref-page-account .account-native-content th {
    font-size: clamp(18px, 1.3vw, 21px) !important;
    line-height: 1.45 !important;
}

body.historicum-account-page .h-ref-page-account .account-native-content .woocommerce-info,
body.woocommerce-account .h-ref-page-account .account-native-content .woocommerce-info {
    border: 1px solid rgba(181, 135, 16, 0.44) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.30) !important;
    color: #0a0a0a !important;
}

body.historicum-account-page .h-ref-page-account .account-native-content a.button,
body.historicum-account-page .h-ref-page-account .account-native-content button.button,
body.historicum-account-page .h-ref-page-account .account-native-content input[type="submit"],
body.woocommerce-account .h-ref-page-account .account-native-content a.button,
body.woocommerce-account .h-ref-page-account .account-native-content button.button,
body.woocommerce-account .h-ref-page-account .account-native-content input[type="submit"],
body.woocommerce-account .h-ref-page-account .account-native-content .woocommerce-Button {
    border: 1px solid #d9a900 !important;
    border-radius: 12px !important;
    background: #e7b900 !important;
    color: #090705 !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease !important;
}

body.historicum-account-page .h-ref-page-account .account-native-content a.button:hover,
body.historicum-account-page .h-ref-page-account .account-native-content button.button:hover,
body.historicum-account-page .h-ref-page-account .account-native-content input[type="submit"]:hover,
body.woocommerce-account .h-ref-page-account .account-native-content a.button:hover,
body.woocommerce-account .h-ref-page-account .account-native-content button.button:hover,
body.woocommerce-account .h-ref-page-account .account-native-content input[type="submit"]:hover,
body.woocommerce-account .h-ref-page-account .account-native-content .woocommerce-Button:hover {
    background: #f0c62d !important;
    border-color: #f0c62d !important;
    transform: translateY(-1px);
}

body.historicum-account-page .h-ref-page-account .account-native-content input.input-text,
body.historicum-account-page .h-ref-page-account .account-native-content input[type="text"],
body.historicum-account-page .h-ref-page-account .account-native-content input[type="email"],
body.historicum-account-page .h-ref-page-account .account-native-content input[type="password"],
body.historicum-account-page .h-ref-page-account .account-native-content input[type="tel"],
body.historicum-account-page .h-ref-page-account .account-native-content textarea,
body.historicum-account-page .h-ref-page-account .account-native-content select,
body.woocommerce-account .h-ref-page-account .account-native-content input.input-text,
body.woocommerce-account .h-ref-page-account .account-native-content input[type="text"],
body.woocommerce-account .h-ref-page-account .account-native-content input[type="email"],
body.woocommerce-account .h-ref-page-account .account-native-content input[type="password"],
body.woocommerce-account .h-ref-page-account .account-native-content input[type="tel"],
body.woocommerce-account .h-ref-page-account .account-native-content textarea,
body.woocommerce-account .h-ref-page-account .account-native-content select {
    border: 1px solid #0a0a0a !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.30) !important;
    color: #0a0a0a !important;
    min-height: 48px !important;
    padding: 10px 14px !important;
    font-size: 18px !important;
}

/* Logged-out My Account login/register */
body.historicum-account-page .h-account-login-shell,
body.woocommerce-account .h-account-login-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100vh - 160px) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(112px, 12vw, 150px) 20px clamp(58px, 7vw, 86px) !important;
    background: transparent !important;
}

body.historicum-account-page .h-account-login-paper,
body.woocommerce-account .h-account-login-paper {
    width: min(860px, 100%) !important;
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: clamp(34px, 4.5vw, 56px) !important;
    border: 1px solid rgba(10, 10, 10, 0.14) !important;
    border-radius: 16px !important;
    background: var(--h-paper) !important;
    color: #0a0a0a !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42) !important;
}

body.historicum-account-page .h-account-login-header,
body.woocommerce-account .h-account-login-header {
    margin: 0 0 28px !important;
    padding: 0 0 22px !important;
    border-bottom: 1px solid rgba(10, 10, 10, 0.16) !important;
    text-align: center !important;
}

body.historicum-account-page .h-account-login-header h1,
body.woocommerce-account .h-account-login-header h1 {
    margin: 0 0 10px !important;
    color: #0a0a0a !important;
    font-size: clamp(38px, 5vw, 64px) !important;
    line-height: 1.05 !important;
    text-align: center !important;
}

body.historicum-account-page .h-account-login-header p,
body.woocommerce-account .h-account-login-header p {
    max-width: 620px !important;
    margin: 0 auto !important;
    color: #4a4339 !important;
    font-size: clamp(19px, 1.6vw, 23px) !important;
    line-height: 1.42 !important;
}

body.historicum-account-page .h-account-auth-grid,
body.woocommerce-account .h-account-auth-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: start !important;
}

body.historicum-account-page .h-account-auth-grid.has-login-only,
body.woocommerce-account .h-account-auth-grid.has-login-only {
    grid-template-columns: minmax(0, 620px) !important;
    justify-content: center !important;
}

body.historicum-account-page .h-account-auth-card,
body.woocommerce-account .h-account-auth-card {
    border: 1px solid rgba(181, 135, 16, 0.38) !important;
    border-radius: 14px !important;
    padding: clamp(24px, 3vw, 34px) !important;
    background: rgba(255, 255, 255, 0.30) !important;
}

body.historicum-account-page .h-account-auth-card h2,
body.woocommerce-account .h-account-auth-card h2 {
    margin: 0 0 22px !important;
    color: #0a0a0a !important;
    font-size: clamp(26px, 2.4vw, 34px) !important;
}

body.historicum-account-page .h-account-auth-form label,
body.woocommerce-account .h-account-auth-form label {
    color: #0a0a0a !important;
    font-size: 15px !important;
}

body.historicum-account-page .h-account-auth-form input.input-text,
body.historicum-account-page .h-account-auth-form input[type="text"],
body.historicum-account-page .h-account-auth-form input[type="email"],
body.historicum-account-page .h-account-auth-form input[type="password"],
body.woocommerce-account .h-account-auth-form input.input-text,
body.woocommerce-account .h-account-auth-form input[type="text"],
body.woocommerce-account .h-account-auth-form input[type="email"],
body.woocommerce-account .h-account-auth-form input[type="password"] {
    min-height: 52px !important;
    border: 1px solid #0a0a0a !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.30) !important;
    color: #0a0a0a !important;
    padding: 11px 15px !important;
    font-size: 19px !important;
}

body.historicum-account-page .h-account-auth-actions,
body.woocommerce-account .h-account-auth-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
}

body.historicum-account-page .h-account-auth-form button.button,
body.woocommerce-account .h-account-auth-form button.button {
    border: 1px solid #d9a900 !important;
    border-radius: 12px !important;
    background: #e7b900 !important;
    color: #090705 !important;
    padding: 13px 22px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
}

body.historicum-account-page .h-account-auth-card a,
body.woocommerce-account .h-account-auth-card a {
    color: #0a0a0a !important;
    font-size: 18px !important;
}

/* Checkout */
body.historicum-checkout-page .h-checkout-page-shell {
    padding-bottom: 0 !important;
    background: transparent !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout .checkout_coupon,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) {
    width: min(1360px, 100%) !important;
    max-width: 1360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) {
    display: grid !important;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
    gap: clamp(22px, 2.8vw, 34px) !important;
    align-items: start !important;
}

body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .col2-set {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review_heading,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .woocommerce-checkout-review-order {
    padding: 14px !important;
    border: 1px solid rgba(10, 10, 10, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.26) !important;
}

body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .woocommerce-checkout-review-order-table {
    width: 100% !important;
    table-layout: auto !important;
    background: rgba(235, 188, 0, 0.08) !important;
}

body.historicum-checkout-page .h-ref-page.h-checkout-page-shell .h-checkout-policy-shell,
body.historicum-checkout-page .h-checkout-policy-shell {
    width: 100% !important;
    max-width: none !important;
    margin: clamp(96px, 9vw, 118px) 0 56px !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.historicum-checkout-page .h-checkout-policy-paper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(30px, 3.4vw, 52px) clamp(20px, 3.4vw, 52px) clamp(30px, 3.3vw, 50px) !important;
    border-bottom: 0 !important;
    background: var(--h-paper) !important;
}

body.historicum-checkout-page .woocommerce-form-coupon-toggle,
body.historicum-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
body.historicum-checkout-page .checkout_coupon,
body.historicum-checkout-page .h-checkout-policy-paper .h-med-checkout-form,
body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-heading-row,
body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-topline {
    width: min(1360px, 100%) !important;
    max-width: 1360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.historicum-checkout-page .woocommerce-form-coupon-toggle,
body.historicum-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info {
    box-sizing: border-box !important;
}

body.historicum-checkout-page .h-med-checkout-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
    gap: clamp(22px, 2.8vw, 34px) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    align-items: start !important;
}

body.historicum-checkout-page .h-med-checkout-forms,
body.historicum-checkout-page .h-checkout-billing,
body.historicum-checkout-page .h-checkout-shipping,
body.historicum-checkout-page .checkout-wrapper,
body.historicum-checkout-page .h-checkout-summary-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

body.historicum-checkout-page .h-med-checkout-forms {
    display: grid !important;
    gap: 22px !important;
}

body.historicum-checkout-page .h-checkout-panel {
    padding: 22px !important;
}

body.historicum-checkout-page .h-checkout-summary-panel {
    justify-self: stretch !important;
    align-self: start !important;
    padding: 14px !important;
}

body.historicum-checkout-page .h-checkout-summary-panel h2 {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
}

body.historicum-checkout-page .h-checkout-summary-panel > p {
    max-width: none !important;
    margin: 0 0 14px !important;
}

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

body.historicum-checkout-page .h-checkout-review-order table,
body.historicum-checkout-page .h-checkout-review-order .shop_table,
body.historicum-checkout-page .woocommerce-checkout-review-order-table {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    background: rgba(235, 188, 0, 0.08) !important;
}

body.historicum-checkout-page .h-checkout-review-order th,
body.historicum-checkout-page .h-checkout-review-order td {
    padding: 9px 10px !important;
    line-height: 1.35 !important;
    vertical-align: top !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-name {
    width: 58% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 14px !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 #payment,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-checkout-payment {
    width: 100% !important;
    margin-top: 16px !important;
    border: 0 !important;
    background: transparent !important;
}

body.historicum-checkout-page .h-checkout-review-order .payment_box,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-privacy-policy-text {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

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"] {
    margin: 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.historicum-checkout-page .h-checkout-review-order .form-row.place-order,
body.woocommerce-checkout .h-checkout-review-order .form-row.place-order {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
    align-self: stretch !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-review-order #place_order {
    width: 100% !important;
    min-height: 44px !important;
    order: 1 !important;
    margin: 12px 0 0 !important;
    border: 1px solid #d9a900 !important;
    border-radius: 11px !important;
    background: #e7b900 !important;
    color: #090705 !important;
    font-size: clamp(13px, 0.92vw, 16px) !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    transition: box-shadow 220ms ease, transform 220ms ease, background-color 220ms ease !important;
}

body.historicum-checkout-page .h-checkout-review-order #place_order:hover,
body.historicum-checkout-page .h-checkout-review-order #place_order:focus-visible {
    background: #f0c62d !important;
    box-shadow: 0 0 0 3px rgba(231, 185, 0, 0.22), 0 0 28px rgba(231, 185, 0, 0.54), 0 12px 28px rgba(82, 58, 0, 0.24) !important;
    transform: translateY(-1px);
}

body.historicum-checkout-page .h-checkout-review-order .form-row.place-order .woocommerce-privacy-policy-text,
body.woocommerce-checkout .h-checkout-review-order .form-row.place-order .woocommerce-privacy-policy-text {
    order: 2 !important;
    margin: 0 !important;
    color: #4a4339 !important;
    font-size: 12px !important;
    line-height: 1.34 !important;
    text-align: center !important;
}

/* Cart */
body.historicum-cart-page .h-med-cart-item {
    column-gap: 22px !important;
}

body.historicum-cart-page .h-med-cart-price,
body.historicum-cart-page .h-med-cart-total {
    padding-right: 12px !important;
}

body.historicum-cart-page .h-med-cart-remove {
    justify-self: end !important;
    margin-left: 18px !important;
    padding-left: 12px !important;
}

body.historicum-cart-page .h-cart-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
}

/* Checkout order-summary refinement */
body.historicum-checkout-page .h-checkout-policy-paper .h-med-checkout-form,
body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-heading-row,
body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-topline,
body.historicum-checkout-page .woocommerce-form-coupon-toggle,
body.historicum-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
body.historicum-checkout-page .checkout_coupon,
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout .checkout_coupon,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) {
    width: 100% !important;
    max-width: 1360px !important;
    box-sizing: border-box !important;
}

body.historicum-checkout-page .h-med-checkout-layout,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
    gap: clamp(24px, 3vw, 40px) !important;
}

body.historicum-checkout-page .h-checkout-summary-panel,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .woocommerce-checkout-review-order {
    padding: 19px 4px !important;
    box-sizing: border-box !important;
}

body.historicum-checkout-page .h-checkout-review-order table,
body.historicum-checkout-page .h-checkout-review-order .shop_table,
body.historicum-checkout-page .woocommerce-checkout-review-order-table,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .woocommerce-checkout-review-order-table {
    background: transparent !important;
}

body.historicum-checkout-page .h-checkout-review-order th,
body.historicum-checkout-page .h-checkout-review-order td,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review th,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review td {
    padding: 10px 12px !important;
    font-size: clamp(16px, 1.15vw, 19px) !important;
    line-height: 1.36 !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-name,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review .product-name {
    width: 58% !important;
    padding-left: 0 !important;
    padding-right: 14px !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-total,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review .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 tr.order-total,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review tr.order-total {
    display: table-row !important;
}

body.historicum-checkout-page .h-checkout-total-priority,
body.woocommerce-checkout .h-checkout-total-priority {
    display: none !important;
}

body.historicum-checkout-page .h-checkout-summary-panel,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review {
    position: static !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

body.historicum-checkout-page .h-checkout-summary-panel > *,
body.historicum-checkout-page .h-checkout-review-order,
body.historicum-checkout-page .h-checkout-review-order > *,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review > * {
    width: 100% !important;
    max-width: none !important;
}

body.historicum-checkout-page .h-checkout-review-order table,
body.historicum-checkout-page .h-checkout-review-order .shop_table,
body.historicum-checkout-page .woocommerce-checkout-review-order-table,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .woocommerce-checkout-review-order-table {
    display: table !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: fixed !important;
}

body.historicum-checkout-page .h-checkout-review-order thead,
body.historicum-checkout-page .h-checkout-review-order tbody,
body.historicum-checkout-page .h-checkout-review-order tfoot,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review thead,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review tbody,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review tfoot {
    width: 100% !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-name,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review .product-name {
    width: 58% !important;
    padding-left: 0 !important;
    padding-right: 14px !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-total,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review .product-total {
    width: 42% !important;
    padding-right: 12px !important;
    padding-left: 14px !important;
}

body.historicum-checkout-page .h-checkout-review-order tr.order-total th,
body.historicum-checkout-page .h-checkout-review-order tr.order-total td,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review tr.order-total th,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review tr.order-total td {
    padding-top: 18px !important;
    font-size: clamp(20px, 1.7vw, 28px) !important;
    font-weight: 900 !important;
}

body.historicum-checkout-page .h-checkout-review-order .blockUI.blockOverlay,
body.historicum-checkout-page .h-checkout-review-order .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 {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
    background: rgba(245, 240, 230, 0.78) !important;
    opacity: 1 !important;
    cursor: progress !important;
}

/* Final containment pass: the order table must fill the bordered order box, not sit in an inset strip. */
body.historicum-checkout-page .h-checkout-summary-panel {
    overflow: visible !important;
    padding: 26px 28px !important;
}

body.historicum-checkout-page .h-checkout-summary-panel h2,
body.historicum-checkout-page .h-checkout-summary-panel > p,
body.historicum-checkout-page .h-checkout-review-order,
body.historicum-checkout-page .h-checkout-review-order > *,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review > * {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    transform: none !important;
}

body.historicum-checkout-page .h-checkout-summary-panel > p {
    max-width: none !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,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .woocommerce-checkout-review-order-table {
    box-sizing: border-box !important;
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    background: transparent !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 *,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .woocommerce-checkout-review-order-table * {
    box-sizing: border-box !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.historicum-checkout-page .h-checkout-review-order th,
body.historicum-checkout-page .h-checkout-review-order td,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review th,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review td {
    padding: 11px 10px !important;
    overflow: visible !important;
    line-height: 1.35 !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-name,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review .product-name {
    width: 58% !important;
    padding-left: 0 !important;
    padding-right: 14px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-total,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review .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;
}

/* My Account should end naturally after the paper instead of reserving a dead 100vh-style gap. */
body.historicum-account-page .h-page-wrapper.h-account-page-shell,
body.woocommerce-account .h-page-wrapper.h-account-page-shell,
body.historicum-account-page .h-account-page-shell,
body.woocommerce-account .h-account-page-shell,
body.historicum-account-page .site-content,
body.woocommerce-account .site-content,
body.historicum-account-page #primary,
body.woocommerce-account #primary,
body.historicum-account-page .site-main,
body.woocommerce-account .site-main,
body.historicum-account-page main .woocommerce,
body.woocommerce-account main .woocommerce,
body.woocommerce-account .entry-content > .woocommerce {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.historicum-account-page .h-ref-page-account .account-shell,
body.woocommerce-account .h-ref-page-account .account-shell,
body.historicum-account-page .woocommerce .h-ref-page .account-shell,
body.woocommerce-account .woocommerce .h-ref-page .account-shell {
    margin-bottom: 12px !important;
}

body.historicum-account-page .h-ref-page-account .account-paper,
body.woocommerce-account .h-ref-page-account .account-paper,
body.historicum-account-page .woocommerce .h-ref-page .account-paper,
body.woocommerce-account .woocommerce .h-ref-page .account-paper {
    padding-bottom: clamp(24px, 3vw, 38px) !important;
}

@media (max-width: 1180px) {
    body.historicum-checkout-page .woocommerce-form-coupon-toggle,
    body.historicum-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
    body.historicum-checkout-page .checkout_coupon,
    body.historicum-checkout-page .h-checkout-policy-paper .h-med-checkout-form,
    body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-heading-row,
    body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-topline {
        width: min(760px, 100%) !important;
    }

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

    body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) {
        width: min(760px, 100%) !important;
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .col2-set,
    body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review_heading,
    body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review {
        grid-column: 1 !important;
    }
}

@media (max-width: 991px) {
    body.historicum-account-page .h-ref-page-account .account-inner,
    body.woocommerce-account .h-ref-page-account .account-inner,
    body.historicum-account-page .h-ref-page-account .account-grid,
    body.woocommerce-account .h-ref-page-account .account-grid {
        grid-template-columns: 1fr !important;
    }

    body.historicum-account-page .h-ref-page-account .account-heading,
    body.woocommerce-account .h-ref-page-account .account-heading {
        grid-column: 1 !important;
    }

    body.historicum-account-page .h-ref-page-account .quick-actions,
    body.woocommerce-account .h-ref-page-account .quick-actions {
        grid-template-columns: 1fr !important;
    }

    body.historicum-account-page .h-account-auth-grid,
    body.woocommerce-account .h-account-auth-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Checkout order-box containment contract.
   The panel owns its inner Woo table, payment methods, and submit row. */
body.historicum-checkout-page .checkout-wrapper,
body.historicum-checkout-page .h-checkout-summary-panel {
    --h-order-content-nudge: 0px;
    overflow: visible !important;
    padding: 26px 28px !important;
    position: relative !important;
    top: auto !important;
    align-self: start !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 .h-checkout-summary-panel h2,
body.historicum-checkout-page .h-checkout-summary-panel > p,
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 .h-checkout-review-order,
body.historicum-checkout-page .h-checkout-review-order {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !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;
    max-width: 100% !important;
    margin: 0 !important;
    table-layout: fixed !important;
}

body.historicum-checkout-page .checkout-wrapper > *,
body.historicum-checkout-page .checkout-wrapper .woocommerce-checkout-review-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 {
    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 .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 th,
body.historicum-checkout-page .h-checkout-review-order td {
    padding: 12px 10px !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-name {
    width: 58% !important;
    padding-left: 0 !important;
    padding-right: 14px !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 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 table,
body.historicum-checkout-page .h-checkout-review-order .shop_table,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-checkout-review-order-table,
body.historicum-checkout-page .h-checkout-review-order thead,
body.historicum-checkout-page .h-checkout-review-order tbody,
body.historicum-checkout-page .h-checkout-review-order tfoot,
body.historicum-checkout-page .h-checkout-review-order tr,
body.historicum-checkout-page .h-checkout-review-order th,
body.historicum-checkout-page .h-checkout-review-order td,
body.historicum-checkout-page .h-checkout-review-order .cart_item,
body.historicum-checkout-page .h-checkout-review-order .order-total,
body.historicum-checkout-page .h-checkout-review-order .cart-subtotal,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-shipping-totals {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.historicum-checkout-page .h-checkout-review-order thead tr,
body.historicum-checkout-page .h-checkout-review-order tbody tr,
body.historicum-checkout-page .h-checkout-review-order tfoot tr {
    border-bottom: 0.5px solid rgba(20, 20, 20, 0.28) !important;
}

body.historicum-checkout-page .h-checkout-review-order tbody tr:last-child,
body.historicum-checkout-page .h-checkout-review-order tfoot tr:last-child {
    border-bottom: 0 !important;
}

body.historicum-checkout-page .h-checkout-panel-head h2,
body.historicum-checkout-page .h-checkout-summary-panel h2 {
    font-size: clamp(28px, 2.25vw, 36px) !important;
    line-height: 1.05 !important;
}

body.historicum-checkout-page .h-checkout-billing .woocommerce-billing-fields > h3,
body.historicum-checkout-page .h-checkout-billing .woocommerce-billing-fields h3:first-child {
    display: none !important;
}

body.historicum-checkout-page #order_review,
body.historicum-checkout-page #order_review *,
body.historicum-checkout-page .h-checkout-review-order,
body.historicum-checkout-page .h-checkout-review-order *,
body.historicum-checkout-page .h-checkout-review-order *::before,
body.historicum-checkout-page .h-checkout-review-order *::after,
body.historicum-checkout-page .woocommerce-checkout-review-order-table,
body.historicum-checkout-page .woocommerce-checkout-review-order-table *,
body.historicum-checkout-page .woocommerce-checkout-review-order-table *::before,
body.historicum-checkout-page .woocommerce-checkout-review-order-table *::after {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

body.historicum-checkout-page .h-checkout-summary-panel > p {
    display: block !important;
    order: 1 !important;
    margin: 0 0 18px !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
}

body.historicum-checkout-page .h-checkout-review-order {
    order: 2 !important;
}

body.historicum-checkout-page .h-checkout-review-order .product-name {
    width: 58% !important;
    padding-left: 0 !important;
    padding-right: 14px !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 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;
    padding-left: 14px !important;
    text-align: right !important;
}

@media (max-width: 1180px) {
    body.historicum-checkout-page .h-checkout-summary-panel {
        --h-order-content-nudge: 0px;
        padding: 22px 18px !important;
    }
}

/* Cart/checkout progress states */
body.historicum-checkout-page .h-commerce-progress,
body.historicum-cart-page .h-commerce-progress {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(18px, 2.4vw, 30px) !important;
}

body.historicum-checkout-page .h-commerce-progress .h-progress-step,
body.historicum-cart-page .h-commerce-progress .h-progress-step {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #1a160e !important;
    font-family: var(--h-font-cinzel, serif) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    opacity: 0.64 !important;
}

body.historicum-cart-page .h-commerce-progress .h-progress-step {
    color: #f5f0e6 !important;
}

body.historicum-checkout-page .h-commerce-progress .h-progress-step::before,
body.historicum-cart-page .h-commerce-progress .h-progress-step::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 25px !important;
    height: 25px !important;
    border: 1px solid rgba(17, 17, 17, 0.34) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: currentColor !important;
    font-family: var(--h-font-instrument, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

body.historicum-cart-page .h-commerce-progress .h-progress-step::before {
    border-color: rgba(245, 240, 230, 0.48) !important;
}

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

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

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

body.historicum-checkout-page .h-commerce-progress .h-progress-step.is-active,
body.historicum-cart-page .h-commerce-progress .h-progress-step.is-active {
    opacity: 1 !important;
    color: #0a0a0a !important;
}

body.historicum-cart-page .h-commerce-progress .h-progress-step.is-active {
    color: #f5f0e6 !important;
}

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

body.historicum-cart-page .h-cart-progress {
    margin: 18px auto 12px !important;
}

/* Checkout final polish */
body.historicum-checkout-page .h-checkout-summary-panel {
    border: 1px solid #111111 !important;
    border-radius: 10px !important;
}

body.historicum-checkout-page .h-checkout-summary-panel h2,
body.historicum-checkout-page .h-checkout-summary-panel > p {
    left: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

body.historicum-checkout-page .h-checkout-summary-panel > p {
    font-size: 18px !important;
    line-height: 1.45 !important;
}

body.historicum-checkout-page .select2-container--default .select2-search--dropdown .select2-search__field,
body.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--open .select2-search--dropdown .select2-search__field {
    min-height: 42px !important;
    border: 1px solid rgba(17, 17, 17, 0.35) !important;
    border-radius: 8px !important;
    background: #fffaf0 !important;
    color: #0a0a0a !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: 16px !important;
    padding: 8px 12px !important;
    outline: none !important;
}

body.historicum-checkout-page .select2-dropdown,
body.woocommerce-checkout .select2-dropdown,
.select2-container--open .select2-dropdown {
    background: #fffaf0 !important;
    color: #0a0a0a !important;
    border-color: rgba(17, 17, 17, 0.35) !important;
}

/* Cart progress belongs inside the paper, not the hero/header. */
body.historicum-cart-page .h-cart-heading-row {
    width: min(1340px, 100%) !important;
    margin: 0 auto 8px !important;
    text-align: center !important;
}

body.historicum-cart-page .h-cart-main-title {
    margin: 0 0 28px !important;
    color: #050505 !important;
    font-family: var(--h-font-cinzel) !important;
    font-size: clamp(36px, 5vw, 62px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.historicum-cart-page .h-commerce-paper > .h-cart-progress {
    width: min(1340px, 100%) !important;
    margin: 0 auto clamp(24px, 3vw, 38px) !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12) !important;
}

body.historicum-cart-page .h-commerce-paper > .h-cart-progress .h-progress-step {
    color: #1a160e !important;
    opacity: 0.64 !important;
}

body.historicum-cart-page .h-commerce-paper > .h-cart-progress .h-progress-step::before {
    border-color: rgba(17, 17, 17, 0.34) !important;
}

body.historicum-cart-page .h-commerce-paper > .h-cart-progress .h-progress-step.is-active {
    color: #0a0a0a !important;
    opacity: 1 !important;
}

body.historicum-cart-page .h-med-cart-layout {
    grid-template-columns: minmax(0, 1.52fr) minmax(300px, 0.48fr) !important;
    gap: clamp(18px, 2.3vw, 34px) !important;
    max-width: 1640px !important;
}

body.historicum-cart-page .h-med-cart-items {
    min-width: 0 !important;
    padding: clamp(20px, 2.2vw, 28px) !important;
}

body.historicum-cart-page .h-med-cart-header,
body.historicum-cart-page .h-med-cart-item {
    grid-template-columns: minmax(260px, 1fr) minmax(92px, 112px) minmax(96px, 116px) minmax(118px, 138px) minmax(108px, 130px) minmax(74px, 88px) !important;
    column-gap: 12px !important;
}

body.historicum-cart-page .h-med-cart-price,
body.historicum-cart-page .h-med-cart-total,
body.historicum-cart-page .h-med-cart-qty {
    min-width: 0 !important;
    padding-right: 0 !important;
    font-size: 17px !important;
    white-space: nowrap !important;
}

body.historicum-cart-page .h-med-cart-remove {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Checkout title/description should travel with the left edge of the order content. */
body.historicum-checkout-page .h-checkout-summary-panel h2,
body.historicum-checkout-page .h-checkout-summary-panel > p {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Your Order heading: keep title, accent stroke, and note on the same left edge. */
body.historicum-checkout-page .h-checkout-summary-panel h2 {
    display: block !important;
    margin: 0 0 14px !important;
    padding: 0 0 12px !important;
    border-bottom: 0 !important;
    box-sizing: border-box !important;
}

body.historicum-checkout-page .h-checkout-summary-panel h2::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    height: 2px !important;
    background: var(--h-accent, #e7b900) !important;
    pointer-events: none !important;
}

body.historicum-checkout-page .h-checkout-summary-panel > p {
    margin: 0 0 20px !important;
    padding: 0 !important;
    font-size: clamp(21px, 1.55vw, 25px) !important;
    line-height: 1.42 !important;
    box-sizing: border-box !important;
}

@media (max-width: 1180px) {
    body.historicum-cart-page .h-med-cart-layout {
        grid-template-columns: 1fr !important;
    }

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

/* Final checkout order-panel alignment */
body.historicum-checkout-page .h-checkout-summary-panel h2,
body.historicum-checkout-page .h-checkout-summary-panel > p {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-summary-panel > p {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    font-size: clamp(21px, 1.55vw, 25px) !important;
}

body.historicum-checkout-page .h-checkout-review-order .form-row.place-order .woocommerce-privacy-policy-text,
body.woocommerce-checkout .h-checkout-review-order .form-row.place-order .woocommerce-privacy-policy-text {
    display: block !important;
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.34 !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-review-order tr.order-total th,
body.historicum-checkout-page .h-checkout-review-order tr.order-total td,
body.historicum-checkout-page .h-checkout-review-order tr.order-total strong,
body.historicum-checkout-page .h-checkout-review-order tr.order-total .amount,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review tr.order-total th,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review tr.order-total td,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review tr.order-total strong,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) #order_review tr.order-total .amount {
    font-size: clamp(25px, 2vw, 34px) !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
}

/* Cart and checkout titles must be identical. */
body.historicum-cart-page .h-cart-main-title,
body.historicum-checkout-page .h-checkout-main-title {
    margin: 0 0 16px !important;
    color: #050505 !important;
    font-family: var(--h-font-cinzel) !important;
    font-size: clamp(36px, 5vw, 62px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

body.historicum-cart-page .h-cart-heading-row,
body.historicum-cart-page .h-commerce-paper > .h-cart-progress,
body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-heading-row,
body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-topline {
    width: min(1360px, 100%) !important;
    max-width: 1360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: left !important;
}

body.historicum-cart-page .h-commerce-paper > .h-cart-progress,
body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-topline {
    justify-content: flex-start !important;
}

/* Final alignment pass: titles/progress align with the actual content blocks. */
body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-heading-row,
body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-topline {
    width: 100% !important;
    max-width: 1360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: left !important;
}

body.historicum-cart-page .h-cart-heading-row,
body.historicum-cart-page .h-commerce-paper > .h-cart-progress {
    width: 100% !important;
    max-width: 1640px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-policy-paper .h-checkout-topline,
body.historicum-cart-page .h-commerce-paper > .h-cart-progress {
    justify-content: flex-start !important;
}

body.historicum-checkout-page .h-checkout-summary-panel h2,
body.historicum-checkout-page .h-checkout-summary-panel > p {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-summary-panel > p {
    margin-top: 0 !important;
}

body.historicum-checkout-page .h-checkout-review-order .form-row.place-order,
body.woocommerce-checkout .h-checkout-review-order .form-row.place-order {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-review-order .form-row.place-order .woocommerce-privacy-policy-text,
body.historicum-checkout-page .h-checkout-review-order .form-row.place-order .woocommerce-privacy-policy-text p,
body.woocommerce-checkout .h-checkout-review-order .form-row.place-order .woocommerce-privacy-policy-text,
body.woocommerce-checkout .h-checkout-review-order .form-row.place-order .woocommerce-privacy-policy-text p {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}

/* Checkout order heading source of truth: title and note move as one unit. */
body.historicum-checkout-page .h-checkout-summary-panel .h-checkout-order-heading {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

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

body.historicum-checkout-page .h-checkout-summary-panel .h-checkout-order-heading h2 {
    position: relative !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
}

body.historicum-checkout-page .h-checkout-summary-panel .h-checkout-order-heading .h-checkout-order-note {
    margin: 0 0 22px !important;
    font-size: clamp(21px, 1.55vw, 25px) !important;
    line-height: 1.42 !important;
}

body.historicum-checkout-page .h-checkout-summary-panel .h-checkout-shipping-note {
    display: block !important;
    margin: 0 0 22px !important;
    padding: 24px 28px !important;
    border: 1px solid rgba(17, 17, 17, 0.28) !important;
    border-radius: 8px !important;
    background: rgba(235, 188, 0, 0.13) !important;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: clamp(16px, 1.05vw, 18px) !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

/* Account footer gap: old page CSS leaves bottom margin, and footer padding makes it read as dead space. */
body.historicum-account-page .h-ref-page-account .account-shell,
body.woocommerce-account .h-ref-page-account .account-shell,
body.historicum-account-page .woocommerce .h-ref-page .account-shell,
body.woocommerce-account .woocommerce .h-ref-page .account-shell {
    margin-bottom: 0 !important;
}

body.historicum-account-page .h-ref-page-account .account-paper,
body.woocommerce-account .h-ref-page-account .account-paper,
body.historicum-account-page .woocommerce .h-ref-page .account-paper,
body.woocommerce-account .woocommerce .h-ref-page .account-paper {
    padding-bottom: clamp(18px, 2.2vw, 28px) !important;
}

body.historicum-account-page #h-site-footer,
body.historicum-account-page .h-site-footer,
body.woocommerce-account #h-site-footer,
body.woocommerce-account .h-site-footer {
    margin-top: 0 !important;
    padding-top: 46px !important;
}

/* Final cart / checkout / account contracts. */
body.historicum-cart-page .h-med-cart-items,
body.historicum-cart-page .h-med-order-summary,
body.historicum-checkout-page .h-checkout-panel,
body.historicum-checkout-page .h-checkout-summary-panel {
    border: 1px solid #111111 !important;
}

body.historicum-cart-page .h-med-cart-form .h-commerce-paper-section .h-torn-bottom,
body.historicum-cart-page .h-commerce-recommendations .h-torn-top {
    display: none !important;
}

body.historicum-cart-page .h-med-cart-form .h-commerce-paper-section .h-commerce-paper,
body.historicum-cart-page .h-commerce-recommendations .h-commerce-paper {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

body.historicum-cart-page .h-commerce-recommendations .h-commerce-paper {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: clamp(20px, 2.2vw, 28px) !important;
    padding-left: clamp(20px, 2.2vw, 28px) !important;
    box-sizing: border-box !important;
}

body.historicum-cart-page .h-commerce-recommendations .h-paper-title,
body.historicum-cart-page .h-commerce-recommendations .h-commerce-rec-grid {
    width: min(1640px, 100%) !important;
    max-width: 1640px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.historicum-checkout-page .checkout_coupon,
body.woocommerce-checkout .checkout_coupon {
    overflow: visible !important;
}

body.historicum-checkout-page .h-checkout-coupon-details,
body.woocommerce-checkout .h-checkout-coupon-details {
    width: min(1360px, 100%) !important;
    max-width: 1360px !important;
    margin: 0 auto 22px !important;
    box-sizing: border-box !important;
}

body.historicum-checkout-page .h-checkout-coupon-summary,
body.woocommerce-checkout .h-checkout-coupon-summary {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    list-style: none;
}

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

body.historicum-checkout-page .h-checkout-coupon-summary::marker,
body.woocommerce-checkout .h-checkout-coupon-summary::marker {
    content: "";
}

body.historicum-checkout-page .h-checkout-coupon-action,
body.woocommerce-checkout .h-checkout-coupon-action {
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.historicum-checkout-page .h-checkout-coupon-details .checkout_coupon,
body.woocommerce-checkout .h-checkout-coupon-details .checkout_coupon {
    display: none;
    margin-top: 12px !important;
}

body.historicum-checkout-page .h-checkout-coupon-details[open] .checkout_coupon,
body.woocommerce-checkout .h-checkout-coupon-details[open] .checkout_coupon {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    transform: none;
}

body.historicum-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: clamp(15px, 1vw, 17px) !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

body.historicum-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info a,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
    color: #111111 !important;
    font: inherit !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.historicum-checkout-page .checkout_coupon input.input-text,
body.historicum-checkout-page .checkout_coupon input[type="text"],
body.woocommerce-checkout .checkout_coupon input.input-text,
body.woocommerce-checkout .checkout_coupon input[type="text"] {
    min-height: 46px !important;
    border: 1px solid #111111 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: 16px !important;
    padding: 10px 16px !important;
}

body.historicum-checkout-page .checkout_coupon .form-row,
body.historicum-checkout-page .checkout_coupon .form-row-first,
body.historicum-checkout-page .checkout_coupon .form-row-last,
body.woocommerce-checkout .checkout_coupon .form-row,
body.woocommerce-checkout .checkout_coupon .form-row-first,
body.woocommerce-checkout .checkout_coupon .form-row-last {
    float: none !important;
    clear: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border-radius: 999px !important;
}

body.historicum-checkout-page .checkout_coupon .form-row-first,
body.woocommerce-checkout .checkout_coupon .form-row-first {
    display: block !important;
    flex: 1 1 360px;
    min-width: min(100%, 320px);
}

body.historicum-checkout-page .checkout_coupon .form-row-last,
body.woocommerce-checkout .checkout_coupon .form-row-last {
    display: flex !important;
    flex: 0 0 auto;
    align-items: stretch;
}

body.historicum-checkout-page .checkout_coupon button.button,
body.historicum-checkout-page .checkout_coupon button[type="submit"],
body.woocommerce-checkout .checkout_coupon button.button,
body.woocommerce-checkout .checkout_coupon button[type="submit"] {
    display: inline-flex !important;
    width: auto !important;
    min-width: 150px !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 24px !important;
    border: 1px solid var(--h-accent, #ebbc00) !important;
    border-radius: 999px !important;
    border-top-left-radius: 999px !important;
    border-top-right-radius: 999px !important;
    border-bottom-right-radius: 999px !important;
    border-bottom-left-radius: 999px !important;
    clip-path: inset(0 round 999px) !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: var(--h-accent, #ebbc00) !important;
    background-clip: padding-box !important;
    color: #111111 !important;
    font-family: var(--h-font-cinzel, serif) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

body.historicum-checkout-page .checkout_coupon button.button::before,
body.historicum-checkout-page .checkout_coupon button.button::after,
body.historicum-checkout-page .checkout_coupon button[type="submit"]::before,
body.historicum-checkout-page .checkout_coupon button[type="submit"]::after,
body.woocommerce-checkout .checkout_coupon button.button::before,
body.woocommerce-checkout .checkout_coupon button.button::after,
body.woocommerce-checkout .checkout_coupon button[type="submit"]::before,
body.woocommerce-checkout .checkout_coupon button[type="submit"]::after {
    content: none !important;
    display: none !important;
}

body.historicum-checkout-page .checkout_coupon button.button:hover,
body.historicum-checkout-page .checkout_coupon button[type="submit"]:hover,
body.woocommerce-checkout .checkout_coupon button.button:hover,
body.woocommerce-checkout .checkout_coupon button[type="submit"]:hover {
    background: #f0c62d !important;
    box-shadow: none !important;
    transform: none !important;
}

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

@media (max-width: 820px) {
    body.historicum-account-page .h-ref-page-account.is-account-dashboard .account-shell,
    body.woocommerce-account .h-ref-page-account.is-account-dashboard .account-shell {
        margin-bottom: 58px !important;
        overflow: visible !important;
    }

    body.historicum-account-page .h-ref-page-account.is-account-dashboard .account-shell::after,
    body.woocommerce-account .h-ref-page-account.is-account-dashboard .account-shell::after {
        display: block !important;
        opacity: 1 !important;
    }

    body.historicum-cart-page .h-commerce-paper {
        width: calc(100% - 16px) !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    body.historicum-cart-page .h-commerce-recommendations .h-commerce-paper {
        width: 100% !important;
    }

    body.historicum-checkout-page .checkout_coupon .form-row-first,
    body.historicum-checkout-page .checkout_coupon .form-row-last,
    body.woocommerce-checkout .checkout_coupon .form-row-first,
    body.woocommerce-checkout .checkout_coupon .form-row-last {
        display: block !important;
        width: 100% !important;
        margin: 0 0 10px !important;
    }

    body.historicum-checkout-page .checkout_coupon button.button,
    body.historicum-checkout-page .checkout_coupon button[type="submit"],
    body.woocommerce-checkout .checkout_coupon button.button,
    body.woocommerce-checkout .checkout_coupon button[type="submit"] {
        width: 100% !important;
    }

    body.historicum-cart-page .h-med-cart-items {
        padding: 18px 10px !important;
        overflow: visible !important;
    }

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

    body.historicum-cart-page .h-med-cart-item {
        display: grid !important;
        grid-template-columns: 58px minmax(0, 1fr) minmax(48px, max-content) 40px minmax(50px, max-content) 30px !important;
        gap: 8px !important;
        align-items: center !important;
        padding: 16px 0 !important;
    }

    body.historicum-cart-page .h-med-cart-product {
        display: contents !important;
    }

    body.historicum-cart-page .h-med-cart-image {
        grid-column: 1 !important;
        width: 58px !important;
        min-width: 58px !important;
    }

    body.historicum-cart-page .h-med-cart-copy {
        grid-column: 2 !important;
        min-width: 0 !important;
        gap: 4px !important;
    }

    body.historicum-cart-page .h-med-cart-name {
        font-size: 14px !important;
        line-height: 1.18 !important;
    }

    body.historicum-cart-page .h-med-cart-meta {
        font-size: 11.5px !important;
        line-height: 1.2 !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;
        margin-top: 3px !important;
        padding: 0 !important;
        text-align: left !important;
    }

    body.historicum-cart-page .h-med-cart-wait-mobile::before,
    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: none !important;
        display: none !important;
    }

    body.historicum-cart-page .h-med-cart-wait-mobile .h-wait-badge {
        padding: 3px 7px !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    body.historicum-cart-page .h-med-cart-price {
        grid-column: 3 !important;
    }

    body.historicum-cart-page .h-med-cart-qty {
        grid-column: 4 !important;
    }

    body.historicum-cart-page .h-med-cart-total {
        grid-column: 5 !important;
    }

    body.historicum-cart-page .h-med-cart-remove {
        grid-column: 6 !important;
        justify-self: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.historicum-cart-page .h-med-cart-price,
    body.historicum-cart-page .h-med-cart-total,
    body.historicum-cart-page .h-med-cart-qty {
        justify-content: center !important;
        padding: 0 !important;
        font-size: 12px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    body.historicum-cart-page .h-med-cart-qty .quantity input[type="number"] {
        width: 34px !important;
        height: 30px !important;
        font-size: 13px !important;
    }

    body.historicum-cart-page .h-cart-remove {
        width: 26px !important;
        min-height: 26px !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 1 !important;
    }

    body.historicum-cart-page .h-cart-remove::before {
        content: "x";
        color: inherit;
        font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif));
        font-size: 18px;
        font-weight: 800;
        line-height: 1;
    }
}

@media (max-width: 480px) {
    body.historicum-cart-page .h-med-cart-item {
        grid-template-columns: 52px minmax(0, 1fr) minmax(42px, max-content) 36px minmax(44px, max-content) 26px !important;
        gap: 6px !important;
    }

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

/* Checkout cleanup source of truth: coupon, column alignment, order note, payment methods, and terms. */
body.historicum-checkout-page .h-checkout-coupon-summary,
body.woocommerce-checkout .h-checkout-coupon-summary,
body.historicum-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: var(--h-paper, #f5f0e6) !important;
    background-color: var(--h-paper, #f5f0e6) !important;
}

body.historicum-checkout-page .h-checkout-coupon-details .checkout_coupon,
body.woocommerce-checkout .h-checkout-coupon-details .checkout_coupon,
body.historicum-checkout-page .checkout_coupon,
body.woocommerce-checkout .checkout_coupon {
    background: transparent !important;
    background-color: transparent !important;
}

body.historicum-checkout-page .h-checkout-coupon-summary,
body.woocommerce-checkout .h-checkout-coupon-summary,
body.historicum-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    padding: 16px 18px !important;
    border: 1px solid rgba(17, 17, 17, 0.22) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

body.historicum-checkout-page .h-checkout-coupon-details[open] .checkout_coupon,
body.woocommerce-checkout .h-checkout-coupon-details[open] .checkout_coupon {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.historicum-checkout-page .checkout_coupon .form-row-first,
body.woocommerce-checkout .checkout_coupon .form-row-first {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body.historicum-checkout-page .checkout_coupon .form-row-last,
body.woocommerce-checkout .checkout_coupon .form-row-last {
    display: flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

body.historicum-checkout-page .checkout_coupon input.input-text,
body.historicum-checkout-page .checkout_coupon input[type="text"],
body.woocommerce-checkout .checkout_coupon input.input-text,
body.woocommerce-checkout .checkout_coupon input[type="text"] {
    width: 100% !important;
    min-width: 0 !important;
    border-right: 1px solid #111111 !important;
    border-radius: 999px !important;
    background: var(--h-paper, #f5f0e6) !important;
    background-color: var(--h-paper, #f5f0e6) !important;
}

body.historicum-checkout-page .checkout_coupon button.button,
body.historicum-checkout-page .checkout_coupon button[type="submit"],
body.woocommerce-checkout .checkout_coupon button.button,
body.woocommerce-checkout .checkout_coupon button[type="submit"] {
    min-width: clamp(132px, 12vw, 168px) !important;
    border-radius: 999px !important;
    clip-path: inset(0 round 999px) !important;
}

body.historicum-checkout-page .h-med-checkout-layout,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) {
    align-items: flex-start !important;
}

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

body.historicum-checkout-page .h-checkout-before-customer-details {
    width: min(1360px, 100%) !important;
    max-width: 1360px !important;
    margin: 0 auto 18px !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: flex-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 .h-checkout-billing,
body.woocommerce-checkout form.checkout:not(.h-med-checkout-form) .col2-set {
    align-self: flex-start !important;
    margin-top: 0 !important;
}

body.historicum-checkout-page .h-checkout-order-heading {
    margin: 0 !important;
}

body.historicum-checkout-page .h-checkout-summary-panel .h-checkout-order-heading {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.historicum-checkout-page .h-checkout-summary-panel .h-checkout-order-heading .h-checkout-order-note {
    display: none !important;
}

body.historicum-checkout-page .h-checkout-summary-panel .h-checkout-shipping-note {
    position: relative !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 22px !important;
    padding: 24px 28px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

body.historicum-checkout-page .h-checkout-review-order #payment,
body.historicum-checkout-page .h-checkout-review-order .woocommerce-checkout-payment,
body.woocommerce-checkout .h-checkout-review-order #payment,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-checkout-payment {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.historicum-checkout-page .h-checkout-review-order .wc_payment_methods,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_methods {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    gap: 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    list-style: none !important;
    overflow: hidden !important;
}

body.historicum-checkout-page .h-checkout-review-order .wc_payment_method,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method {
    position: relative !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    list-style: none !important;
}

body.historicum-checkout-page .h-checkout-review-order .wc_payment_method input.input-radio,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method input.input-radio {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.historicum-checkout-page .h-checkout-review-order .wc_payment_method label,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method label {
    display: flex !important;
    min-height: 54px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 0.3px solid #111111 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #111111 !important;
    font-family: var(--h-font-cinzel, serif) !important;
    font-size: clamp(12px, 0.95vw, 15px) !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    cursor: pointer !important;
}

body.historicum-checkout-page .h-checkout-review-order .wc_payment_method label img,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method label img {
    max-height: 24px !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    width: auto !important;
    margin: 0 !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: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: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-review-order .wc_payment_method input.input-radio:focus-visible + label,
body.woocommerce-checkout .h-checkout-review-order .wc_payment_method input.input-radio:focus-visible + label {
    box-shadow: 0 0 0 3px rgba(235, 188, 0, 0.24) !important;
}

body.historicum-checkout-page .h-checkout-review-order .payment_box,
body.woocommerce-checkout .h-checkout-review-order .payment_box {
    display: none !important;
}

body.historicum-checkout-page .h-checkout-review-order .form-row.place-order,
body.woocommerce-checkout .h-checkout-review-order .form-row.place-order {
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
    margin: 0 !important;
    text-align: left !important;
}

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

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,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-terms-and-conditions-wrapper .form-row,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-terms-and-conditions-wrapper label,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-terms-and-conditions,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-privacy-policy-text,
body.woocommerce-checkout .h-checkout-review-order .woocommerce-privacy-policy-text p,
body.woocommerce-checkout .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;
    font-size: 15px !important;
    line-height: 1.42 !important;
    text-align: left !important;
}

/* Order received endpoint */
body.historicum-checkout-page .h-checkout-endpoint-content {
    width: 100% !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    color: #111111 !important;
}

body.historicum-checkout-page .h-order-received,
body.historicum-checkout-page .h-order-received * {
    box-sizing: border-box !important;
}

body.historicum-checkout-page .h-order-received {
    display: block !important;
    width: 100% !important;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
}

body.historicum-checkout-page .h-order-received-hero {
    margin: 0 0 clamp(22px, 2.6vw, 34px) !important;
    padding: 0 !important;
    background: transparent !important;
    color: #111111 !important;
}

body.historicum-checkout-page .h-order-received-eyebrow {
    margin: 0 0 8px !important;
    color: #111111 !important;
    font-family: var(--h-font-cinzel, serif) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.11em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.historicum-checkout-page .h-order-received-hero h2,
body.historicum-checkout-page .h-order-received-card h2,
body.historicum-checkout-page .h-order-received-card h3 {
    margin: 0 !important;
    color: #111111 !important;
    font-family: var(--h-font-cinzel, serif) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

body.historicum-checkout-page .h-order-received-hero h2 {
    max-width: 980px !important;
    font-size: clamp(28px, 4.2vw, 58px) !important;
    background: transparent !important;
}

body.historicum-checkout-page .h-order-received-overview {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: clamp(18px, 2vw, 26px) 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.historicum-checkout-page .h-order-received-overview li {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 13px 14px !important;
    border: 0.3px solid #111111 !important;
    border-radius: 8px !important;
    background: transparent !important;
}

body.historicum-checkout-page .h-order-received-overview span {
    color: rgba(17, 17, 17, 0.72) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.historicum-checkout-page .h-order-received-overview strong {
    color: #111111 !important;
    font-size: clamp(15px, 1.1vw, 18px) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
}

body.historicum-checkout-page .h-order-received-grid {
    display: grid !important;
    gap: clamp(14px, 1.8vw, 22px) !important;
    margin: 0 0 clamp(18px, 2.2vw, 28px) !important;
}

body.historicum-checkout-page .h-order-received-grid--payment,
body.historicum-checkout-page .h-order-received-grid--addresses {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

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

body.historicum-checkout-page .h-order-received-card {
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(18px, 2.2vw, 28px) !important;
    border: 0.3px solid #111111 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #111111 !important;
    box-shadow: none !important;
}

body.historicum-checkout-page .h-order-received-card--pathway,
body.historicum-checkout-page .h-order-received-card--banks {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 16px !important;
}

body.historicum-checkout-page .h-order-card-label {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0.3px solid #111111 !important;
    border-radius: 999px !important;
    color: #111111 !important;
    font-family: var(--h-font-cinzel, serif) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.historicum-checkout-page .h-order-card-body {
    min-width: 0 !important;
}

body.historicum-checkout-page .h-order-received-card h3 {
    margin: 0 0 14px !important;
    font-size: clamp(22px, 1.9vw, 30px) !important;
}

body.historicum-checkout-page .h-order-received-card h4 {
    margin: 0 0 12px !important;
    color: #111111 !important;
    font-family: var(--h-font-cinzel, serif) !important;
    font-size: clamp(16px, 1.15vw, 19px) !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.historicum-checkout-page .h-order-received-card p {
    margin: 0 0 12px !important;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: clamp(16px, 1.05vw, 18px) !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

body.historicum-checkout-page .h-order-received-card p:last-child {
    margin-bottom: 0 !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-heading-row,
body.historicum-checkout-page.woocommerce-order-received .h-checkout-policy-paper .h-checkout-heading-row,
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-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-order-payment-currency-note {
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: clamp(14px, 1vw, 16px) !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
}

body.historicum-checkout-page .h-order-bank-list {
    display: grid !important;
    gap: 12px !important;
}

body.historicum-checkout-page .h-order-bank-account {
    min-width: 0 !important;
    padding: 15px !important;
    border: 0.3px solid #111111 !important;
    border-radius: 8px !important;
    background: transparent !important;
}

body.historicum-checkout-page .h-order-bank-account dl {
    display: grid !important;
    grid-template-columns: minmax(110px, 0.36fr) minmax(0, 0.64fr) !important;
    gap: 8px 14px !important;
    margin: 0 !important;
}

body.historicum-checkout-page .h-order-bank-account dt,
body.historicum-checkout-page .h-order-bank-account dd {
    min-width: 0 !important;
    margin: 0 !important;
    color: #111111 !important;
    font-size: clamp(14px, 1vw, 16px) !important;
    line-height: 1.28 !important;
}

body.historicum-checkout-page .h-order-bank-account dt {
    font-weight: 800 !important;
}

body.historicum-checkout-page .h-order-bank-account dd {
    font-weight: 600 !important;
    overflow-wrap: anywhere !important;
}

body.historicum-checkout-page .h-order-details-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    color: #111111 !important;
    background: transparent !important;
}

body.historicum-checkout-page .h-order-details-table th,
body.historicum-checkout-page .h-order-details-table td {
    padding: 13px 0 !important;
    border: 0 !important;
    border-bottom: 0.3px solid rgba(17, 17, 17, 0.34) !important;
    color: #111111 !important;
    font-size: clamp(16px, 1.1vw, 19px) !important;
    line-height: 1.36 !important;
    vertical-align: top !important;
    background: transparent !important;
}

body.historicum-checkout-page .h-order-details-table thead th {
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: clamp(16px, 1.05vw, 18px) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.historicum-checkout-page .h-order-details-table th:last-child,
body.historicum-checkout-page .h-order-details-table td:last-child {
    text-align: right !important;
}

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 {
    border-bottom: 0 !important;
    font-size: clamp(19px, 1.45vw, 24px) !important;
    font-weight: 900 !important;
}

body.historicum-checkout-page .h-order-details-table .product-quantity {
    font-weight: 800 !important;
    white-space: nowrap !important;
}

body.historicum-checkout-page .h-order-address-card address {
    margin: 0 !important;
    color: #111111 !important;
    font-family: var(--h-font-readable, var(--h-font-instrument, sans-serif)) !important;
    font-size: clamp(16px, 1.05vw, 18px) !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

body.historicum-checkout-page .h-order-received-hooks {
    margin: 0 !important;
}

body.historicum-checkout-page .h-order-received-hooks:empty {
    display: none !important;
}

body.historicum-checkout-page .h-order-received-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

body.historicum-checkout-page .h-order-received-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 18px !important;
    border: 0.3px solid #111111 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #111111 !important;
    font-family: var(--h-font-cinzel, serif) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

@media (max-width: 980px) {
    body.historicum-checkout-page .h-order-received-overview,
    body.historicum-checkout-page .h-order-received-grid--payment,
    body.historicum-checkout-page .h-order-received-grid--addresses {
        grid-template-columns: 1fr !important;
    }

    body.historicum-checkout-page .h-order-received-card--pathway,
    body.historicum-checkout-page .h-order-received-card--banks {
        grid-template-columns: 1fr !important;
    }

    body.historicum-checkout-page .h-order-card-label {
        width: 34px !important;
        height: 34px !important;
    }
}

@media (max-width: 640px) {
    body.historicum-checkout-page .h-order-bank-account dl {
        grid-template-columns: 1fr !important;
    }

    body.historicum-checkout-page .h-order-details-table th,
    body.historicum-checkout-page .h-order-details-table td {
        font-size: 15px !important;
    }
}

/* Exact WooCommerce purchase-data classes: readable font, black text, tabular numbers. */
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-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) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.historicum-checkout-page .h-checkout-summary-panel p.h-checkout-shipping-note[role="note"] {
    font-size: clamp(16px, 1.05vw, 18px) !important;
    font-weight: 500 !important;
    line-height: 1.55 !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;
}

/* My Account organization pass: wider paper, clearer columns, less compressed forms. */
body.historicum-account-page .h-account-login-shell,
body.woocommerce-account .h-account-login-shell {
    align-items: flex-start !important;
    padding: clamp(118px, 11vw, 154px) clamp(18px, 4vw, 58px) clamp(64px, 7vw, 96px) !important;
}

body.historicum-account-page .h-account-login-paper,
body.woocommerce-account .h-account-login-paper {
    width: min(1180px, 100%) !important;
    max-width: 1180px !important;
    padding: clamp(42px, 5vw, 76px) !important;
}

body.historicum-account-page .h-account-login-header,
body.woocommerce-account .h-account-login-header {
    margin-bottom: clamp(34px, 4vw, 52px) !important;
    padding-bottom: clamp(24px, 2.8vw, 36px) !important;
}

body.historicum-account-page .h-account-auth-grid,
body.woocommerce-account .h-account-auth-grid {
    gap: clamp(28px, 4vw, 56px) !important;
}

body.historicum-account-page .h-account-auth-grid.has-login-only,
body.woocommerce-account .h-account-auth-grid.has-login-only {
    grid-template-columns: minmax(0, 720px) !important;
}

body.historicum-account-page .h-account-auth-card,
body.woocommerce-account .h-account-auth-card {
    padding: clamp(30px, 3.8vw, 46px) !important;
}

body.historicum-account-page .h-account-auth-form .form-row,
body.woocommerce-account .h-account-auth-form .form-row {
    margin-bottom: 20px !important;
}

body.historicum-account-page .h-account-auth-actions,
body.woocommerce-account .h-account-auth-actions {
    margin-top: 8px !important;
    gap: 16px 22px !important;
}

body.historicum-account-page .h-ref-page-account .account-shell,
body.woocommerce-account .h-ref-page-account .account-shell,
body.historicum-account-page .woocommerce .h-ref-page .account-shell,
body.woocommerce-account .woocommerce .h-ref-page .account-shell {
    margin-top: clamp(108px, 9vw, 136px) !important;
    margin-bottom: clamp(42px, 5vw, 72px) !important;
}

body.historicum-account-page .h-ref-page-account .account-paper,
body.woocommerce-account .h-ref-page-account .account-paper,
body.historicum-account-page .woocommerce .h-ref-page .account-paper,
body.woocommerce-account .woocommerce .h-ref-page .account-paper {
    padding: clamp(46px, 5vw, 78px) clamp(28px, 5vw, 82px) clamp(48px, 5vw, 76px) !important;
}

body.historicum-account-page .h-ref-page-account .account-inner,
body.woocommerce-account .h-ref-page-account .account-inner {
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr) !important;
    gap: clamp(28px, 4vw, 58px) !important;
    width: min(1520px, 100%) !important;
    max-width: 1520px !important;
}

body.historicum-account-page .h-ref-page-account .account-heading,
body.woocommerce-account .h-ref-page-account .account-heading {
    margin-bottom: clamp(28px, 3vw, 42px) !important;
}

body.historicum-account-page .h-ref-page-account .account-grid,
body.woocommerce-account .h-ref-page-account .account-grid {
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr) !important;
    gap: clamp(30px, 4vw, 60px) !important;
}

body.historicum-account-page .h-ref-page-account .account-nav,
body.woocommerce-account .h-ref-page-account .account-nav,
body.woocommerce-account .woocommerce-MyAccount-navigation {
    gap: 14px !important;
}

body.historicum-account-page .h-ref-page-account .account-nav a,
body.woocommerce-account .h-ref-page-account .account-nav a,
body.woocommerce-account .woocommerce-MyAccount-navigation a {
    padding: 18px 22px !important;
}

body.historicum-account-page .h-ref-page-account .account-content,
body.woocommerce-account .h-ref-page-account .account-content {
    gap: clamp(28px, 3vw, 40px) !important;
}

body.historicum-account-page .h-ref-page-account .account-card,
body.woocommerce-account .h-ref-page-account .account-card {
    padding: clamp(30px, 3vw, 46px) !important;
}

body.historicum-account-page .h-ref-page-account .quick-actions,
body.woocommerce-account .h-ref-page-account .quick-actions {
    gap: clamp(20px, 2.5vw, 32px) !important;
    margin-top: clamp(28px, 3vw, 42px) !important;
}

body.historicum-account-page .h-ref-page-account .quick-action-card,
body.woocommerce-account .h-ref-page-account .quick-action-card {
    padding: clamp(24px, 2.4vw, 34px) !important;
}

@media screen and (max-width: 980px) {
    body.historicum-account-page .h-account-auth-grid,
    body.woocommerce-account .h-account-auth-grid {
        grid-template-columns: 1fr !important;
    }

    body.historicum-account-page .h-ref-page-account .account-inner,
    body.woocommerce-account .h-ref-page-account .account-inner,
    body.historicum-account-page .h-ref-page-account .account-grid,
    body.woocommerce-account .h-ref-page-account .account-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    body.historicum-account-page .h-ref-page-account .account-heading,
    body.woocommerce-account .h-ref-page-account .account-heading {
        grid-column: 1 !important;
        text-align: center !important;
    }

    body.historicum-account-page .h-ref-page-account .account-title,
    body.historicum-account-page .h-ref-page-account .account-greeting,
    body.woocommerce-account .h-ref-page-account .account-title,
    body.woocommerce-account .h-ref-page-account .account-greeting {
        text-align: center !important;
    }

    body.historicum-account-page .h-ref-page-account .account-nav,
    body.woocommerce-account .h-ref-page-account .account-nav,
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 640px) {
    body.historicum-account-page .h-account-login-paper,
    body.woocommerce-account .h-account-login-paper,
    body.historicum-account-page .h-ref-page-account .account-paper,
    body.woocommerce-account .h-ref-page-account .account-paper {
        padding: 30px 18px 34px !important;
    }

    body.historicum-account-page .h-ref-page-account .account-nav,
    body.woocommerce-account .h-ref-page-account .account-nav,
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.historicum-account-page .h-ref-page-account .quick-actions,
    body.woocommerce-account .h-ref-page-account .quick-actions {
        grid-template-columns: 1fr !important;
    }
}
