/* Ika — GDPR / consent UI styles.
   All compliance-related CSS lives here in one reviewable place: the consent banner, its
   preference centre, and the marketing opt-in added to the newsletter forms.
   Loaded from app.blade.php, after main.css so these rules win.

   PALETTE — read this before changing a colour here.
   These values are taken from the COMPILED public/assets/ika/css/main.css, which is what the
   site actually renders. Do NOT take them from
   resources/assets/front/ika/styles/partials/_vars.scss: that file is a stale copy of the
   Esushi variables ($main-color #EF5101), and #EF5101 appears ZERO times in Ika's real CSS.
   main.css (May 2026) is months ahead of the SCSS source (Dec 2025) and is never recompiled.

     --ik-orange #FF7F40  primary CTA fill, links, checked controls  (127 uses in main.css)
     --ik-rust   #A85522  hover / secondary accent                   (.nav>a:hover)
     --ik-ink    #2B2A29  body text
   Type: 'Raleway' — the dominant family in main.css (106 declarations); the Gilroy-* families
   it replaced are still present in commented-out declarations.
   Links on this site are `text-decoration: underline` (.label .text.link), NOT the dashed
   bottom-border used on Takumi. Buttons are border-radius 5px, uppercase, Raleway 600.

   One rule here is load-bearing for compliance, not cosmetic — do not "tidy" it away:
     * .cookieConsent__btn — Accept and Reject must stay visually identical (same size, weight,
       contrast). Making Reject quieter than Accept is itself an audit finding. */

/* Cookie consent START
   Banner + preference centre (resources/views/front/components/cookieConsent.blade.php). */
.cookieConsent {
    --ik-orange: #FF7F40;
    --ik-rust: #A85522;
    --ik-ink: #2B2A29;
    position: fixed;
    z-index: 2147483000;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: none;
    background: #fff;
    color: var(--ik-ink, #2B2A29);
    font-family: 'Raleway', sans-serif;
    border-radius: 10px;
    box-shadow: 0 6px 30px rgba(43, 42, 41, .22);
    padding: 20px;
    max-width: 720px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.5;
}
.cookieConsent.is-visible {
    display: block;
}
.cookieConsent[hidden] {
    display: none;
}
.cookieConsent__title {
    font-family: 'Raleway', sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}
.cookieConsent__text {
    margin: 0;
}
/* Matches the site's link convention (.label .text.link): orange, underlined. */
.cookieConsent__link {
    color: var(--ik-orange, #FF7F40);
    text-decoration: underline;
}
.cookieConsent__link:hover {
    color: var(--ik-rust, #A85522);
}
.cookieConsent__prefs {
    margin-top: 16px;
    border-top: 1px solid rgba(43, 42, 41, .12);
    padding-top: 12px;
}
.cookieConsent__prefs[hidden] {
    display: none;
}
.cookieConsent__cat {
    display: grid;
    grid-template-columns: 20px 1fr;
    grid-column-gap: 10px;
    align-items: start;
    margin-bottom: 12px;
    cursor: pointer;
}
.cookieConsent__cat:last-child {
    margin-bottom: 0;
}
/* Orange to match the site's checked checkboxes (.label input[type=checkbox]:checked + .check). */
.cookieConsent__cat input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--ik-orange, #FF7F40);
}
.cookieConsent__cat_locked {
    cursor: default;
    opacity: .75;
    /* No checkbox in this row — the badge below takes the control column instead. */
    grid-template-columns: auto 1fr;
}
/* Rust rather than orange: this badge states a fact, it is not an actionable control,
   and orange is the CTA colour on this site. */
.cookieConsent__catState {
    align-self: start;
    margin-top: 1px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(168, 85, 34, .1);
    color: var(--ik-rust, #A85522);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
    text-transform: uppercase;
}
.cookieConsent__catName {
    font-weight: 700;
}
.cookieConsent__catDesc {
    grid-column: 2;
    font-size: 13px;
    color: rgba(43, 42, 41, .7);
}
.cookieConsent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
/* Accept and Reject are intentionally identical in size, weight and contrast:
   an opt-out that is harder to reach than opt-in is itself a consent defect.
   Shape copied from the site's primary CTA (.headerSlider .containerTextHeader .btn):
   orange fill, white text, 5px radius, uppercase Raleway 600. */
.cookieConsent__btn {
    flex: 1 1 auto;
    min-width: 140px;
    border: 1px solid var(--ik-orange, #FF7F40);
    background-color: var(--ik-orange, #FF7F40);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: .2s;
}
.cookieConsent__btn:hover {
    border-color: var(--ik-rust, #A85522);
    background-color: var(--ik-rust, #A85522);
}
.cookieConsent__btn[hidden] {
    display: none;
}
/* Secondary actions (Preferences / Save) — rust outline, so they read as secondary
   WITHOUT making the Reject button quieter than Accept. */
.cookieConsent__btn_ghost {
    background-color: transparent;
    color: var(--ik-rust, #A85522);
    border-color: var(--ik-rust, #A85522);
}
.cookieConsent__btn_ghost:hover {
    background-color: var(--ik-rust, #A85522);
    border-color: var(--ik-rust, #A85522);
    color: #fff;
}
.cookieConsentTrigger {
    cursor: pointer;
}
@media only screen and (max-width: 767px) {
    .cookieConsent {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 16px;
        max-height: 85vh;
        overflow-y: auto;
    }
    .cookieConsent__btn {
        flex: 1 1 100%;
    }
}
/* Cookie consent END */

/* Newsletter consent START
   The marketing opt-in added to the newsletter forms:
     resources/views/front/components/subscribe/subscribeForm.blade.php (product page, cart result)
     resources/views/front/templates/feedbackForm.blade.php             (currently commented out
       in the template itself — see docs/gdpr/README.md §3)

   Both render inside `.feedback-form__inner form`, which main.css lays out as a flex ROW
   (.form-group flex:3 + button flex:1, max-width 465px). Dropping the consent block in as a third
   item squeezed all three into that row — collapsing the e-mail field and wrapping the button text.
   Letting the row wrap and giving the block a full-width line of its own restores the original
   two-item row and puts the consent underneath it.

   main.css switches the same form to flex-direction:column on small screens; the block needs no
   special case there — it simply becomes the last stacked item.

   `.field-wrap` is NOT decorative, it is required. main2.js renders a checkbox validation error as
   `field.closest('.field-wrap').append('<div class="errorMsg NAME">')`. With no .field-wrap
   ancestor, closest() matches nothing and the error is silently dropped — the visitor would see a
   form that refuses to submit with no explanation. The same wrapper is used by
   front/auth/templates/registerForm.blade.php for exactly this reason. */
.feedback-form__inner form {
    flex-wrap: wrap;
}
.subscribeConsent {
    flex: 0 0 100%;
    margin: 14px 0 0;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    line-height: 1.45;
}
/* The checkbox and its text sit in an inner <label> so that the injected .errorMsg lands as a
   SIBLING of the label rather than inside it — a <div> inside a <label> is not valid HTML. */
.subscribeConsent__label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}
.subscribeConsent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 2px 8px 0 0;
    accent-color: #FF7F40;
    cursor: pointer;
}
.subscribeConsent__text {
    flex: 1 1 0;
}
.subscribeConsent__text a {
    color: #FF7F40;
    text-decoration: underline;
}
.subscribeConsent__text a:hover {
    color: #A85522;
}
/* main2.js appends the error as the LAST child of .field-wrap — here the wrapper div — so it
   lands under the label. Indented to clear the checkbox column. */
.subscribeConsent .errorMsg {
    margin: 4px 0 0 23px;
    color: #f20707;
    font-size: 12px;
    line-height: 1;
}
/* Newsletter consent END */
