/* Reserve media space before images and asynchronous reviews finish loading. */
.pab-page-shell {
    min-height: 100vh;
}

.pab-product-link {
    min-height: 68px;
    gap: 8px;
    padding: 8px 12px;
}

.pab-product-link svg {
    flex-shrink: 0;
}

.pab-home-slider {
    aspect-ratio: 1534 / 400;
    height: auto;
}

.pab-home-slider .swiper-wrapper,
.pab-home-slider .swiper-slide,
.pab-home-slider .swiper-slide > a,
.pab-home-slider picture {
    display: block;
    height: 100%;
}

.pab-home-slider .swiper-wrapper {
    display: flex;
}

.pab-home-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* The live review carousel is approximately 235px tall on desktop. Allow
   taller content to grow naturally rather than clipping reviews. */
.pab-site-footer etrusted-widget {
    min-height: 240px;
}

.pab-trustbadge-region {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.pab-trustbadge-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    min-height: 78px;
    margin: 0 auto;
}

/* Keep the red identity while making small text and white button labels readable. */
.text-red-1 { color: #c9151c; }
.btn-red-inverse { color: #c9151c; border-color: #c9151c; }
.btn-red, .btn-red-inverse:hover, .btn-red-inverse:focus-visible {
    background-color: #c9151c;
    border-color: #c9151c;
    color: #fff;
}
.btn-red:hover, .btn-red:focus-visible { background-color: #a71017; }

/* Keep pagination outside image links, with generous touch targets. */
.pab-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    min-height: 44px;
    padding: 4px 8px;
}
.pab-home-slider-region .pab-slider-pagination {
    position: static;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    transform: none;
}
.pab-slider-pagination .swiper-pagination-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    margin: 0 2px !important;
    border: 0;
    background: transparent;
    opacity: 1;
}
.pab-slider-pagination .swiper-pagination-bullet::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #737980;
}
.pab-slider-pagination .swiper-pagination-bullet-active::after { background: #c9151c; }
.pab-slider-pagination button:focus-visible, .pab-slider-pause:focus-visible,
.pab-chat-button:focus-visible {
    outline: 2px solid #30343a;
    outline-offset: 2px;
}
.pab-slider-pause { min-height: 32px; padding: 4px 8px; font-size: 12px; color: #454b52; text-decoration: underline; }
.pab-home-slider .pab-slide-information { height: 100%; }
.pab-home-slider .swiper-slide:not(.swiper-slide-active) { pointer-events: none; }
.pab-home-slider .swiper-slide { transition-property: transform; }
.pab-home-slider [class*="swiper-slide-shadow-"] { transition-property: opacity; }
.pab-footer-policies { gap: 4px 8px; }
.pab-site-footer .pab-footer-policies a,
.pab-site-footer .pab-footer-policies button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px;
}

.pab-chat { position: fixed; right: 16px; bottom: 16px; z-index: 998; max-width: min(280px, calc(100vw - 32px)); }
.pab-chat-button {
    display: block;
    margin-left: auto;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid #fff;
    border-radius: 28px;
    background: #c9151c;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 3px 16px #0003;
}
.pab-chat-button[hidden] { display: none; }
.pab-chat-button:disabled { cursor: wait; opacity: .85; }
.pab-chat-fallback {
    margin-bottom: 8px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #30343a;
    font-size: 13px;
    box-shadow: 0 2px 12px #0002;
}
.pab-chat-fallback a { color: #c9151c; text-decoration: underline; }
.cookiealert.show ~ .pab-chat { display: none; }

@media (max-width: 639px) {
    .pab-slider-pagination .swiper-pagination-bullet { width: 24px; }
}

/* Leave the last footer links clear of the fixed chat button on narrow screens. */
.pab-site-footer { padding-bottom: 82px; }
