/*
CTC Separate Stylesheet
Updated: 2020-06-07 11:21:08
*/

.cbv-info-topbar {
    color: #ffffff;
    text-align: left;
}

.cbv-info-topbar .container {
    max-width: 100%;
}

.cbv-info-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cbv-info-topbar__left,
.cbv-info-topbar__right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cbv-info-topbar__right {
    margin-left: auto;
    justify-content: flex-end;
}

.cbv-info-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.cbv-info-topbar__icon {
    color: #ffdd00;
    font-size: 13px;
    flex-shrink: 0;
}

.cbv-info-topbar__sep {
    color: rgba(255, 255, 255, 0.55);
    padding: 0 2px;
}

.cbv-info-topbar a {
    color: #ffffff;
    text-decoration: none;
}

.cbv-info-topbar a:hover {
    color: #ffffff;
    opacity: 0.85;
}

.cbv-info-topbar__social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cbv-info-topbar__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}

.cbv-info-topbar__social-link:hover {
    opacity: 0.8;
}

.cbv-info-topbar__social-link--instagram i {
    color: #ffffff;
}

.cbv-info-topbar__social-link--tiktok i {
    color: #ffffff;
}

.cbv-info-topbar__x-icon {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 991px) {
    .cbv-info-topbar__inner {
        gap: 10px;
    }

    .cbv-info-topbar__item {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .cbv-info-topbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cbv-info-topbar__right {
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .cbv-info-topbar__item {
        font-size: 12px;
    }

    .cbv-info-topbar__left,
    .cbv-info-topbar__right {
        gap: 6px;
    }
}

/* Footer nav menus intentionally show .screen-reader-text link text (parent theme). */
.footer.style-1 ul.site-menu .screen-reader-text {
    clip-path: inherit !important;
    position: unset !important;
    clip: inherit !important;
}

/* Gutenberg social icons: keep labels hidden and layout consistent. */
.footer .wp-block-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer .wp-block-social-links .wp-social-link {
    margin: 0;
}

.footer .wp-block-social-links .wp-block-social-link-label,
.footer .wp-block-social-links .screen-reader-text {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    word-wrap: normal !important;
}

/* Kelkoo bridge: unmapped/disabled store categories */
.cbv-cat-disabled {
    cursor: default !important;
    pointer-events: none !important;
    text-decoration: none !important;
}

.all-store-page .sidebar .store-cat.style-1 ul.store-cat li a,
.all-store-page .sidebar .store-cat.style-1 ul.store-cat li .cbv-cat-disabled,
.all-store-page .sidebar .store-cat.style-1 ul.store-cat li.cbv-cat-current a {
    font-size: 16px;
    line-height: 1.4;
}

/* ============================================================
   Kelkoo offer cards — identical to original store card design
   ============================================================ */

/* Card wrapper */
.single-store.cbv-kelkoo-offer-card,
.cbv-kelkoo-offer-card {
    text-align: center;
    border: 1px dashed #ccc !important;
    border-radius: 25px!important;
    background: #fff !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
    overflow: visible !important;
    position: relative !important;
}

/* Every child must not clip the notches */
.cbv-kelkoo-offer-card .store,
.cbv-kelkoo-offer-card a.store,
.cbv-kelkoo-offer-li {
    overflow: visible !important;
}

/* Inner link covers logo + title + divider */
.cbv-kelkoo-offer-card a.store {
    display: block;
    padding: 25px 0 0;
    color: #000;
    text-decoration: none;
    cursor: default;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.cbv-kelkoo-offer-card a.store:hover,
.cbv-kelkoo-offer-card a.store:focus {
    color: #000;
    text-decoration: none;
}

/* Logo box */
.cbv-kelkoo-offer-card .logo-box {
    width: 160px;
    height: 60px;
    padding: 5px;
    border: 1px solid #f4f4f4;
    border-radius: 10px;
    text-align: center;
    margin: 0 auto 20px;
    overflow: hidden;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.cbv-kelkoo-offer-card .logo-box img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    position: relative;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* Title */
.cbv-kelkoo-offer-card .store-title {
    font-size: 16px;
    max-height: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    padding: 0 10px;
    font-weight: 400;
}

/* Ticket-style dashed divider with side notches */
.cbv-kelkoo-offer-card .dividar {
    width: 100% !important;
    height: 0 !important;
    border: none !important;
    border-top: 1px dashed #d4d4d4 !important;
    position: relative !important;
    margin: 0 0 20px !important;
    display: block !important;
    overflow: visible !important;
}

/* Real HTML notch elements — immune to parent-theme pseudo-element overrides */
.cbv-kelkoo-offer-card .dividar-notch {
    display: block;
    width: 16px;
    height: 18px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #bbb;
    position: absolute;
    top: -9px;
    z-index: 2;
}

.cbv-kelkoo-offer-card .dividar-notch-left {
    left: -9px;
}

.cbv-kelkoo-offer-card .dividar-notch-right {
    right: -9px;
}

.dividar:before{
    background: #fbfbfb !important;
}
.dividar:after{
    background: #fbfbfb !important;
}

/* Shop Now button — always visible, never hidden by parent hover rules */
.cbv-shop-now-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 0 20px !important;
    text-align: center;
    position: static !important;
    -webkit-transform: none !important;
    transform: none !important;
}

.cbv-shop-now-btn {
    display: inline-block !important;
    padding: 6px 25px;
    font-size: 14px;
    color: #fff !important;
    background: var(--primary-color, #000) !important;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    line-height: 26px;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none !important;
    border: 0;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.cbv-shop-now-btn i {
    margin-left: 5px;
}

.cbv-shop-now-btn:hover,
.cbv-shop-now-btn:focus {
    background: var(--secondary-color, #333) !important;
    color: #000 !important;
    text-decoration: none !important;
    outline: none;
}

.cbv-shop-now-btn.cbv-shop-now-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Hover lift on card */
.top-store.style-1 ul li:hover .cbv-kelkoo-offer-card {
    box-shadow: 0 10px 20px rgba(13, 13, 13, 0.1);
}

.top-store.style-1 ul li:hover .cbv-kelkoo-offer-card .logo-box {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .cbv-kelkoo-offer-card {
        border-radius: 10px;
    }

    .cbv-kelkoo-offer-card .logo-box {
        width: 100px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .cbv-kelkoo-offer-card a.store {
        padding-top: 15px;
    }

    .cbv-kelkoo-offer-card .logo-box {
        width: 90px;
        height: 40px;
    }

    .cbv-kelkoo-offer-card .store-title {
        font-size: 14px;
        max-height: 18px;
        margin-bottom: 10px;
    }

    .cbv-kelkoo-offer-card .dividar {
        margin-bottom: 10px;
    }

    .cbv-shop-now-wrap {
        margin-bottom: 15px !important;
    }

    .cbv-shop-now-btn {
        padding: 3px 12px;
        font-size: 12px;
    }
}

/* Top Stores block — match card padding to category pages */
.cbv-top-stores-grid .cbv-kelkoo-offer-card .store {
    padding-top: 20px;
}

/* Top Stores block — Kelkoo offer grid (5 columns → 3 → 2) */
.cbv-top-stores-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
@media (max-width: 991px) {
    .cbv-top-stores-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
    .cbv-top-stores-grid { grid-template-columns: repeat(2, 1fr); }
}

/* how-it-works pages — force cover block heading to white */
.page-id-45791 .wp-block-cover h1,
.page-id-45791 .wp-block-cover h2,
.page-id-45791 .wp-block-cover h3,
.page-id-45791 .wp-block-cover .wp-block-heading,
.page-id-45791 .wp-block-cover strong,
.page-id-45719 .wp-block-cover h1,
.page-id-45719 .wp-block-cover h2,
.page-id-45719 .wp-block-cover h3,
.page-id-45719 .wp-block-cover .wp-block-heading,
.page-id-45719 .wp-block-cover strong {
    color: #fff !important;
}

/* Header Style 5 — info-topbar + single topbar row (logo | menu | search) */

/* Separator between the info topbar and the main nav row */
.header.style-5 .cbv-info-topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Reset parent sticky/absolute positioning on the topbar */
.header.style-5 .topbar {
    position: relative !important;
    top: auto !important;
    background: #0d0d0d !important;
    padding: 12px 0;
    z-index: auto;
}

/* Force the three-column flex layout */
.header.style-5 .topbar .container > .d-flex {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

/* Left: logo zone */
.header.style-5 .cbv-h5-left {
    flex: 0 0 auto;
}

/* Center: nav menu */
.header.style-5 .cbv-h5-nav {
    flex: 1 1 auto;
    justify-content: center;
    position: static !important;
}
.header.style-5 .cbv-h5-nav .navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    justify-content: center;
}
.header.style-5 .cbv-h5-nav .nav-item {
    position: relative;
}
/* Invisible bridge fills the gap so hover doesn't break mid-way */
.header.style-5 .cbv-h5-nav .nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    display: none;
}
.header.style-5 .cbv-h5-nav .nav-item:hover::after {
    display: block;
}
.header.style-5 .cbv-h5-nav .nav-link,
.header.style-5 .cbv-h5-nav .nav-item.active > .nav-link,
.header.style-5 .cbv-h5-nav .nav-item.current-menu-item > .nav-link,
.header.style-5 .cbv-h5-nav .nav-item.current_page_item > .nav-link,
.header.style-5 .cbv-h5-nav .nav-item.current-menu-ancestor > .nav-link,
.header.style-5 .cbv-h5-nav .nav-item.current-menu-parent > .nav-link {
    color: #fff !important;
    font-size: 14px;
    white-space: nowrap;
    padding: 8px 14px;
}
.header.style-5 .cbv-h5-nav .nav-link:hover,
.header.style-5 .cbv-h5-nav .nav-item:hover > .nav-link,
.header.style-5 .cbv-h5-nav .nav-item.active > .nav-link:hover,
.header.style-5 .cbv-h5-nav .nav-item.current-menu-item > .nav-link:hover {
    color: #f5a623 !important;
}
.header.style-5 .cbv-h5-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 20px !important;
    z-index: 9999;
    min-width: 220px;
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    padding: 10px 0;
    list-style: disc;
    padding-left: 30px;
}
.header.style-5 .cbv-h5-nav .nav-item:hover > .sub-menu {
    display: block;
}
.header.style-5 .cbv-h5-nav .sub-menu li a {
    display: block;
    padding: 6px 20px 6px 0;
    color: #333 !important;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
}
.header.style-5 .cbv-h5-nav .sub-menu li a:hover {
    color: #f5a623 !important;
}

/* Right: search zone */
.header.style-5 .cbv-h5-search {
    flex: 0 0 auto;
    min-width: 240px;
}
.header.style-5 .cbv-h5-search .search-box input {
    border-radius: 25px;
}

/* Fix cover block text (long URLs) overflowing viewport on mobile */
@media (max-width: 767px) {
    .wp-block-cover,
    .wp-block-cover__inner-container {
        max-width: 100%;
        overflow: hidden;
    }
    .wp-block-cover h1,
    .wp-block-cover h2,
    .wp-block-cover h3,
    .wp-block-cover .wp-block-heading,
    .wp-block-cover strong {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
    }
}

/* Prevent embedded iframes (YouTube etc.) from causing horizontal scroll on mobile */
.wp-block-embed,
.wp-block-embed__wrapper {
    max-width: 100% !important;
    overflow: hidden;
}
.wp-block-embed__wrapper iframe {
    max-width: 100% !important;
}

/* Fix sidebar category list overflowing its column width.
   The parent theme sets absolute positioning on li > a and icons which causes
   the list and its items to exceed the sidebar column. */
.sidebar .wp-block-categories-list,
.sidebar .block_categories-list,
.sidebar .wp-block-categories-list ul,
.sidebar .block_categories-list ul {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.sidebar .wp-block-categories-list li,
.sidebar .block_categories-list li {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.sidebar .wp-block-categories-list li a,
.sidebar .block_categories-list li a {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Reserve space while Angular fetches offers — reduces CLS on mobile only.
   On desktop Angular is fast enough that a fixed min-height would itself cause CLS. */
@media (max-width: 767px) {
    #all-stores-container .store-cat-grid:empty {
        min-height: 400px;
    }
}

/* Sticky content column on category pages — prevents blank right side
   when the category has few offers but the sidebar is long */
.all-store-page .row {
    align-items: flex-start;
}
.all-store-page .col-md-8.col-lg-9 {
    position: sticky;
    top: 20px;
}

/* /all-stores/ sidebar — hide 2nd and 3rd widget blocks for now */
.all-store-page.style-1 .sidebar .single-widget:nth-child(2),
.all-store-page.style-1 .sidebar .single-widget:nth-child(3) {
    display: none !important;
}