/* The chooser uses its own rows, independent of listing cards on other pages. */
.zk-brand-2026 .home-popup .portal-choice-modal-dialog {
    width: min(760px, 100%) !important;
    min-height: 0 !important;
    max-height: min(760px, calc(100dvh - 24px)) !important;
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}
.home-popup [hidden] { display: none !important; }
.home-popup-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex: 0 0 auto; padding: 12px 16px; border-bottom: 1px solid #e2e9ee;
}
.home-popup-heading > div { min-width: 0; }
.home-popup-heading h2 { margin: 0; font-size: 21px; line-height: 1.2; color: #30373e; }
.home-popup .home-popup-heading p { margin: 3px 0 0; color: #566975; font-size: 13px; line-height: 1.3; }
.zk-brand-2026 .home-popup .portal-choice-modal-close {
    position: static; display: grid; place-items: center; flex: 0 0 44px;
    width: 44px; height: 44px; padding: 0; border-radius: 10px;
}
.home-popup .portal-choice-modal-close .zkd-icon { width: 20px; height: 20px; }
.home-popup-content {
    display: grid; grid-auto-rows: max-content; align-content: start; gap: 14px; min-height: 0; min-width: 0;
    padding: 12px 16px 16px; overflow: auto; overscroll-behavior: contain;
}
.zk-brand-2026 .home-popup .portal-choice-modal-actions {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 !important; gap: 8px !important;
}
.zk-brand-2026 .home-popup .portal-choice-modal-action {
    min-width: 0; min-height: 44px !important; padding: 7px 8px !important;
    font-size: 14px !important; line-height: 1.25; text-align: center;
}
.home-popup .zk26-popup-search {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    margin: 0; padding: 10px;
}
.home-popup .zk26-popup-search label { min-width: 0; font-size: 12px; }
.home-popup .zk26-popup-search input { min-height: 40px; padding: 7px 9px; }
.home-popup .zk26-popup-search > .btn { min-height: 44px; padding: 8px; }
.home-popup .portal-choice-ad {
    position: relative; top: auto; margin: 0; border-radius: 10px; max-height: none;
}
.home-popup .portal-choice-ad img { height: 56px; }
.home-popup .portal-choice-ad > button {
    width: 44px; height: 44px; top: 5px; right: 5px;
}
.home-popup-list { min-width: 0; }
.home-popup-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.home-popup-list h3 { margin: 0; min-width: 0; font-size: 15px; line-height: 1.25; color: #344652; }
.home-popup-list h3 .zkd-icon { width: 15px; height: 15px; margin-right: 2px; color: #137f9e; }
.home-popup-list-head a, .home-popup .zk26-popup-auth a {
    display: inline-flex; align-items: center; min-height: 36px; padding: 4px 2px;
    font-size: 13px; line-height: 1.25; font-weight: 650; color: #116d87; white-space: nowrap;
}
.home-popup-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px;
}
.home-popup-grid:empty { display: none; }
.home-popup-offer {
    --popup-thumb: 82px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    min-width: 0; overflow: hidden; border: 1px solid #dce6ec; border-radius: 12px; background: #fff;
}
.home-popup-offer-link {
    position: relative; align-self: stretch; display: grid; align-items: center;
    grid-template-columns: var(--popup-thumb) minmax(0, 1fr); gap: 10px;
    min-width: 0; min-height: 80px; text-decoration: none; color: #30373e;
}
.home-popup-offer-link:focus-visible, .home-popup .home-popup-offer-save:focus-visible { outline-offset: -3px; }
.home-popup-offer-link > img {
    position: absolute; inset: 0 auto 0 0; height: 100%; width: var(--popup-thumb); object-fit: cover; background: #edf4f7;
}
.home-popup-offer-copy { grid-column: 2; display: grid; gap: 3px; min-width: 0; padding: 8px 9px 8px 0; }
.home-popup-offer-title {
    min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    font-size: 14px; line-height: 1.25; overflow: hidden; overflow-wrap: anywhere;
}
.home-popup-offer-place {
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: #566975; font-size: 12px; line-height: 1.25;
}
.home-popup-offer-price { color: #116d87; line-height: 1.2; overflow-wrap: anywhere; }
.home-popup-offer-price b { font-size: 16px; }
.home-popup-offer-price small { color: #566975; font-size: 12px; white-space: nowrap; }
.home-popup .home-popup-offer-save {
    display: grid; place-items: center; width: 44px; height: 44px; margin: 0 5px 0 0; padding: 0;
    border: 0; border-radius: 9px; background: #f2f7f9; color: #375864; cursor: pointer;
}
.home-popup .home-popup-offer-save[aria-pressed="true"] { background: #fff0f2; color: #ad1932; }
.home-popup .home-popup-offer-save .zkd-icon { width: 19px; height: 19px; }
.home-popup-empty { margin: 4px 0 0; font-size: 13px; color: #566975; }
.home-popup .zk26-popup-auth {
    padding-top: 6px; gap: 12px; flex-wrap: wrap; font-size: 12px;
}
.home-popup .zk26-popup-auth > span { color: #566975; }

@media (pointer: coarse) {
    .home-popup-list-head a, .home-popup .zk26-popup-auth a { min-height: 44px; }
}
@media (max-width: 760px) {
    .home-popup { place-items: end center; }
    .zk-brand-2026 .home-popup .portal-choice-modal-dialog { max-height: calc(100dvh - 16px) !important; }
    .home-popup-heading { padding: 8px 12px; }
    .home-popup-heading h2 { font-size: 20px; }
    .home-popup-content { padding: 10px 12px 12px; gap: 12px; }
    .home-popup-offer { --popup-thumb: 72px; }
    .home-popup-offer-link { min-height: 72px; gap: 8px; }
}
@media (max-width: 355px) {
    .home-popup-offer { --popup-thumb: 64px; }
    .home-popup .zk26-popup-auth { column-gap: 9px; row-gap: 0; }
    .home-popup .zk26-popup-auth > span { flex-basis: 100%; }
}
