/* « Besoin d'aide ? » bubble (docs/shop-help-bubble.md). Rectangles with slightly rounded corners, never pills. */
.shop-help {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 1040; /* above the site header and the product buy bar, under Bootstrap modals (1055) */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
    transition: bottom .25s ease;
}

/* Product page: stays above the buy bar when it shows. */
body:has(.product-buy-bar.is-visible) .shop-help {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.shop-help-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .9rem;
    border: 0;
    border-radius: .5rem;
    background: #1b2a33;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .18);
    cursor: pointer;
}

.shop-help-toggle:hover,
.shop-help-toggle[aria-expanded="true"] {
    background: var(--cz-primary, #0099a1);
}

.shop-help-toggle i {
    font-size: 1.1rem;
}

/* Mobile / tablet: icon only, so it no longer covers the sticky « Filtrer et trier » button
   and the price row of the product cards. The label stays for screen readers. */
@media (max-width: 991.98px) {
    .shop-help-toggle {
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        justify-content: center;
    }

    .shop-help-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .shop-help-toggle i {
        font-size: 1.25rem;
    }
}

.shop-help-panel {
    width: min(22rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
    padding: 1rem;
    border-radius: .75rem;
    background: var(--cz-body-bg, #fff);
    color: var(--cz-body-color, #212529);
    border: 1px solid var(--cz-border-color, #e5e7eb);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .2);
    order: -1;
}

.shop-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.shop-help-section + .shop-help-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cz-border-color, #e5e7eb);
}

.shop-help-label {
    margin-bottom: .5rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cz-secondary-color, #6c727f);
}

.shop-help-shops {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-help-shops li + li {
    margin-top: .4rem;
}

.shop-help-call {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    border: 1px solid var(--cz-border-color, #e5e7eb);
    border-radius: .5rem;
    color: inherit;
    text-decoration: none;
}

.shop-help-call:hover {
    border-color: var(--cz-primary, #0099a1);
    color: var(--cz-primary, #0099a1);
}

.shop-help-city {
    font-weight: 600;
}

.shop-help-phone {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.shop-help-call-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.shop-help-status {
    font-size: .72rem;
    font-weight: 400;
    color: var(--cz-secondary-color, #6c727f);
}

.shop-help-status.is-open::before {
    content: '';
    display: inline-block;
    width: .45rem;
    height: .45rem;
    margin-right: .35rem;
    border-radius: 50%;
    background: #33b36b;
    vertical-align: .05rem;
}

.shop-help-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.shop-help-feedback {
    margin: .5rem 0 0;
    font-size: .8rem;
}

.shop-help-feedback:empty {
    display: none;
}

.shop-help-feedback.is-error {
    color: var(--cz-danger, #dc3545);
}

.shop-help-feedback.is-ok {
    color: var(--cz-success, #198754);
}

.shop-help-privacy {
    margin: .5rem 0 0;
    font-size: .7rem;
    color: var(--cz-secondary-color, #6c727f);
}

@media (max-width: 575.98px) {
    .shop-help {
        right: .75rem;
        bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    }

    .shop-help-toggle span {
        /* Phones: the icon and a short word keep the bubble small. */
        font-size: .8rem;
    }
}
