/* Keep the existing theme palette and strengthen foreground contrast where needed. */
.woocommerce-checkout main .showcoupon,
.woocommerce-checkout main .showlogin,
.woocommerce-cart main .woocommerce-message a:not(.button),
.woocommerce-checkout main .woocommerce-info a:not(.button) { color: #145c59; text-decoration: underline; }
.woocommerce-checkout form.checkout .woocommerce-invalid input,
.woocommerce-checkout form.checkout .woocommerce-invalid .select2-selection { border-color: #9c2525; }
.th-checkout-email-error { display: block; color: #9c2525; font-size: .875em; }
.th-checkout-email-error:not(:empty) { margin-top: .25rem; }
.woocommerce .product_toggle .th-catalog-disclosure,
.woocommerce .variation-label .th-catalog-disclosure,
.mobile_grand_kids button.toggle,
.mobile_grand_kids button.item,
.close_filters button.closeMe,
.filtersremove button.closeMe {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    letter-spacing: inherit;
    text-align: left;
}
.woocommerce .product_toggle .th-catalog-disclosure,
.woocommerce .variation-label .th-catalog-disclosure {
    display: block;
    width: 100%;
    padding: 0;
}
.woocommerce .product_toggle .th-catalog-disclosure {
    color: inherit;
    font: inherit;
    text-transform: inherit;
}
.woocommerce .product_toggle .toggle_content[hidden] { display: none; }
.mobile_grand_kids button.item {
    border-bottom: .5px solid lightgrey;
    font: inherit;
}
.mobile_grand_kids button.item:last-child { border-bottom: 0; }
.close_filters button.closeMe,
.filtersremove button.closeMe {
    color: inherit;
    font: inherit;
    margin-left: 10px;
    padding: 0;
}
.woocommerce ul.products li.product :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title),
.single-product .alt-builder-code > a,
.tax-product_cat .parent_filters a.item,
body.category :is(.entry-meta a, .more-link) { color: #176c68; }
@media (max-width: 768px) {
    .woocommerce ul.products li.product,
    .woocommerce ul.products li.product > a {
        min-width: 0;
    }
    .woocommerce ul.products li.product > a {
        max-width: 100%;
    }
    .woocommerce ul.products li.product :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title) {
        overflow-wrap: anywhere;
    }
}
@media (max-width: 360px) {
    .woocommerce ul.products li.product :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title) {
        font-size: 1rem;
    }
}
.tax-product_cat .woocommerce-result-count { color: #656565; }
/* Keep a failed photo's intrinsic width from expanding the shared panels. */
.tax-product_cat .reuseable-blocks-container .wp-block-group > .wp-block-columns {
    min-inline-size: 0;
    max-inline-size: 100%;
}
.single-product.woocommerce a.button.inverse,
.tax-product_cat .reuseable-blocks-container .gb-block-button > a[href$="/custom-furniture/"] {
    background-color: #176c68;
    color: #fff;
}
.tax-product_cat .reuseable-blocks-container a.has-theme-primary-background-color {
    background-color: #176c68 !important;
    color: #fff;
}
.single-product.woocommerce a.button.inverse:is(:hover, :focus) { background-color: #333; }
#amelia-container .am-advsc__slots-item[role="button"]:focus-visible,
#amelia-container .am-fs-sb__menu[role="button"]:focus-visible,
.woocommerce .select2-selection:focus-visible { outline: 3px solid #111 !important; outline-offset: 2px; box-shadow: 0 0 0 4px #fff; }
.th-booking-help { text-align: center; margin: 0 auto 1.25rem; }
.th-booking-help a { color: #145c59; text-decoration: underline; }
.page-id-29894 .amelia-v2-booking #amelia-container .am-fs__congrats-info-customer .am-fs__ci-label,
.page-id-29894 .amelia-v2-booking #amelia-container .am-fs__congrats-main > .am-fs__congrats-main-heading + span {
    color: #6b747a;
}
/* The compact confirmation places the appointment ID on the navy calendar background. */
.page-id-29894 .amelia-v2-booking #amelia-container .am-fs-sb-atc .am-fs__congrats-main > .am-fs__congrats-main-heading + span {
    color: #aab4cd;
}
#th-main-content .wp-block-table th[scope="row"] { text-align: start; }
.th-gallery-dialog { width: min(92vw, 1100px); max-height: 95dvh; padding: 0; border: 0; background: #111; color: #fff; }
.th-gallery-dialog::backdrop { background: rgb(0 0 0 / 85%); }
.th-gallery-dialog figure { margin: 0; }
.th-gallery-dialog img { display: block; width: 100%; max-height: 76dvh; object-fit: contain; }
.th-gallery-dialog figcaption { padding: .5rem 1rem; text-align: center; }
.th-gallery-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: .5rem; }
.th-gallery-controls button { padding: .4rem .7rem; border: 1px solid #fff; color: #fff; background: #111; }
.woocommerce .woocommerce-product-gallery .flex-control-thumbs .th-gallery-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
    cursor: pointer;
}
.woocommerce .woocommerce-product-gallery .flex-control-thumbs .th-gallery-thumbnail:focus-visible {
    outline: 3px solid #111 !important;
    outline-offset: -4px !important;
    z-index: 1;
}
.woocommerce .woocommerce-product-gallery .flex-control-thumbs .th-gallery-thumbnail:focus-visible::after {
    position: absolute;
    inset: 4px;
    border: 2px solid #fff;
    content: "";
    pointer-events: none;
}
.woocommerce form.checkout h2.th-checkout-section { font-size: 24px; line-height: 1.2; margin-bottom: 20px; }
.townehaus-post-content .th-editorial-heading {
    color: inherit;
    font: inherit;
    line-height: 1.62;
    margin: 0 0 28px;
    text-transform: none;
    letter-spacing: normal;
}

/* Light brand teal stays in the palette; text and controls use the existing darker shade. */
.entry-content .wp-block-button__link.has-theme-primary-background-color,
.page-id-79 .entry-content a.wp-block-button__link[href$="/book-showroom-appointment"] {
    background-color: #176c68 !important;
    color: #fff !important;
}
.page-id-30035 .entry-content .wp-block-paragraph > a[href*="/product/"],
.blog-card .blog-card-category a { color: #145c59; text-decoration: underline; text-underline-offset: .15em; }
.blog-card .blog-card-meta time,
.blog-card .blog-card-meta .reading-time,
.townehaus-post-meta time,
.townehaus-post-meta span,
.townehaus-recent-item time,
.townehaus-blog-breadcrumb { color: #656565; }
.th-content-spacer.wp-block-paragraph { margin-bottom: 28px; }
.page-id-76 .entry-content a[href$="#review"],
.page-id-190 .entry-content :is(p, li) a,
.page-id-30035 .entry-content .wp-block-paragraph a,
.page-id-33470 .entry-content .wp-block-paragraph a,
.woocommerce-cart main :is(.product-name a, .shipping-calculator-button),
.wp-block-query-pagination a {
    color: #145c59;
    text-decoration: underline;
    text-underline-offset: .15em;
}
.wp-block-latest-posts__post-date,
.townehaus-recent-posts time { color: #656565; }
.page-id-175597 .wp-block-latest-posts__post-date { color: #656565 !important; }
.page-id-30035 h2.wp-block-heading.has-theme-primary-color,
.woocommerce-account main :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) a {
    color: #145c59 !important;
}
.woocommerce-account main .woocommerce-MyAccount-content a { text-decoration: underline; }

dialog.stay-updated-popup {
    border: 0;
    color: inherit;
    margin: 0;
    max-height: none;
    max-width: none;
    padding: 0;
}
dialog.stay-updated-popup:not([open]) { display: none; }
dialog.stay-updated-popup::backdrop { background: transparent; }

#gutenslider-uuiq52dcj .th-featured-collection-title {
    font-weight: 700;
    padding: 0;
}
#gutenslider-uuiq52dcj .th-featured-collection-title--body-font {
    font-family: proxima-nova, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.625;
    margin: 0 0 28px;
    text-transform: none;
}
.viz-swatch-gallery__pagination {
    margin-top: 1.25rem;
    text-align: center;
}
.viz-swatch-gallery__more-button {
    background: #176c68;
    border: 1px solid #176c68;
    border-radius: 5px;
    color: #fff;
    font: inherit;
    padding: .6em 1em;
}
.viz-swatch-gallery__more-button:hover {
    background: #145c59;
    color: #fff;
}
