/* Compact HSB consent UI only. No theme, cart or product selectors. */
#hsbcap-consent[hidden],
#hsbcap-consent [hidden],
#hsbcap-privacy-toggle[hidden] { display: none !important; }

#hsbcap-consent,
#hsbcap-consent * { box-sizing: border-box; }

#hsbcap-consent {
    position: fixed;
    inset: auto 12px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 99000;
    max-width: 850px;
    max-height: 60vh;
    max-height: 60dvh;
    overflow-y: auto;
    margin: 0 auto;
    padding: 8px 12px;
    border: 1px solid #d9e4cb;
    border-top: 2px solid #88ab23;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    box-shadow: 0 3px 18px #1720331a;
    font: 13px/1.4 Arial, sans-serif;
    text-align: start;
    letter-spacing: normal;
}

#hsbcap-consent .hsbcap-consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: wrap;
}

#hsbcap-consent .hsbcap-consent-message {
    display: flex;
    align-items: baseline;
    gap: 4px 10px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
}

#hsbcap-consent a {
    color: #416211;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

#hsbcap-consent .hsbcap-consent-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    margin: 0;
    padding: 0;
}

#hsbcap-consent button {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: static;
    float: none !important;
    flex: 0 0 auto;
    min-width: 68px;
    width: auto;
    min-height: 36px;
    height: auto;
    max-height: none;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #688a21 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #203000 !important;
    box-shadow: none !important;
    cursor: pointer;
    font: 600 12px/1.2 Arial, sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap;
    transform: none !important;
}

#hsbcap-consent button::before,
#hsbcap-consent button::after { content: none !important; }
#hsbcap-consent button:hover { background: #f4f8eb !important; }
#hsbcap-consent button:focus-visible,
#hsbcap-consent a:focus-visible,
#hsbcap-consent input:focus-visible,
#hsbcap-privacy-toggle:focus-visible,
.hsbcap-privacy-open:focus-visible {
    outline: 2px solid #172033 !important;
    outline-offset: 2px;
}

#hsbcap-consent .hsbcap-consent-preferences {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #e5eadc;
}

#hsbcap-consent .hsbcap-consent-preferences p {
    margin: 0 0 6px;
    padding: 0;
    color: #344054;
    font: 12px/1.4 Arial, sans-serif;
}

#hsbcap-consent .hsbcap-preferences-row {
    display: flex;
    align-items: center;
    gap: 6px 18px;
    flex-wrap: wrap;
}

#hsbcap-consent .hsbcap-preferences-row label {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    position: static !important;
    float: none !important;
    min-height: 36px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #172033;
    font: 13px/1.4 Arial, sans-serif;
    cursor: pointer;
}

#hsbcap-consent input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
    position: static !important;
    display: inline-block !important;
    flex: 0 0 17px;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    accent-color: #56741d;
    box-shadow: none !important;
    transform: none !important;
}

#hsbcap-consent .hsbcap-preferences-row button { margin-inline-start: auto !important; }

#hsbcap-privacy-toggle {
    position: fixed;
    bottom: calc(5px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 8px;
    z-index: 500;
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #344054 !important;
    box-shadow: none !important;
    font: 11px/1.4 Arial, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    cursor: pointer;
}

@media (max-width: 640px) {
    #hsbcap-consent {
        inset-inline: 6px;
        bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        padding: 7px 10px;
        font-size: 12px;
    }
    #hsbcap-consent .hsbcap-consent-row { gap: 6px; }
    #hsbcap-consent .hsbcap-consent-message { flex-basis: 100%; gap: 4px 8px; }
    #hsbcap-consent .hsbcap-consent-actions { width: 100%; }
    #hsbcap-consent .hsbcap-consent-actions button { flex: 1 1 0; min-width: 0; min-height: 40px; }
    #hsbcap-consent .hsbcap-preferences-row { gap: 6px 12px; }
    #hsbcap-consent .hsbcap-preferences-row button { flex-basis: 100%; min-height: 40px; margin-inline-start: 0 !important; }
}
