/*
 Theme Name:   Czania
 Theme URI:    https://couponzania.com
 Description:  Child theme for Rehub, created for CouponZania customisation
 Author:       Rajat Singh
 Author URI:   https://couponzania.com
 Template:     rehub-theme
 Version:      1.0.0
*/

/*

/* Fix image whitespace */
.rh-cash-tax img {
  max-height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.rh-hover-tax {
  position: relative;
  overflow: hidden;
}

/* Kill dead anchor overlap stealing hover */
.rh-hover-tax p {
  display: none;
}

/* Ensure hover text is fully visible */
.rh-hover-tax .rh-hover-tax-inner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: var(--rehub-main-color, #e84545);
  color: #fff !important;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.rh-hover-tax:hover .rh-hover-tax-inner {
  opacity: 1 !important;
}

.rh-hover-tax a:empty {
  display: none !important;
}

/* coupon modal */
.violetgradient_bg{background-color:#721999; background: linear-gradient(to bottom,#333333 0,#999 100%);}
.cpn_modal_container{background-color: #f9f9f9;}
.coupon_code_in_modal input.code {color: #302243;}
.pinkLcolor {color: #f9f9f9;}

/* ==============================
   TABLE SYSTEM — COUPONZANIA
   ============================== */

/* Scroll wrapper for mobile */
.entry-content table,
.wp-block-table table,
.wp-block-table table.has-fixed-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Core table reset */
.entry-content table,
.wp-block-table table,
.wp-block-table table.has-fixed-layout {
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto !important;
    margin: 24px 0 32px;
    font-size: 14px;
    font-family: inherit;
    min-width: 480px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 113, 227, 0.08);
    background: #ffffff;
}

/* Figure wrapper reset */
figure.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0 32px;
    border: none !important;
    padding: 0 !important;
}

/* Header row */
.entry-content table thead tr,
.wp-block-table table thead tr,
.wp-block-table table.has-fixed-layout thead tr {
    background: #0071e3;
}

.entry-content table th,
.wp-block-table table th,
.wp-block-table table.has-fixed-layout th {
    background: #0071e3 !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 13px 16px;
    text-align: left;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    vertical-align: middle;
}

.entry-content table th:last-child,
.wp-block-table table th:last-child,
.wp-block-table table.has-fixed-layout th:last-child {
    border-right: none !important;
}

/* Body cells */
.entry-content table td,
.wp-block-table table td,
.wp-block-table table.has-fixed-layout td {
    padding: 11px 16px;
    border-bottom: 1px solid #e8e8e8 !important;
    border-right: 1px solid #e8e8e8 !important;
    border-top: none !important;
    border-left: none !important;
    vertical-align: top;
    line-height: 1.55;
    color: #333333;
    background: #ffffff;
}

.entry-content table td:last-child,
.wp-block-table table td:last-child,
.wp-block-table table.has-fixed-layout td:last-child {
    border-right: none !important;
}

/* Last row — remove bottom border */
.entry-content table tr:last-child td,
.wp-block-table table tr:last-child td,
.wp-block-table table.has-fixed-layout tr:last-child td {
    border-bottom: none !important;
}

/* Zebra rows */
.entry-content table tbody tr:nth-child(even) td,
.wp-block-table table tbody tr:nth-child(even) td,
.wp-block-table table.has-fixed-layout tbody tr:nth-child(even) td {
    background: #f4f8fe;
}

/* Hover state */
.entry-content table tbody tr:hover td,
.wp-block-table table tbody tr:hover td,
.wp-block-table table.has-fixed-layout tbody tr:hover td {
    background: #e8f1fc;
    transition: background 0.15s ease;
}

/* First column emphasis */
.entry-content table td:first-child,
.wp-block-table table td:first-child,
.wp-block-table table.has-fixed-layout td:first-child {
    font-weight: 600;
    color: #0071e3;
}

/* Links inside tables */
.entry-content table a,
.wp-block-table table a {
    color: #0071e3;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content table a:hover,
.wp-block-table table a:hover {
    color: #333333;
}

/* Gutenberg border overrides */
.wp-block-table.is-style-regular {
    border: none !important;
}

.wp-block-table.is-style-regular td,
.wp-block-table.is-style-regular th {
    border-color: #e8e8e8 !important;
}

/* Mobile */
@media (max-width: 640px) {
    .entry-content table,
    .wp-block-table table,
    .wp-block-table table.has-fixed-layout {
        font-size: 13px;
        border-radius: 8px;
        min-width: unset;
    }

    .entry-content table th,
    .wp-block-table table th,
    .wp-block-table table.has-fixed-layout th {
        padding: 10px 12px;
    }

    .entry-content table td,
    .wp-block-table table td,
    .wp-block-table table.has-fixed-layout td {
        padding: 9px 12px;
    }
}

/* ==============================
   FONT FACE
   ============================== */

.post p a{color:#0071e3}
.post li a{color:#0071e3}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://couponzania.com/wp-content/uploads/fonts/poppins-v24-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://couponzania.com/wp-content/uploads/fonts/poppins-v24-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://couponzania.com/wp-content/uploads/fonts/poppins-v24-latin_latin-ext-700.woff2') format('woff2');
}

/* ==============================
   REHUB FILTER PANEL (Mobile)
   ============================== */

@media (max-width: 768px) {
  .rh-flex-center-align.re_filter_panel {
    display: inline-flex !important;
    gap: 5px;
    background-color: transparent !important;
    padding: 2px 3px !important;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    border: none !important;
    line-height: normal !important;
    margin-bottom: 5px !important;
  }

  .re_filter_ul {
    list-style: none;
    display: flex !important;
    padding: 0;
    margin: 0;
    gap: 5px;
  }

  .re_filter_ul li {
    margin: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
  }

  .re_filtersort_btn {
    display: inline-block !important;
    padding: 3px 10px !important;
    color: black;
    background-color: transparent !important;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid transparent;
    text-align: center;
    transition: background .3s, border .3s;
    line-height: normal !important;
  }

  .re_filtersort_btn::after {
    content: '' !important;
    display: none !important;
  }

  .re_filtersort_btn.active {
    background-color: transparent !important;
    color: black !important;
    border: 1px solid black !important;
  }

  .re_filter_panel {
    margin-bottom: 5px !important;
    padding: 2px 3px !important;
    border-radius: 4px;
    border: none !important;
    display: inline-flex !important;
    align-items: center;
    background-color: transparent !important;
  }

  .rh_category_tab.widget.rh-cartbox.rehub-sec-smooth {
    display: none;
  }
}

/* Hide the 4th filter tab */
.re_filter_ul li:nth-child(4) { display: none !important; }

/* ==============================
   OFFER LIST & CATEGORY CARDS
   ============================== */

.col_item.mb10.text-center.rh-main-bg-hover.blackcolor.rh-cartbox.big-tax-link {
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  padding: 2px;
  margin-bottom: 10px;
  min-height: 50px;
  height: auto;
  font-size: 12px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .3s, background-color .3s, color .3s;
}

.col_item.mb10.text-center.rh-main-bg-hover.blackcolor.rh-cartbox.big-tax-link:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
  background-color: #e9e9e9;
  color: #000 !important;
}
/* Offer list card */
.rh_offer_list {
  background: linear-gradient(to right, #ffffff, #f3f3f2);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  border-radius: 10px;
  padding: 20px 20px 5px;
  color: #000;
  border-left: 2px solid #333;
  margin-bottom: 10px;
  transition: transform .3s, box-shadow .3s;
}
.rh_offer_list:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}
.rh_offer_list a:hover { background-color: #f0f0f0; }

/* Hidden elements */
.rev_disclaimer,
.listtimeleft.mr5.rh-nowrap { color: red; }

.single-post .author_detail_box,
#content-sticky-panel,
.wpsm-cat-title,
.re-search-result-meta,
.wp-block-image .aligncenter>figcaption,
.wp-block-image figcaption,
.cpn_desc.greycolor.mb10.fontitalic {
  display: none !important;
}

/* Misc */
.footer-bottom .footer_widget a { text-decoration: none; }

.header-top { display: block !important; }

img {
  object-fit: cover;
}

/* ==============================
   FOOTER OPTION B (FINAL)
   ============================== */

.cz-footer{
  background:#ffffff;
  color:#222;
  font-family:'Poppins',sans-serif;
  margin:0;
  padding:10px 20px !important;
  font-size:14px;
  line-height:1.5;
  isolation:isolate;
}

.cz-footer *,
.cz-footer *::before,
.cz-footer *::after{
  box-sizing:border-box;
  font:inherit;
  line-height:inherit;
  color:inherit;
}

/* Links */
.cz-footer a{color:#333;text-decoration:none}
.cz-footer a:hover{color:#000}
.cz-footer a:focus-visible{outline:2px solid #000;outline-offset:2px}

/* Layout */
.cz-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:12px;
  align-items:start;
}
@media(max-width:991px){
  .cz-wrap{grid-template-columns:1fr;gap:12px}
}

/* Brand block */
.cz-brand{display:grid;grid-template-rows:auto auto auto;row-gap:8px}
.cz-brand a{display:inline-flex;align-items:center}
.cz-brand img{width:164px;height:auto;border-radius:6px;background:#fff}

/* Intro text */
.cz-intro{margin:0}
.cz-intro p{margin:0;max-width:60ch;color:#333}

/* Social icons */
.cz-social{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 0}
.cz-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.cz-social i{font-size:16px}
.cz-x i{color:#000}
.cz-facebook i{color:#1877F2}
.cz-youtube i{color:#FF0000}
.cz-telegram i{color:#26A5E4}
.cz-pinterest i{color:#E60023}
.cz-linkedin i{color:#0A66C2}

/* Link columns */
.cz-links{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px}
@media(max-width:520px){.cz-links{grid-template-columns:1fr}}

.cz-col .cz-title{
  display:block;
  font-weight:600;
  margin:0 0 6px;
  color:#111;
  border-bottom:1px solid #dcdcdc;
  padding-bottom:5px;
}

.cz-col ul{list-style:none;margin:0;padding:0}
.cz-col li{margin:0 0 6px}

/* Bottom disclosure */
.cz-bottom{border-top:1px solid #ddd;margin:8px 0 0;padding:6px 0}
.cz-disclosure{
  max-width:1000px;
  margin:0 auto;
  text-align:center;
  color:#444;
}
.cz-disclosure p{margin:0}
.cz-disclosure strong{color:#111}

/* Clamp footer margin */
footer.cz-footer{
  margin-top:0 !important;
  margin-bottom:0 !important;
}