/* Hunting Holsters: delivery estimate + "Not sure about the fit?" card (dark buy box). */
.hh-pdp-help {
    --hh-accent: var(--color-primary, #ffc000);
    --hh-line: var(--color-line);
    --hh-card: var(--color-surface);
    --hh-text: var(--color-fg);
    --hh-muted: var(--color-fg-secondary);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hh-pdp-help:empty {
    display: none;
}

/* ---------- Wishlist (top-right of buy box) + rating line ---------- */
.hh-pdp-wish button {
    display: inline-grid;
    place-items: center;
    width: 2.875rem;
    height: 2.875rem;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-fg);
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hh-pdp-wish button:hover,
.hh-pdp-wish button:focus-visible {
    border-color: var(--color-primary, #ffc000);
    background: var(--color-primary, #ffc000);
    color: #0c0c0c;
}

.hh-pdp-wish button:focus-visible {
    outline: 2px solid var(--color-primary, #ffc000);
    outline-offset: 3px;
}

.hh-pdp-wish svg {
    width: 1.25rem;
    height: 1.25rem;
}

.hh-pdp-rating {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    width: fit-content;
    text-decoration: none;
}

.hh-pdp-rating:hover {
    color: var(--color-fg);
}

/* ---------- Delivery estimate ---------- */
.hh-pdp-help .sh-delivery-estimate {
    margin-top: 0;
    padding: 14px 16px;
    border: 1px solid var(--hh-line);
    border-radius: 14px;
    background: var(--hh-card);
    color: var(--hh-muted);
    font-size: 14px;
}

.hh-pdp-help .sh-delivery-estimate__icon {
    width: 22px;
    height: 22px;
    color: var(--color-accent-ink);
}

.hh-pdp-help .sh-delivery-estimate__line {
    color: var(--color-fg-secondary);
}

.hh-pdp-help .sh-delivery-estimate__line strong {
    color: var(--color-fg);
}

.hh-pdp-help .sh-delivery-estimate__meta {
    color: var(--hh-muted);
    font-size: 13px;
}

.hh-pdp-help .sh-delivery-estimate__country-btn,
.hh-pdp-help .sh-delivery-estimate__toggle,
.hh-pdp-help .sh-delivery-estimate__details a {
    color: var(--color-accent-ink);
}

.hh-pdp-help .sh-delivery-estimate__flag {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

.hh-pdp-help .sh-delivery-estimate__flag--globe {
    box-shadow: none;
    color: var(--color-accent-ink);
}

.hh-pdp-help .sh-delivery-estimate__menu {
    background: var(--color-surface);
    border-color: var(--color-line);
    border-radius: 10px;
    box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .8);
}

.hh-pdp-help .sh-delivery-estimate__option {
    color: var(--color-fg);
}

.hh-pdp-help .sh-delivery-estimate__option:hover,
.hh-pdp-help .sh-delivery-estimate__option:focus {
    background: var(--color-soft);
}

.hh-pdp-help .sh-delivery-estimate__option[aria-selected="true"],
.hh-pdp-help .sh-delivery-estimate__tick {
    color: var(--color-accent-ink);
}

.hh-pdp-help .sh-delivery-estimate__details dl > div {
    border-color: var(--hh-line);
}

.hh-pdp-help .sh-delivery-estimate__details dd {
    color: var(--color-fg);
}

.hh-pdp-help .sh-delivery-estimate__country-btn:focus-visible,
.hh-pdp-help .sh-delivery-estimate__toggle:focus-visible,
.hh-pdp-help .sh-delivery-estimate__option:focus-visible {
    outline-color: var(--hh-accent);
}

/* ---------- Fit help card ---------- */
.hh-pdp-help .sh-pdp-fit-help {
    padding: 16px;
    border: 1px solid var(--hh-line);
    border-radius: 14px;
    background: var(--hh-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hh-pdp-help .sh-pdp-fit-help__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
}

.hh-pdp-help .sh-pdp-fit-help__title {
    margin: 0;
    color: var(--color-fg);
    font-family: var(--font-display, "Barlow Condensed", sans-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.hh-pdp-help .sh-pdp-fit-help__lede {
    margin: 0;
    color: var(--hh-muted);
    font-size: 13px;
}

.hh-pdp-help .sh-pdp-fit-help__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hh-pdp-help .sh-pdp-fit-help__action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 44px;
    padding: 13px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--hh-text);
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.hh-pdp-help .sh-pdp-fit-help__action:hover,
.hh-pdp-help .sh-pdp-fit-help__action:focus-visible {
    border-color: var(--hh-accent);
    background: var(--color-surface);
    color: var(--hh-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.hh-pdp-help .sh-pdp-fit-help__action:focus-visible {
    outline: 2px solid var(--hh-accent);
    outline-offset: 3px;
}

.hh-pdp-help .sh-pdp-fit-help__action--chat {
    border-color: rgba(255, 192, 0, .55);
    background: linear-gradient(160deg, rgba(255, 192, 0, .12), rgba(255, 192, 0, .03));
}

.hh-pdp-help .sh-pdp-fit-help svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hh-pdp-help .sh-pdp-fit-help__icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--color-accent-ink);
}

.hh-pdp-help .sh-pdp-fit-help__chevron {
    display: none;
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--color-accent-ink);
}

.hh-pdp-help .sh-pdp-fit-help__copy {
    min-width: 0;
}

.hh-pdp-help .sh-pdp-fit-help__copy strong,
.hh-pdp-help .sh-pdp-fit-help__copy span {
    display: block;
}

.hh-pdp-help .sh-pdp-fit-help__copy strong {
    color: var(--color-fg);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.hh-pdp-help .sh-pdp-fit-help__copy span {
    margin-top: 2px;
    color: var(--hh-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .hh-pdp-help .sh-pdp-fit-help__actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .hh-pdp-help .sh-pdp-fit-help__action {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-height: 56px;
        padding: 0 14px;
    }

    .hh-pdp-help .sh-pdp-fit-help__action--chat {
        order: -1;
    }

    .hh-pdp-help .sh-pdp-fit-help__copy {
        flex: 1 1 auto;
    }

    .hh-pdp-help .sh-pdp-fit-help__chevron {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-pdp-help .sh-pdp-fit-help__action {
        transition: none;
    }
}

/* Keep the final footer links above the floating chat launcher on mobile. */
@media (max-width: 767px) {
    .catalog-product-view .hh-ft-inner {
        padding-bottom: calc(var(--spacing) * 20);
    }
}

/* General product support uses two actions instead of the holster-only finder. */
.hh-pdp-help .sh-pdp-fit-help__actions--general { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) {
    .hh-pdp-help .sh-pdp-fit-help__actions--general { grid-template-columns: minmax(0, 1fr); }
}
