.store-support {
    --support-bottom: max(23px, env(safe-area-inset-bottom));
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: var(--support-bottom);
    z-index: 90020;
}

.store-support-launcher {
    display: flex;
    position: relative;
    align-items: center;
    gap: 10px;
    width: max-content;
    min-height: 62px;
    margin-left: auto;
    padding: 10px 18px 10px 13px;
    border: 1px solid #ffffff54;
    border-radius: 999px;
    background: #087d50;
    color: #fff;
    box-shadow: 0 9px 28px #064c3e44;
    cursor: pointer;
    list-style: none;
    text-align: start;
    transition: transform .18s, background .18s, box-shadow .18s;
}

.store-support-launcher::-webkit-details-marker { display: none; }
.store-support-launcher::marker { content: ""; }
.store-support-launcher svg { width: 32px; height: 32px; }
.store-support svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.store-support-launcher strong, .store-support-launcher small { display: block; }
.store-support-launcher strong { font-size: 16px; line-height: 1.15; }
.store-support-launcher small { font-size: 11px; opacity: .95; margin-top: 3px; }

.store-support-launcher:is(:hover, :focus-visible) {
    background: #086745;
    box-shadow: 0 10px 30px #064c3e70;
    transform: translateY(-2px);
}

.store-support-launcher::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #18a46b;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    animation: store-support-ring 2.25s ease-out 1.1s 3;
}

.store-support-motion-ended .store-support-launcher::after { animation: none; }

@keyframes store-support-ring {
    0%, 100% { transform: scale(1); opacity: 0; }
    17% { opacity: .58; }
    62% { transform: scale(1.085, 1.24); opacity: 0; }
}

.store-support-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(350px, calc(100vw - 26px));
    max-height: max(130px, min(470px, calc(100dvh - var(--support-bottom) - 88px)));
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--theme-border, #d8e9e1);
    border-radius: 20px;
    background: var(--theme-surface, #fff);
    color: var(--theme-text, #1a342d);
    box-shadow: 0 16px 42px #1328283b;
}

.store-support[open] .store-support-panel { animation: store-support-in .2s ease-out both; }
@keyframes store-support-in { from { opacity: 0; transform: translateY(6px); } }

.store-support-panel header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    padding: 17px 14px 17px 18px;
    background: #076b47;
    color: #fff;
}

.store-support-panel header p { margin: 0 0 5px; font-size: 12px; }
.store-support-panel h2 { margin: 0; font-size: 20px; line-height: 1.22; color: #fff; }

.store-support-close {
    flex: 0 0 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #ffffff20;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.store-support-topics { margin: 0; padding: 10px; list-style: none; display: grid; gap: 5px; }
.store-support-topics a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 51px;
    padding: 6px 8px;
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}

.store-support-topics a:is(:hover, :focus-visible) { background: var(--theme-raised, #edf8f3); }
.store-support-icon { display: grid; place-items: center; height: 36px; border-radius: 10px; background: #dbf3e6; color: #096744; }
.store-support-icon svg { width: 19px; height: 19px; }
.store-support-arrow { color: var(--theme-muted, #426c5a); font-size: 16px; }

.store-support-alternatives {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    padding: 5px 16px 10px;
    border-top: 1px solid var(--theme-border, #e1eae6);
}

.store-support-alternatives a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--theme-link, #096a49);
    font-size: 12px;
    font-weight: 650;
}

.store-support :is(button, a, summary):focus-visible { outline: 2px solid #28a774; outline-offset: 2px; }
.cookie-notice-visible .store-support { --support-bottom: calc(var(--cookie-notice-space, 220px) + 14px); }
body:has(.store-search [aria-expanded="true"]) .store-support,
.mobile-filters-open .store-support { visibility: hidden; }

.product-detail-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 6px;
    padding: 9px;
    border: 1px solid var(--theme-border, #dfe7f1);
    border-radius: 14px;
    background: var(--theme-surface, #fff);
}

.product-detail-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 13px;
    border-radius: 9px;
    background: var(--theme-raised, #f0f5fc);
    color: var(--theme-link, #184f9d);
    text-align: center;
    font-weight: 650;
    font-size: 14px;
    text-decoration: none;
}

.product-detail-links a:hover { text-decoration: underline; }
.product-detail-links a.product-detail-support {
    margin-inline-start: auto;
    background: #e2f6eb;
    color: #086746;
}

.shop-body .shop-detail.product-detail {
    grid-template-areas: "gallery heading" "gallery info";
    grid-template-rows: auto 1fr;
    row-gap: 17px;
}
.product-detail-heading { grid-area: heading; min-width: 0; }
.shop-detail.product-detail > .product-gallery { grid-area: gallery; }
.shop-detail.product-detail > .product-info { grid-area: info; }
.shop-body .product-detail-heading h1 {
    margin: 6px 0;
    font-size: clamp(23px, 3.1vw, 35px);
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
.product-detail-heading .product-code { margin-bottom: 0; }
.shop-body :is(.product-description, .product-specifications, .product-reviews) {
    margin-top: 18px;
    scroll-margin-top: 24px;
}
.shop-body :is(.product-description, .product-specifications) h2 { font-size: clamp(21px, 2.5vw, 28px); }
.shop-body .product-description .plain-copy { max-width: 80ch; line-height: 1.72; }
.shop-body .product-specifications table { border: 1px solid var(--theme-border, #dfe7f1); }
.shop-body .product-specifications :is(th, td) { text-align: start; }
.search-page-heading bdi { display: inline; color: var(--theme-link, #184f9d); overflow-wrap: anywhere; }

@media (max-width: 800px) {
    .cookie-notice-visible .store-support { --support-bottom: calc(var(--cookie-notice-space, 285px) + 57px + env(safe-area-inset-bottom)); }
}

@media (max-width: 650px) {
    .store-support { right: max(12px, env(safe-area-inset-right)); --support-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .store-support-launcher { min-height: 57px; padding: 8px 13px 8px 10px; }
    .store-support-launcher svg { width: 30px; height: 30px; }
    .store-support-launcher strong { font-size: 15px; }
    .product-detail-links { gap: 6px; }
    .product-detail-links a { flex: 1 1 auto; font-size: 13px; }
    .product-detail-links a.product-detail-support { margin-inline-start: 0; }
    .shop-body :is(.product-description, .product-specifications, .product-reviews) { scroll-margin-top: 135px; }
}

@media (max-width: 760px) {
    .shop-body .shop-detail.product-detail {
        grid-template-areas: "heading" "gallery" "info";
        grid-template-rows: auto;
    }
}

@media (max-height: 510px) {
    .cookie-notice-visible .store-support { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .store-support-launcher, .store-support-launcher::after, .store-support[open] .store-support-panel { animation: none; transition: none; }
}
