
/* PRICEHACK_UNIFIED_OFFER_FALLBACK_V131 */

.ph-unified-no-image {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 190px;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
  background: #f3f4f6;
  color: #64748b;
  text-align: center;
}

.ph-unified-no-image-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 2px dashed #b8c1cc;
  border-radius: 16px;
  font-size: 32px;
  font-weight: 700;
}

.ph-unified-no-image-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.ph-unified-empty-description {
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
}

.ph-unified-empty-description strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.ph-unified-empty-description p {
  margin: 0;
  line-height: 1.65;
}

.ph-unified-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ph-unified-help-item {
  padding: 17px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  min-width: 0;
}

.ph-unified-help-item h3 {
  margin: 0 0 9px;
  font-size: 15px;
  line-height: 1.4;
}

.ph-unified-help-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

@media (max-width: 680px) {
  .ph-unified-help-grid {
    grid-template-columns: 1fr;
  }

  .ph-unified-help-item {
    padding: 14px;
  }

  .ph-unified-no-image {
    min-height: 150px;
  }
}


/* PRICEHACK_V132C3_SHARED_MEDIA */

.ph-unified-no-image.ph-unified-no-image-preview {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 120px;
    aspect-ratio: 4 / 3;
    padding: 12px;
    gap: 8px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #64748b;
    text-align: center;
}

.ph-unified-no-image-preview .ph-unified-no-image-symbol {
    width: 44px;
    height: 44px;
    font-size: 24px;
    border-radius: 12px;
}

.ph-unified-no-image-preview .ph-unified-no-image-text {
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cpa-mobile-image-v229 .ph-unified-no-image-preview {
    min-height: 90px;
    aspect-ratio: 16 / 9;
}

@media (max-width: 680px) {
    .ph-unified-no-image.ph-unified-no-image-preview {
        padding: 10px;
    }
}


/* PRICEHACK_V133A_UNIFIED_EMPTY_STATE */

.ph-unified-empty-v133 {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  text-align: left;
}

.ph-empty-symbol-v133 {
  display: flex;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  background: #fff;
  color: #64748b;
  font-size: 35px;
  font-weight: 700;
}

.ph-empty-body-v133 {
  flex: 1;
  min-width: 0;
}

.ph-empty-body-v133 h2 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.35;
}

.ph-empty-body-v133 p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.ph-empty-actions-v133 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ph-empty-primary-v133 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #202936;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ph-empty-primary-v133:hover {
  background: #39465a;
  color: white;
}

@media (max-width: 680px) {
  .ph-unified-empty-v133 {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }

  .ph-empty-symbol-v133 {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 13px;
    font-size: 25px;
  }

  .ph-empty-body-v133 h2 {
    font-size: 18px;
  }

  .ph-empty-primary-v133 {
    width: 100%;
  }
}


/* PRICEHACK_V133C_UNIFIED_EMPTY_STATES */

.offer-grid > .ph-unified-empty-v133,
.catalog-root-grid > .ph-unified-empty-v133,
.brand-grid > .ph-unified-empty-v133,
.grid > .ph-unified-empty-v133,
.ph-cpa-embed > .ph-unified-empty-v133 {
    grid-column: 1 / -1;
    max-width: 100%;
}

.brand-search-empty {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
}


/* PRICEHACK_V134C_UNIFIED_RECOMMENDATIONS */

.ph-recommendations-v134 {
    width: 100%;
    box-sizing: border-box;
    margin: 26px 0;
    padding: 0;
}

.ph-rec-heading-v134 {
    margin: 0 0 16px;
}

.ph-rec-heading-v134 h2 {
    margin: 0 0 6px;
    font-size: 23px;
    line-height: 1.35;
}

.ph-rec-heading-v134 p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.ph-rec-grid-v134 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ph-rec-grid-cpa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ph-rec-card-v134 {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.ph-rec-card-v134:hover {
    border-color: #94a3b8;
    box-shadow: 0 5px 16px rgba(15,23,42,.07);
}

.ph-rec-image-v134 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8fafc;
}

.ph-rec-image-v134 > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ph-rec-image-v134 .ph-unified-no-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
}

.ph-rec-info-v134 {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 13px;
    min-width: 0;
}

.ph-rec-kind-v134 {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.ph-rec-title-v134 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ph-rec-brand-v134 {
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.ph-rec-link-v134 {
    margin-top: auto;
    padding-top: 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 720px) {
    .ph-rec-heading-v134 h2 {
        font-size: 19px;
    }

    .ph-rec-grid-v134 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ph-rec-grid-cpa {
        grid-template-columns: minmax(0, 1fr);
    }

    .ph-rec-hide-mobile-v134 {
        display: none;
    }

    .ph-rec-info-v134 {
        padding: 10px;
    }

    .ph-rec-title-v134 {
        font-size: 13px;
    }
}


/* PRICEHACK_V134E_VISUAL_REFINEMENT */

/* Offer information */

.ph-unified-help-grid {
    gap: 12px !important;
    margin-top: 17px !important;
    align-items: stretch !important;
}

.ph-unified-help-grid > * {
    min-height: 0 !important;
    padding: 18px 20px !important;

    border: 1px solid #dee6f0 !important;
    border-left: 3px solid #9cb9e8 !important;
    border-radius: 12px !important;

    background: #f8fafd !important;
    box-shadow: none !important;

    justify-content: flex-start !important;
    gap: 9px !important;
}

.ph-unified-help-grid :is(h3, h4, h5) {
    margin: 0 0 9px !important;
    color: #162b45 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.ph-unified-help-grid p {
    margin: 0 !important;
    color: #475e79 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.ph-unified-offer-content > :is(h2, h3) {
    margin-bottom: 12px !important;
    color: #102b49;
    font-size: 18px;
    font-weight: 700;
}

/* Useful sections */

.ph-v134e-useful-title {
    display: block;
    margin: 20px 0 12px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    color: #142d4a !important;
    font-weight: 700 !important;
}

:is(section, div, nav):has(> .ph-v134e-useful-title) a,
:is(
    .seo-nav-links,
    .seo-nav-grid,
    .seo-nav-chips,
    .seo-links-grid,
    .seo-link-grid
) a {
    padding: 10px 12px !important;
    border: 1px solid #dce5f0 !important;
    border-radius: 9px !important;

    background: #fff !important;
    color: #162b45 !important;

    font-size: 12.5px !important;
    line-height: 1.4 !important;

    box-shadow: 0 1px 2px rgba(20,42,68,.025);

    transition:
        border-color .15s ease,
        background .15s ease;
}

:is(section, div, nav):has(> .ph-v134e-useful-title) a:hover,
:is(
    .seo-nav-links,
    .seo-nav-grid,
    .seo-nav-chips,
    .seo-links-grid,
    .seo-link-grid
) a:hover {
    border-color: #aac4e8 !important;
    background: #f6faff !important;
}

:is(section, div, nav):has(> .ph-v134e-useful-title) a
:is(small, span),
:is(
    .seo-nav-links,
    .seo-nav-grid,
    .seo-nav-chips,
    .seo-links-grid,
    .seo-link-grid
) a :is(small, span) {
    font-size: 10.5px;
    line-height: 1.35;
}

/* Recommendation cards */

.ph-rec-card-v134 {
    border-radius: 12px;
    border-color: #dfe6ee;
}

.ph-rec-image-v134 {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f6fa;
    overflow: hidden;
}

.ph-rec-image-v134 > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center !important;
}

.ph-rec-info-v134 {
    gap: 8px;
    padding: 13px 14px 15px;
}

.ph-rec-kind-v134 {
    color: #557395;
    font-size: 11px;
}

.ph-rec-title-v134 {
    color: #112c4d;
    line-height: 1.45;
}

.ph-rec-brand-v134 {
    color: #5c7796;
}

.ph-rec-link-v134 {
    color: #2464c7;
}

/* Mobile */

@media (max-width: 720px) {
    .ph-unified-help-grid {
        grid-template-columns: 1fr !important;
    }

    .ph-unified-help-grid > * {
        padding: 15px 16px !important;
    }

    .ph-v134e-useful-title {
        font-size: 16px !important;
    }

    .ph-rec-info-v134 {
        padding: 10px 11px 13px;
    }
}


/* PRICEHACK_V134G_VISUAL_FIX */

/* =========================
   1. INFO BLOCKS
   ========================= */

.ph-unified-help-grid {
    gap: 14px !important;
    margin-top: 12px !important;
    align-items: stretch !important;
}

.ph-unified-help-grid > * {
    min-height: 0 !important;
    padding: 14px 18px 16px !important;
    border: 1px solid #efd7bf !important;
    border-left: 0 !important;
    border-radius: 14px !important;
    background: #fff6ed !important;
    box-shadow: none !important;
}

.ph-unified-help-grid :is(h3, h4, h5) {
    margin: 0 0 6px !important;
    color: #7b4b1f !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.ph-unified-help-grid p {
    margin: 0 !important;
    color: #6c5338 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.ph-unified-offer-content > :is(h2, h3) {
    margin-bottom: 8px !important;
}

/* =========================
   2. USEFUL SECTIONS
   ========================= */

.ph-v134e-useful-title {
    display: block;
    margin: 18px 0 10px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    color: #16304d !important;
    font-weight: 700 !important;
}

:is(section, div, nav):has(> .ph-v134e-useful-title) a,
:is(
    .seo-nav-links,
    .seo-nav-grid,
    .seo-nav-chips,
    .seo-links-grid,
    .seo-link-grid
) a {
    padding: 10px 12px !important;
    border: 1px solid #d6e0ea !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #18324f !important;
    text-decoration: none !important;
}

:is(section, div, nav):has(> .ph-v134e-useful-title) a:hover,
:is(
    .seo-nav-links,
    .seo-nav-grid,
    .seo-nav-chips,
    .seo-links-grid,
    .seo-link-grid
) a:hover {
    border-color: #bfd0e2 !important;
    background: #f8fbfe !important;
}

:is(section, div, nav):has(> .ph-v134e-useful-title) a * ,
:is(
    .seo-nav-links,
    .seo-nav-grid,
    .seo-nav-chips,
    .seo-links-grid,
    .seo-link-grid
) a * {
    text-decoration: none !important;
}

:is(section, div, nav):has(> .ph-v134e-useful-title) a :is(small, span),
:is(
    .seo-nav-links,
    .seo-nav-grid,
    .seo-nav-chips,
    .seo-links-grid,
    .seo-link-grid
) a :is(small, span) {
    color: #6d7f92 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
}

/* =========================
   3. RECOMMENDATION CARDS
   ========================= */

.ph-recommendations-v134 {
    margin: 24px 0 !important;
}

.ph-rec-heading-v134 {
    margin: 0 0 14px !important;
}

.ph-rec-heading-v134 h2 {
    margin: 0 0 4px !important;
    color: #112c4d !important;
}

.ph-rec-heading-v134 p {
    color: #637a92 !important;
}

.ph-rec-grid-v134 {
    gap: 14px !important;
}

.ph-rec-card-v134 {
    border: 1px solid #dde5ee !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: none !important;
}

.ph-rec-card-v134:hover {
    border-color: #c8d5e3 !important;
    box-shadow: 0 4px 14px rgba(17,44,77,.06) !important;
}

.ph-rec-image-v134 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 196px !important;
    aspect-ratio: auto !important;
    background: #f5f7fa !important;
    overflow: hidden !important;
}

.ph-rec-image-v134 > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #f5f7fa !important;
}

.ph-rec-image-v134 .ph-unified-no-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
}

.ph-rec-info-v134 {
    gap: 8px !important;
    padding: 12px 13px 14px !important;
}

.ph-rec-kind-v134 {
    color: #607a97 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.ph-rec-title-v134 {
    color: #16304d !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.ph-rec-brand-v134 {
    color: #72869a !important;
    font-size: 12px !important;
}

.ph-rec-link-v134 {
    margin-top: auto !important;
    color: #285fb8 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* =========================
   4. MOBILE
   ========================= */

@media (max-width: 720px) {
    .ph-unified-help-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .ph-unified-help-grid > * {
        padding: 13px 14px 14px !important;
    }

    .ph-v134e-useful-title {
        margin: 16px 0 9px !important;
        font-size: 16px !important;
    }

    .ph-rec-grid-v134 {
        gap: 10px !important;
    }

    .ph-rec-image-v134 {
        height: 170px !important;
    }

    .ph-rec-info-v134 {
        padding: 10px 11px 12px !important;
    }

    .ph-rec-title-v134 {
        font-size: 13px !important;
    }
}


/* PRICEHACK_V135A_EXISTING_COUPON_RECOMMENDATIONS */

/* Compact warm information blocks */

.ph-unified-help-grid > * {
    min-height: 0 !important;
    height: auto !important;
    padding: 13px 16px 14px !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 6px !important;
    background: #fff8f2 !important;
    border: 1px solid #f0ddc9 !important;
    border-radius: 12px !important;
}

.ph-unified-help-grid :is(h3,h4,h5) {
    margin: 0 0 5px !important;
}

.ph-unified-help-grid p {
    margin: 0 !important;
}

/* Useful sections: one concise title per tile */

.ph-v135-useful-tile {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 37px !important;
    padding: 9px 12px !important;
    border: 1px solid #dfe5ed !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #173454 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .15s, border-color .15s !important;
}

.ph-v135-useful-tile:hover {
    background: #f7f9fc !important;
    border-color: #b9cadd !important;
}

.ph-v135-useful-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}

/* Coupon recommendations based on the existing CPA template */

.ph-rec-coupon-feed-v135 {
    margin: 22px 0 !important;
}

.ph-rec-coupon-grid-v135 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.ph-rec-coupon-item-v135 {
    min-width: 0;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 {
    display: grid !important;
    grid-template-columns: 145px minmax(0,1fr) !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 175px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dfe6ee !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135:hover {
    border-color: #b7c8dd !important;
    box-shadow: 0 4px 14px rgba(25,45,70,.06) !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 > .picture {
    display: flex !important;
    position: relative !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 175px !important;
    margin: 0 !important;
    padding: 7px !important;
    box-sizing: border-box !important;
    background: #f5f7fa !important;
    overflow: hidden !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 > .picture > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 180px !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 6px !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 > .details {
    display: flex !important;
    position: relative !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 9px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 .pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin: 0 !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 .pill {
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 .merchant {
    margin: 0 !important;
    color: #71829a !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 .title {
    margin: 0 !important;
    color: #173454 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 .descr,
.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 .dates,
.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 .cpa-mobile-image-v229 {
    display: none !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-coupon-v135
> .ph-cpa-card-detail-link {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 8 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
}

.ph-rec-coupon-grid-v135 .ph-rec-open-v135 {
    display: inline-block;
    margin-top: auto;
    color: #2767c7;
    font-size: 12px;
    font-weight: 600;
}

@media(max-width:720px) {
    .ph-rec-coupon-grid-v135 {
        grid-template-columns: minmax(0,1fr);
        gap: 10px;
    }

    .ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 {
        grid-template-columns: 115px minmax(0,1fr) !important;
        min-height: 146px !important;
    }

    .ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 > .picture {
        min-height: 146px !important;
    }

    .ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 > .details {
        padding: 11px !important;
        gap: 7px !important;
    }

    .ph-rec-coupon-grid-v135 .ph-rec-coupon-v135 .title {
        font-size: 13px !important;
    }

    .ph-rec-coupon-item-v135.ph-rec-hide-mobile-v134 {
        display: none !important;
    }
}


/* PRICEHACK_V135D_USE_EXISTING_BREADCRUMBS */

.ph-useful-crumbs-v135d {
    font-size: 13px;
    margin: 0 0 18px;
}

.ph-useful-crumbs-v135d > a {
    font-size: 13px;
    min-height: 40px;
    padding: 0 15px;
}
