/**
Theme Name: The Rare Book Room
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-rare-book-room
Template: astra
*/

aside.header-widget-area.widget-area p {
    margin-bottom: 0;
}

p.trbr-search-values {
    display: flex;
    gap: 5px 20px;
    flex-wrap: wrap;
}

.mb-0 {
    margin-bottom: 0px !important;
}

.mb-50 {
    margin-bottom: 50px !important;
}

.color-primary {
    color: var(--ast-global-color-0);
}

.trbr-search-summary h1,
h1.woocommerce-products-header__title.page-title {
    font-size: 2rem;
    font-weight: 600;
}


header.entry-header .entry-title {
    font-size: 2.5rem !important;
    font-weight: 600;
}

.ast-desktop .ast-primary-header-bar .main-header-menu>.menu-item {
    line-height: normal !important;
    padding-bottom: 43px;
    margin-top: 40px;
    margin-bottom: 0px;
    cursor: pointer;
}

/* Modern Basic Radio Buttons */
.trbr-radio-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trbr-radio-buttons input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #9CA3AF;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trbr-radio-buttons input[type="radio"]:checked {
    border-color: var(--ast-global-color-1);
    background-color: #EEF2FF;
}

.trbr-radio-buttons input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: var(--ast-global-color-1);
}

.trbr-radio-buttons label {
    font-weight: 500;
    cursor: pointer;
    padding-left: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .trbr-radio-buttons input[type="radio"]:checked+label {
    color: var(--ast-global-color-1);
}
 */
.trbr-radio-buttons label:has(input[type="radio"]:checked) {
    color: var(--ast-global-color-1);
}

.trbr-time-filter-wrapper.trbr-radio-buttons {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: center;
    font-size: 16px;
}

.trbr-time-filter-wrapper.trbr-radio-buttons label {
    padding-left: 0;
    display: flex;
    color: #000;
}

.trbr-time-filter-wrapper.trbr-radio-buttons input[type="radio"] {
    margin-right: 5px;
}

.trbr-category-grid {
    gap: 12px 50px;
    margin: 0 auto;
    column-count: 5;
    padding-bottom: 30px;
    cursor: default;
}

.trbr-category-link {
    display: block;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    margin-bottom: 12px;
}

.trbr-category-link:hover {
    color: var(--ast-global-color-1);
    text-decoration: none;
}

a.trbr-category-link.active {
    color: var(--ast-global-color-1);
    text-decoration: none;
}

h1.woocommerce-products-header__title.page-title {
    color: var(--ast-global-color-0);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 1.3em;
}

.ast-desktop .ast-mega-menu-enabled .menu-categories-list.astra-megamenu-li:hover .astra-megamenu {
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: 30px;
}

.ast-menu-toggle:focus {
    outline: none;
}

.ast-mobile-header-wrap .menu-item-has-children>a[href="#"] {
    pointer-events: none;
}

.woocommerce-no-products-found {
    margin-bottom: 300px;
}

.contact-page-icons a:hover,
span.trbr-category-number {
    color: var(--ast-global-color-1) !important;
}

.trbr-category-no-link {
    cursor: none !important;
    pointer-events: none !important;
}

.trbr-category-no-link:hover {
    color: #000 !important;
}


.ast-builder-menu-1 .menu-item.current-menu-item>.menu-link {
    color: var(--ast-global-color-1) !important;
}

.ast-builder-menu-1 .menu-item:hover~.menu-item.current-menu-item>.menu-link,
.ast-builder-menu-1 .menu-item.current-menu-item~.menu-item:hover>.menu-link {
    color: var(--ast-global-color-0) !important;
}

.ast-builder-menu-1 .menu-item.current-menu-item:hover>.menu-link {
    color: var(--ast-global-color-1) !important;
}

li.trbr-category-menu-item {
    display: inline-block;
    width: 100%;
    vertical-align: super;
}

@media (min-width:768.98px) and (max-width: 1140px) {
    .trbr-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
        column-count: 2;
        padding-left: 50px !important;
        gap: 0;
    }

    .trbr-time-filter-wrapper.trbr-radio-buttons label {
        align-items: center;
    }

    .trbr-time-filter-wrapper.trbr-radio-buttons {
        gap: 30px;
        padding-left: 50px;
        margin-bottom: 20px;
    }

    .ast-header-break-point .ast-icon.icon-arrow svg {
        margin-left: 0;
    }
}


@media (max-width: 768px) {
    .trbr-time-filter-wrapper.trbr-radio-buttons {
        display: flex;
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    #trbr-browse-btn {
        margin-top: 10px;
    }

    .trbr-time-filter-wrapper.trbr-radio-buttons label {
        align-items: center;
    }

    .trbr-time-filter-wrapper {
        padding-left: 30px;
    }

    .trbr-category-grid {
        column-count: 1;
        grid-template-columns: none;
        padding-left: 30px !important;
        gap: 0;
    }

    .ast-header-break-point .ast-icon.icon-arrow svg {
        margin-left: 0;
    }

    .trbr-profile-buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
        display: flex;
        gap: 10px;
    }

    .woocommerce-no-products-found {
        margin-bottom: 250px;
    }

    body.page-template-template-dealer-profile .ast-article-single {
        padding: 0;
    }

    .trbr-filter-with-grid {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 50px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .trbr-dealer-dtl-header {
        display: inline-grid;
        align-items: normal;
    }


    .trbr-dealer-dtl-contact span {
        display: block;
        margin-bottom: 10px;
        padding-left: 15px;
        font-size: 14px;
    }

    .trbr-dealer-dtl-contact .fas {
        font-size: 14px;
        color: #000000;
    }

    .trbr-dealer-dtl-contact {
        display: block;
    }

    .trbr-dealer-dtl-contact i {
        margin-right: 5px;
    }

    .site .site-content #primary main>article {
        padding-left: 0;
        padding-right: 0;
    }

    .ast-separate-container .comment-respond {
        padding: 1.34em 1em !important;
    }

    .title-with-cta.mb-50 {
        margin-bottom: 20px !important;
    }
}


/*----------------------------
List and Grid
-----------------------------*/
#trbr-product-wrapper {
    display: none;
}

.trbr-toggle-btn {
    padding: 8px 14px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 4px;
}

.trbr-toggle-btn.active {
    background-color: var(--ast-global-color-1);
    border-color: var(--ast-global-color-1);
}

.trbr-toggle-btn.active svg path,
.trbr-toggle-btn:hover svg path {
    fill: #ffffff;
}

/* List View */
.trbr-product-list {
    display: block !important;
}

.trbr-product-list li.product {
    display: flex;
    gap: 20px;
    width: 100% !important;
    border-bottom: 1px solid #ddd !important;
    box-sizing: border-box;
    flex-direction: row !important;
    justify-content: flex-start;
}

.trbr-offer {
    margin-bottom: 30px;
}

.trbr-product-list li.product .woocommerce-loop-product__link {
    display: flex;
    gap: 20px;
    align-items: center;
}

.trbr-product-list li.product img {
    max-width: 150px;
    height: auto;
}

.trbr-product-list .loop-trbr-dealer-name {
    display: none;
}

.ast-shop-toolbar-container {
    display: none !important;
}

.trbr-filter-with-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

.trbr-view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button.trbr-toggle-btn svg {
    width: 30px;
    height: 30px;
}


form.trbr-dealer-sort-form {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-basis: 50%;
}

form.trbr-dealer-sort-form select {
    width: 300px;
    padding: .75em;
}

form.trbr-dealer-sort-form label {
    white-space: nowrap;
    font-weight: 600;
    color: #000;
}

.woocommerce-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-numbers {
    background: #000;
    width: 30px;
    height: 30px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.page-numbers:hover {
    background: var(--ast-global-color-0);
    color: #ffffff;
}

.page-numbers.current {
    background: var(--ast-global-color-0);
}

a.page-numbers:hover,
a.page-numbers:focus {
    color: #FFFFFF;
}

.trbr-dealer-all-products {
    margin-top: 50px;
}


p.product-book-authors a {
    color: #0274be;
    font-size: 20px;
    font-weight: 700;
}

.toggle-content-button {
    color: #0274be;
    cursor: pointer;
}

.trbr-filter-with-grid,
.product-book-authors {
    color: #000000;
    font-weight: 800;
    padding-top: 10px;
}

.trbr-book-table td:last-child {
    min-width: 185px;
}

ul#trbr-product-wrapper.trbr-product-grid .clamp-container,
ul#trbr-product-wrapper.trbr-product-grid .trbr-offer {
    display: none !important;
}

.clamp-container {
    position: relative;
}

.trbr-line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.6em;
    max-height: calc(1.6em * 3);
    position: relative;
    transition: all 0.3s ease;
}

.trbr-line-clamp.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.desc-more-fade {
    position: absolute;
    right: 0;
    bottom: 4px;
    padding-left: 20px;
    background: linear-gradient(to right, transparent, white 30%);
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.desc-less {
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.astra-shop-thumbnail-wrap {
    min-width: 150px;
}

.headline-top {
    color: #000000 !important;
    text-align: center;
}

.trbr-product-list .headline-top {
    display: none !important;
}

.custom-header-search {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    max-width: 220px;
}

.custom-header-search input[type="text"] {
    border: none;
    padding: 8px 12px;
    flex: 1;
    outline: none;
    width: 85%;
}

.custom-header-search button {
    background: none;
    border: none;
    padding: 0px 0px;
    cursor: pointer;
    color: #555;
    width: 15%;
    background-color: #ffffff;
    padding-top: 5px;
}

.header-widget-area[data-section="sidebar-widgets-header-widget-2"] p {
    display: none !important;
}

p.product-book-authors {
    margin-bottom: 0;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding: 0 0;
}

.featured-product-item h2 {
    margin-top: 15px;
    margin-bottom: 5px;
}

.featured-product-item h2 a,
.featured-product-item h3 {
    font-size: 1rem;
    line-height: 1.3rem !important;
    display: inline-block;
}

.featured-product-item h3 {
    margin-top: 5px;
    display: block;
}

.featured-category-item h3 {
    font-size: 1rem;
    line-height: 1.3rem !important;
    display: inline-block;
}


.h2 {
    font-size: 1.875rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.3em !important;
}

.h5 {
    font-size: 1rem !important;
    line-height: 1.5em !important;
    font-weight: 500 !important;
}

.hidden {
    display: none !important;
}

/* .astra-shop-summary-wrap p.product-book-authors {
    color: var(--ast-global-color-0);
    line-height: 20px;
    margin-top: 0px;
} */

#trbr-product-wrapper .astra-shop-summary-wrap h2.woocommerce-loop-product__title {
    margin-top: 5px !important;
    margin-bottom: 8px !important;
}

#trbr-product-wrapper .astra-shop-summary-wrap span.woocommerce-Price-amount.amount bdi {
    font-size: 15px;
    color: var(--ast-global-color-3);
    font-weight: 400;
}

/* #trbr-product-wrapper .astra-shop-summary-wrap h2.woocommerce-loop-product__title a {
    color: var(--ast-global-color-2);
} */

body.single-product .summary.entry-summary h1 {
    margin-top: 10px;
}

body.single-product form.cart {
    margin-top: 15px;
}

a.desc-toggle {
    color: var(--ast-global-color-1);
}

nav.navigation.post-navigation {
    padding: 0em 6.67em;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .comment-respond {
    padding: 1.34em 6.67em;
}

.site .comments-area {
    padding-bottom: 0;
}

body.page-template-template-dealer-list .ast-article-single,
#trbr-dealer-search-form {
    margin-bottom: 40px;
}

#trbr-advanced-search-form {
    margin-bottom: 24px;
}

.comment-respond {
    margin-bottom: 19px;
}

div#primary.custom-search,
body.post-type-archive-product div#primary,
body.page-template-template-dealer-profile div#primary {
    margin-bottom: 20px !important;
}

body.page-template-page-search-result div#primary {
    margin-bottom: 40px !important;
}

ul.trbr-product-list {
    margin-bottom: 84px !important;
}

.trbr-offer {
    display: flex;
    flex-wrap: wrap;
}

.trbr-offer strong {
    margin-right: 15px;
}

.trbr-currency-switcher {
    position: relative;
    display: inline-block;
}

.currency-toggle {
    padding: 8px;
    border: 1px solid #ccc;
    color: #000 !important;
    background: #fff !important;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
}

input[name="q"] {
    font-size: 16px;
}

nav.woocommerce-breadcrumb {
    display: none !important;
}

.currency-list {
    display: none;
    position: absolute;
    top: 98%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 999;
    margin: 0;
}

button.currency-toggle:hover {
    background: #ffffff;
    color: #000000;
}

li.currency-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

li.currency-option img {
    width: 25px;
    margin-right: 8px;
    height: 18px;
}

span.selected-currency-flag img {
    width: 25px !important;
    height: 18px;
}

small.trbr-price-note em {
    font-size: 15px;
    color: #000;
}

.custom-product-description p {
    color: #777777 !important;
}

.custom-product-description p strong,
.custom-product-description p b,
.custom-product-description p a {
    color: #000000 !important;
}

footer#colophon a:hover {
    color: var(--ast-global-color-1) !important;
}

.ast-footer-copyright p {
    margin-bottom: 0;
}

.trbr-dealer-dtl-contact a:hover {
    color: var(--ast-global-color-1) !important;
}

@media (max-width:768px) {
    ul.wp-block-social-links {
        display: flex;
        justify-content: center;
    }

    .trbr-dealer-dtl-header {
        flex-direction: column;
    }

    nav.navigation.post-navigation {
        padding: 0em 1em;
    }

    .site .site-content #primary {
        padding: 2rem;
    }

    body.home .site .site-content #primary {
        padding: 0;
    }

    ul.trbr-product-list {
        margin-bottom: 0 !important;
    }

    ul#trbr-product-wrapper,
    ul#trbr-product-wrapper li {
        display: flex !important;
        flex-direction: column !important;
    }

}

@media (max-width: 1140px) {
    nav.navigation.post-navigation {
        padding: 0em 2.14em;
    }
}

@media (max-width: 1200.98px) {
    .custom-header-search {
        max-width: 100%;
        margin: 0 0px;
        border-top: 0;
        border-radius: 0;
    }

    .custom-header-search button {
        width: 65px;
    }

    nav.navigation.post-navigation {
        padding: 0em 2.4em;
    }

    .ast-separate-container .ast-woocommerce-container {
        padding: 0;
    }

    .trbr-category-link {
        font-size: 14px;
        margin-bottom: 5px;
        line-height: 24px;
    }
}

@media (min-width: 1201px) {
    .ast-separate-container .ast-woocommerce-container {
        /* padding: 5.34em 6.67em; */
        padding: 0;
    }
}

@media screen and (min-width: 1331px) and (max-width: 1440px) {
    .ast-builder-menu-1 .menu-item>.menu-link {
        font-size: 1rem;
    }

    .header-widget-area[data-section="sidebar-widgets-header-widget-2"] {
        display: block;
        /* max-width: 150px; */
    }
}

@media screen and (min-width: 1141px) and (max-width: 1249.99px) {
    .ast-builder-menu-1 .menu-item>.menu-link {
        font-size: 0.8rem;
    }

    .main-header-menu .menu-link,
    .main-header-menu>a {
        padding: 0 8px;
    }

    .header-widget-area[data-section="sidebar-widgets-header-widget-2"] {
        display: block;
        max-width: 200px;
    }

    .custom-header-search button {
        width: 30px;
    }

    .site-primary-header-wrap .ast-builder-grid-row {
        grid-column-gap: 5px;
    }

    area.site-header-focus-item.header-widget-area-inner {
        padding-left: 0;
    }

    .custom-header-search input[type="text"] {
        border: none;
        padding: 8px 5px;
        font-size: 13px;
    }

    .custom-header-search svg {
        width: 15px;
    }
}



@media screen and (min-width: 1141px) and (max-width: 1224.99px) {
    .ast-builder-menu-1 .menu-item>.menu-link {
        font-size: 0.85rem !important;
    }
}

@media screen and (min-width: 1225px) and (max-width: 1378px) {
    .ast-builder-menu-1 .menu-item>.menu-link {
        font-size: 0.9rem !important;
    }

    .main-header-menu .menu-link,
    .main-header-menu>a {
        padding: 0 8px;
    }

    .header-widget-area[data-section="sidebar-widgets-header-widget-2"] {
        display: block;
        max-width: 220px;
    }

    .custom-header-search button {
        width: 30px;
    }

    .site-primary-header-wrap .ast-builder-grid-row {
        grid-column-gap: 5px;
    }

    area.site-header-focus-item.header-widget-area-inner {
        padding-left: 0;
    }

    .custom-header-search input[type="text"] {
        border: none;
        padding: 8px 5px;
        font-size: 0.9rem !important;
    }

    .custom-header-search svg {
        width: 15px;
    }
}

@media screen and (min-width: 1281px) and (max-width: 1378px) {
    .ast-builder-menu-1 .menu-item>.menu-link {
        font-size: 1rem !important;
    }
}


@media screen and (min-width: 575px) and (max-width: 1200px) {
    .trbr-toggle-btn {
        padding: 7px 12px;
    }

    button.trbr-toggle-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media screen and (max-width: 575px) {
    .trbr-filter-with-grid {
        flex-direction: column;
    }

    .trbr-view-toggle {
        margin-top: 30px;
    }

    form.trbr-dealer-sort-form select {
        width: 210px;
    }

    .trbr-toggle-btn {
        padding: 7px 12px;
    }

    button.trbr-toggle-btn svg {
        width: 24px;
        height: 24px;
    }

    .trbr-form-left-half {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .trbr-filter-with-grid {
        flex-direction: column;
    }

    .trbr-view-toggle {
        margin-top: 30px;
    }

    form.trbr-dealer-sort-form select {
        width: 210px;
    }

    .trbr-toggle-btn {
        padding: 7px 12px;
    }

    button.trbr-toggle-btn svg {
        width: 24px;
        height: 24px;
    }
}


body.single-post .entry-meta {
    display: none !important;
}


.pagination-wrapper,
ul.page-numbers {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.woocommerce .woocommerce-pagination ul.page-numbers::before,
.woocommerce .woocommerce-pagination ul.page-numbers::after {
    content: '';
    display: none;
}

.woocommerce-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.woocommerce-js nav.woocommerce-pagination ul {
    background: #ffffff !important;
    width: 100%;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li>span.current,
.woocommerce nav.woocommerce-pagination ul li>.page-numbers {
    border-color: #be9667;
    display: flex;
}

.woocommerce .woocommerce-pagination ul.page-numbers li,
.woocommerce-page .woocommerce-pagination ul.page-numbers li {
    display: inline-block;
    min-width: 30px !important;
    min-height: 30px !important;
}

.woocommerce-js nav.woocommerce-pagination ul li a,
.woocommerce-js nav.woocommerce-pagination ul li span {
    min-width: 30px !important;
    min-height: 30px !important;
}

.page-numbers.current,
.pagination-wrapper a:hover {
    background: #be9667 !important;
}

.title-with-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

p.footer-maintain-text {
    text-align: right;
    margin-bottom: 0;
    color: #ffffff;
}

p.footer-maintain-text a:focus {
    color: #be9667;
    outline: none;
}

.ast-scroll-to-top-right {
    right: 30px;
    bottom: 90px !important;
}

@media (max-width: 1139.80px) {
    p.footer-maintain-text {
        text-align: center;
    }
}

.btn-small {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    border-radius: 4px;
}

.hover-white:hover,
.hover-white:focus {
    background: #ffffff;
    color: #000000;
}

/* Newsletter Popup Styles */
.trbr-newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.trbr-newsletter-popup.trbr-popup-active {
    display: flex;
}

.trbr-newsletter-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    touch-action: none;
}

.text-highlight {
    color: #be9667;
    text-decoration: underline;
}

.trbr-newsletter-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
    touch-action: pan-y;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.trbr-newsletter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.trbr-newsletter-popup-close:hover {
    color: #ffffff;
}

.trbr-newsletter-popup-logo {
    text-align: center;
    margin-bottom: 20px;
}

.trbr-newsletter-popup-logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.trbr-newsletter-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.trbr-newsletter-message.trbr-message-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.trbr-newsletter-message.trbr-message-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.trbr-newsletter-message-text {
    display: block;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trbr-newsletter-field {
    margin-bottom: 15px;
}

.trbr-newsletter-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000;
    font-size: 14px;
}

.trbr-newsletter-field input[type="email"] {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.trbr-newsletter-field input[type="email"]:focus {
    outline: none;
    border-color: var(--ast-global-color-1, #be9667);
}

.trbr-newsletter-checkboxes {
    margin-bottom: 18px;
}

.trbr-newsletter-checkbox {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trbr-newsletter-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #9CA3AF;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    position: relative;
}

.trbr-newsletter-checkbox input[type="checkbox"]:checked {
    background-color: var(--ast-global-color-1, #be9667);
    border-color: var(--ast-global-color-1, #be9667);
}

.trbr-newsletter-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.trbr-newsletter-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    font-weight: 400;
}

/* Error states for newsletter form */
.trbr-newsletter-field input[type="email"].trbr-input-error {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.trbr-newsletter-field input[type="email"].trbr-input-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.trbr-newsletter-checkbox input[type="checkbox"].trbr-checkbox-error {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.trbr-newsletter-checkbox input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--ast-global-color-1, #be9667);
    box-shadow: 0 0 0 2px rgba(190, 150, 103, 0.2);
}

.trbr-newsletter-checkbox input[type="checkbox"].trbr-checkbox-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.trbr-newsletter-submit-btn {
    width: 100%;
    text-align: center;
    border: 1px solid #000;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #ffffff;
    color: #000000;
}

.trbr-newsletter-submit-btn:hover {
    background-color: var(--ast-global-color-1, #be9667);
}

.trbr-newsletter-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trbr-newsletter-return-link {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.trbr-newsletter-return-link a {
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 8px;
}

.trbr-newsletter-return-link a:last-child {
    margin-bottom: 0;
}

.trbr-newsletter-return-link a:hover {
    color: var(--ast-global-color-2, #6b4f30);
}

.trbr-newsletter-catalog-link {
    display: block;
    margin-bottom: 10px;
}

/* Ensure newsletter button is clickable on mobile */
.newsletter-btn,
a.newsletter-btn,
button.newsletter-btn,
span.newsletter-btn,
div.newsletter-btn {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 999 !important;
    display: inline-block !important;
    -webkit-touch-callout: none !important;
}

/* Ensure child elements don't block clicks */
.newsletter-btn * {
    pointer-events: none !important;
}

.newsletter-btn:active,
a.newsletter-btn:active,
button.newsletter-btn:active,
span.newsletter-btn:active,
div.newsletter-btn:active {
    opacity: 0.7 !important;
    transform: scale(0.98) !important;
}

/* Make sure button is visible and not hidden */
.newsletter-btn {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {

    .newsletter-btn,
    a.newsletter-btn,
    button.newsletter-btn,
    span.newsletter-btn,
    div.newsletter-btn {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 10px 15px !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.2) !important;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .trbr-newsletter-popup {
        padding: 10px;
    }

    .trbr-newsletter-popup-content {
        padding: 30px 20px;
        max-width: 95%;
        margin: 20px auto;
    }

    .trbr-newsletter-popup-logo img {
        max-width: 150px;
        max-height: 60px;
    }

    .trbr-newsletter-message {
        padding: 10px 12px;
        font-size: 13px;
    }

    .trbr-newsletter-checkbox {
        gap: 10px;
    }

    .trbr-newsletter-checkbox input[type="checkbox"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .trbr-newsletter-checkbox label {
        font-size: 13px;
    }

    .trbr-newsletter-popup-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        top: 10px;
        right: 10px;
        font-size: 36px;
    }

    .trbr-newsletter-submit-btn {
        padding: 14px 10px;
        font-size: 14px;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }

    .trbr-view-catalog-btn {
        font-size: 14px !important;
        padding: 9px 9px !important;
    }

    .trbr-newsletter-field input[type="email"] {
        font-size: 16px;
        /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Prevent body scroll on mobile when popup is open */
body.trbr-popup-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

html.trbr-popup-open {
    overflow: hidden !important;
}

/* ── Infinite scroll spinner (search page) ───────────────────────────────── */
.trbr-load-more-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    width: 100%;
}

.trbr-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: #333;
    border-radius: 50%;
    animation: trbr-spin 0.7s linear infinite;
}

@keyframes trbr-spin {
    to {
        transform: rotate(360deg);
    }
}


.trbr-newsletter-popup-heading {
    text-align: center;
    margin-bottom: 25px;
}

.trbr-newsletter-popup-heading h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.trbr-newsletter-popup-heading p {
    font-size: 14px;
    line-height: 1.5;
}

.optional {
    font-weight: normal;
    opacity: 0.7;
}

.trbr-view-catalog-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--ast-global-color-0, #000);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.trbr-view-catalog-btn:hover {
    background-color: var(--ast-global-color-1, #be9667);
    color: #ffffff;
}

.trbr-button-note {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.8;
}

.trbr-newsletter-divider {
    position: relative;
    text-align: center;
    margin: 10px 0;
}

.trbr-newsletter-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 45%;
    height: 1px;
    background: #d9d9d9;
}

.trbr-newsletter-divider:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 45%;
    height: 1px;
    background: #d9d9d9;
}

.trbr-newsletter-divider span {
    background: #fff;
    padding: 0 10px;
    font-size: 14px;
    color: #777;
    position: relative;
    z-index: 1;
}

.trbr-newsletter-bottom-text {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: #666;
    margin-bottom: 0;
}