/* Naturopharma v229 — socle global consolidé. */
:focus-visible {
    outline: 3px solid #2f8045;
    outline-offset: 3px;
}

.np-mobile-toggle {
    min-width: 44px;
    min-height: 44px;
}

.np-cookie-settings-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.np-hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.np-consent-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    color: #5f6962;
    font-size: 12px;
    line-height: 1.5;
}

.np-consent-check input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 1px 0 0;
    padding: 0;
    border-radius: 4px;
    accent-color: #2f8045;
}

.np-consent-check a {
    color: #2f8045;
}

.np-cookie-consent[hidden] {
    display: none !important;
}

.np-cookie-consent {
    position: fixed;
    z-index: 999999;
    inset: auto 18px 18px;
    display: flex;
    justify-content: center;
    width: auto;
    pointer-events: none;
}

.np-cookie-card {
    display: block;
    width: min(920px, 100%);
    padding: 24px;
    border: 1px solid rgba(214, 204, 187, .9);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(20, 45, 30, .22);
    color: #202521;
    pointer-events: auto;
}

.np-cookie-copy {
    max-width: 720px;
}

.np-cookie-copy strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.np-cookie-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.np-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.np-cookie-actions button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 800;
}

.np-cookie-secondary {
    border: 1px solid #cfd8d1;
    background: #fff;
    color: #26352b;
}

.np-cookie-primary {
    border: 1px solid #2f8045;
    background: #2f8045;
    color: #fff;
}

.np-cookie-preferences h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.np-cookie-preferences > p {
    margin: 0 0 16px;
}

.np-cookie-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #ece9e2;
}

.np-cookie-category strong,
.np-cookie-category small {
    display: block;
}

.np-cookie-category small {
    margin-top: 4px;
    color: #667069;
    line-height: 1.45;
}

.np-cookie-category input {
    width: 22px;
    height: 22px;
}

@media (max-width: 640px) {
    .np-cookie-consent {
        inset: auto 10px 10px;
    }

    .np-cookie-card {
        max-height: calc(100vh - 20px);
        overflow: auto;
        padding: 20px;
    }

    .np-cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .np-cookie-actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
