/* STYLES */

/* Custom Styles for Deal and Coupon Sale Badge */
/* span.onsale.discount-type-fixed,
span.onsale.discount-type-percent, */
span.onsale.tm-onsale,
span.onsale.tm-expired {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-transform: uppercase;
} 

/* onsale tm-onsale discount-type-fixed */
/*
span.onsale.discount-type-percent {
    background-color: #e62117 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
    top: 10px !important;
    left: 0px !important;
    right: auto !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-transform: uppercase;
}
*/

.tm-onsale.discount-type-percent {
    background-color: #e62117 !important; /* Bold Deal Red */
}

.tm-onsale.discount-type-fixed {
    background-color: #1e73be !important; /* Bold Coupon Blue */
}

span.onsale.tm-expired {
    background-color: #fff !important;
    color: #c00 !important;
    border-radius: 0px !important;
    border: 1px solid #c00;
    border-left-width: 5px;
    letter-spacing: 1px;
    font-weight: 300 !important;
}

.brand-thumbnails li img.brand-thumbnail {
    max-width: 180px;
    margin: 0 auto;
    display: block;
}



.deal-meta-info {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.deal-discount-label {
    color: #F4752E;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    word-wrap: break-word;
    background: #FFF2E9;
    padding: 3px 5px;
}
.deal-expiry-date {
    color: #46464A;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    word-wrap: break-word;
}

/* Discount Pill */
.deal-discount-value {
    background: #fff0f0;
    color: #e62117;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #ffdada;
    text-transform: uppercase;
}

/* Expiry Text */
/* .deal-expiry-date {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
}

.deal-expiry-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    color: #999;
} */

.tm-products-wrapper {

}
.tm-products-wrapper .products.columns-3 {

}

.tm-products-wrapper .products.columns-3 .product {

}

.tm-products-wrapper .products.columns-3 .product .woocommerce-LoopProduct-link{
    /* display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    overflow: hidden; */
}

.products .deal-brand-label {
    color: var(--accent);
    display: block;
    text-align: left;
    font-size: 14px;
    line-height: 21px;
    word-wrap: break-word;
    font-weight: 500;
}

.tm-archive-item .wc-product-image {
    border-radius: 20px;
    border: 1px solid #EEE;
    background: #FFF;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    text-align: center !important;
}

.tm-archive-item .brand-logo-image {
    object-fit: contain !important; /* Prevents stretching logos */
    background-color: #ffffff;
    padding: 15px;
    opacity: .8;
}

.tm-archive-item .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 500;
    line-height: 24px;
    word-wrap: break-word;
    margin: 0 !important;
}

.deal-card-footer {
    margin-top: 15px;
}

.deal-actions .button.deal-trigger-btn {
    margin: 0 !important;
    font-size: 11px;
    line-height: 1.2;
    padding: 4px 6px;
    border-radius: 3px;
}

.deal-actions .btn-prefix {
    font-size: 11px;
    color: #46464A;
    font-weight: 300;
}

body.home #main {
    margin-top: 0;
}
body.home .inside-article {
    padding-top: 0;
    padding-bottom: 0;
}


.site-header {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-bottom: 1px #DDDDDD solid;
}

.deal-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.woocommerce .blockUI.blockOverlay::before {
    background: url(../img/loader.svg) center center no-repeat !important;
}

.woocommerce .deal-actions .blockUI.blockOverlay::before {
    color: var(--accent);
    height: 17px;
    width: 17px;
    left: 100%;
    margin-top: -0.3em;
    margin-left: 0.3em;
}

.tm-status-expired .deal-actions {
    display: none;
    visibility: hidden;
    opacity: 0;
}

.tm-archive-item:hover,
.tm-archive-item:focus {
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); */
    transform: translateY(-2px);
    opacity: .98;
    transition: all 0.3s ease;
}

.tm-archive-item:hover .wc-product-image,
.tm-archive-item:focus .wc-product-image {
    transform: scale(1.05);
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

.tm-archive-item .inside-wc-product-image{
    position: inherit;
    max-width: 180px;
}

.widget-area.is-left-sidebar .widget {
    padding: 10px 40px;
}

.sidebar-filters-search .wp-block-search__label,
.sidebar-filters-search .wp-block-search__label strong,
.widget-area.is-left-sidebar h3.wp-block-heading, 
.widget-area.is-left-sidebar h3.wp-block-heading strong {
    font-size: 17px !important;
    font-weight: 700;
}

input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    border-radius: 5px !important;
}

.sidebar-filters-search .wp-block-search__label {
    display: block;
    margin-bottom: 0.625rem;
}

.sidebar-filters-search .wp-block-search__input {
    font-size: 15px !important;
    padding: 7px 15px !important;
}

.brand-thumb-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    padding: 30px;
    border-radius: 20px;
}

body.tax-product_tag .tm-filter-promotion-type,
body.tax-product_tag .tm-filter-application-type {
    display: none;
}

#tmgp-related-products-wrapper .products > h2{
    display: none;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{
    margin-bottom: inherit !important;
}

/* Ensure 5 columns on Brand archives for Desktop */
@media (min-width: 1025px) {
    #tmgp-related-products-wrapper .products ul.products,
    .woocommerce.tax-product_brand .wc-columns-container ul.products {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 40px;
    }
    
    /* Remove GeneratePress default float-based widths if necessary */
    /* .tax-product_brand ul.products li.product {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0px !important;
    } */
}
/* Mobile (2 columns) */
@media (max-width: 768px) {
    #tmgp-related-products-wrapper .products ul.products,
    .woocommerce.tax-product_brand .wc-columns-container ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet (3 columns) */
@media (min-width: 769px) and (max-width: 1024px) {
    #tmgp-related-products-wrapper .products ul.products,
    .woocommerce.tax-product_brand .wc-columns-container ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

ul.brand-thumbnails li a {
    border-radius: 20px;
    border: 1px solid #EEE;
    background: #FFF;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.04);
    text-align: center !important;
    display: block;
    padding: 15px;
}

/* .entry-header, .site-content {
    word-wrap: break-word;
    padding: 20px 40px;
} */

/* .brand-main-image-wrapper {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
} */


.tm-hero-meta-col{

}

.tm-hero-meta-title{
    color: #ababaf;
    font-size: 14px;
    font-weight: 500;
    margin: 0px 0px 5px 0px;
}

.tm-hero-meta-value {
    font-weight: 700;
}

.coupon-text .tm-hero-meta-value {
    color: var(--base);
}

.deal-actions .button.deal-trigger-btn.hero-btn {
    font-size: 18px;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(256,256,256,0.10);
    border-radius: 12px;
    line-height: 1;
    /* transition: unset !important; */
    transition: all 0s !important;
}
.deal-actions .button.deal-trigger-btn.hero-btn:hover{
    background-color: var(--base);
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb{
    /* color: var(--base) !important;    */
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb a{
    color: var(--accent) !important;
    text-decoration: none;
}

.woocommerce-breadcrumb{
    font-size: 18px !important;
    display: flex;
    align-items: center;
    justify-content: start;
}

.woocommerce-breadcrumb .tm-separator {
    font-size: 12px;
    padding: 0 5px;
}

.tm-caution-notice-wrapper {
    padding: 20px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    background: #F9FAFB;
    margin-top: 50px;
}
.tm-caution-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}
.tm-caution-head .dashicons {
    color: #DC1A1A;
    margin-right: 5px;
}
.tm-caution-body {
    font-size: 14px;
    color: #46464A;
}
.tm-caution-body ol {
    margin-left: 20px;
    margin-bottom: 0;
}
.tm-caution-body > ol > li {
    margin-bottom: 5px;
    font-weight: 700;
}
.gb-container.tm-faqs-wrapper {
    margin-top: 50px;
}
.tm-faqs-wrapper > .gb-headline {
    font-weight: 900;
}
.tm-faqs-wrapper .gb-button.tm-faq-toggle {
    display: flex;
    width: 100%;
}
.tm-deal-summary-wrapper.gb-accordion .gb-icon,
.tm-faqs-wrapper .tm-faq-toggle .gb-icon {
    color: var(--accent);
    border: 1px solid;
    padding: 3px;
    border-radius: 50%;
}
.tm-deal-summary-wrapper > .gb-headline {
    font-size: 14px;
    font-weight: 700;
}
.tm-deal-summary-wrapper.gb-accordion .gb-button-text{
    font-size: 20px;
    font-weight: 700;
}
.tm-deal-summary-wrapper.gb-accordion .gb-button.gb-accordion__toggle {
    justify-content: start;
    column-gap: 1em;
}
.single-product .widget-area .widget{
    padding-left: 0;
    padding-right: 0;
}
.tm-round-avatar.wp-block-avatar {
    position: relative;
    background: #ddd;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ccc;
}

body.tm-deal-expired .tm-deal-hero {
    position: relative;
    overflow: hidden;
}
body.tm-deal-expired .tm-deal-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgb(185 10 10 / 50%);
    height: 150%;
    width: 100%;
    z-index: 0;
}
.gb-element-d02bb859{
    position: relative;
    z-index: 1;
}
.hero-btn.expiry-btn {
    border-radius: 10px !important;
    background-color: #fff !important;
    color: var(--wc-red) !important;
    border: 1px solid var(--wc-red) !important;
    font-weight: 700 !important;    
}
body.tm-deal-expired .woocommerce-breadcrumb {
    color: #e2e2e4;
}
body.tm-deal-expired .brand-thumb-wrapper{
    border-color: #e2e2e4;
}

.tm-brand-link:hover, .tm-brand-link:focus, .tm-brand-link:active,
.tm-affiliate-link:hover, .tm-affiliate-link:focus, .tm-affiliate-link:active {
    opacity: 0.9;
    transform: scale(1.1);
    transition: all 0.2s;
}

.tax-product_brand .gb-container.tm-faqs-wrapper {
    margin-top: 100px;
}


/* Desktops OR Higher Screens */
@media only screen and (min-width: 991px) {
    
}

/* Tablets OR Higher Screens */
@media only screen and (min-width: 769px) {
    
}

/* Desktops OR Lower Screens */
@media only screen and (max-width: 991px) {
    
}

/* Tablets OR Lower Screens */
@media only screen and (max-width: 768px) {
    
}

/* Mobile Screens */
@media only screen and (max-width: 480px) {
  .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product{
    width: 100% !important;
  }      
}