/*
Theme Name: Epock Local Foundation
Description: Local native-block foundation derived from approved Epock Homepage v1.0.0 assets. Homepage sections are intentionally deferred.
Template: twentytwentyfive
Version: 0.1.2
Requires at least: 7.0
Requires PHP: 8.0
Text Domain: epock-local-foundation
*/
body { background: #ae8137 url('assets/background.png') center top / cover repeat-y; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.epock-header { padding: 1.25rem clamp(1rem, 4vw, 3rem); }
.epock-brand { gap: 1rem; }
.epock-brand .wp-block-site-logo img { width: 108px; height: 108px; object-fit: contain; }
.epock-brand .wp-block-site-title { font-size: clamp(2rem, 5vw, 4.75rem); line-height: 1.1; font-weight: 900; text-transform: uppercase; }
.epock-brand a { text-decoration: none; }
.epock-header .wp-block-navigation { font-size: 2.625rem; font-weight: 400; }
.epock-header .wp-block-navigation .wp-block-navigation-item a { color: #e4bd68; background-color: #443b30; border-radius: .2rem; padding: .2rem .55rem; }
.epock-main { min-height: 35vh; padding: 2rem clamp(1rem, 4vw, 3rem) 4rem; }
.epock-footer { background: linear-gradient(#e9c465, #a77230); padding: 1.5rem clamp(1rem, 4vw, 3rem); }
.epock-footer .wp-block-navigation { font-size: 1.25rem; }
a:focus-visible, button:focus-visible { outline: 3px solid #100e09; outline-offset: 4px; }
.wp-block-navigation__responsive-container.is-menu-open { background: #efd27a; color: #100e09; padding: 2rem; }
.epock-header .wp-block-navigation .is-menu-open .wp-block-navigation-item a { color: #100e09; background: transparent; }
.wp-block-navigation__responsive-container-open { color: #100e09; padding: .7rem; border: 2px solid currentColor; border-radius: .25rem; }
@media (max-width: 760px) {
 .epock-brand .wp-block-site-logo img { width: 76px; height: 76px; }
 .epock-brand { gap: .6rem; }
 .epock-brand .wp-block-site-title { font-size: clamp(1.7rem, 7vw, 2.8rem); }
 .epock-header .wp-block-navigation { font-size: 1.375rem; }
 .epock-header { padding: 1rem; }
 .epock-main { padding-top: 1.5rem; }
}

/* Match the storefront content panel on WooCommerce order confirmation only. */
body.woocommerce-order-received main:has(.wp-block-woocommerce-order-confirmation-status) {
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: 1080px;
    margin-inline: auto;
    padding: clamp(12px, 3vw, 32px);
    border: 1px solid rgba(86, 61, 32, .36);
    border-radius: 8px;
    background: rgba(255, 248, 230, .92);
    color: #211910;
    overflow-wrap: anywhere;
}

body.woocommerce-order-received .epock-header .wp-block-navigation .wp-block-navigation-item a {
    color: #100e09;
    background: none;
    border-radius: 0;
    padding: 0;
    text-shadow: none;
}

body.woocommerce-order-received .epock-header .wp-block-navigation-item a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

body.woocommerce-order-received .epock-header .wp-block-navigation-item a:focus-visible {
    outline: 3px solid #100e09;
    outline-offset: 4px;
    background: #fffaf0;
}

/* Reserve a readable amount column in the native Blocks confirmation table. */
body.woocommerce-order-received .wc-block-order-confirmation-totals__table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}
body.woocommerce-order-received .wc-block-order-confirmation-totals__table .wc-block-order-confirmation-totals__product,
body.woocommerce-order-received .wc-block-order-confirmation-totals__table .wc-block-order-confirmation-totals__label {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
}
body.woocommerce-order-received .wc-block-order-confirmation-totals__table .wc-block-order-confirmation-totals__total {
    box-sizing: border-box;
    width: 8.5rem;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    text-align: right;
    vertical-align: top;
}
@media (max-width: 480px) {
    body.woocommerce-order-received .wc-block-order-confirmation-totals__table :is(th, td) {
        padding-inline: .5rem;
    }
    body.woocommerce-order-received .wc-block-order-confirmation-totals__table .wc-block-order-confirmation-totals__total {
        width: 7rem;
    }
}
