/* Bind the portable consent controls to the storefront design tokens. */
.factory-consent-panel,.factory-consent-saved {
    --factory-consent-font:var(--artx-font-family);
    --factory-consent-text:var(--artx-color-black-100);
    --factory-consent-background:var(--artx-color-white-100);
    --factory-consent-border:var(--artx-color-black-15);
    --factory-consent-radius:8px;
    --factory-consent-button-radius:var(--artx-button-radius-sm);
    --factory-consent-primary-background:var(--artx-color-black-100);
    --factory-consent-primary-text:var(--artx-color-white-100);
    --factory-consent-focus:var(--artx-color-blue-100);
}
.factory-consent-panel .factory-consent-actions button,.factory-consent-panel .factory-consent-save {
    min-height:48px;
    font-size:var(--artx-type-control-size);
}
.factory-consent-panel .factory-consent-accept:hover,.factory-consent-panel .factory-consent-save:hover {
    background:var(--artx-color-black-80,#333);
}

/* Preferences remain available in the existing footer policy links. */
body.artx .artx-footer-consent {
    appearance: none;
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-transform: none;
    cursor: pointer;
}
body.artx .artx-footer-consent:hover,
body.artx .artx-footer-consent:focus-visible { color: var(--artx-color-blue-100); }
body.artx .artx-checkout-footer .artx-footer-consent { min-height: 44px; text-decoration: underline; }

/* On a phone the panel covers what the visitor came to see, so it takes the room its choices need and no more:
   the privacy link sits beside the title and the two buttons keep the 44px the consent standard asks for. */
@media (max-width: 767px) {
    .factory-consent-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
        padding-block: 10px;
    }
    .factory-consent-panel > h2 { grid-area: 1 / 1; margin-bottom: 4px; }
    .factory-consent-panel > a { grid-area: 1 / 2; align-self: baseline; margin-block: 0; }
    .factory-consent-panel > p,
    .factory-consent-panel > div { grid-column: 1 / -1; }
    .factory-consent-panel > p { margin-bottom: 8px; }
    .factory-consent-panel .factory-consent-actions button { min-height: 44px; }
}
