/* Cookie consent banner + preferences modal - intentionally self-contained
   (own hardcoded palette, not the host page's ym- or site- prefixed CSS
   variables) so the exact same markup/CSS works unmodified on every
   customer-menu template and the marketing site without 10 separate copies. */

.ym-consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    max-width: 560px;
    margin: 0 auto;
    background: #1a1a1a;
    color: #f2f2f2;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ym-consent-banner[hidden] { display: none; }

.ym-consent-banner p {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #d8d8d8;
}

.ym-consent-banner a { color: #ffa86b; text-decoration: underline; }

.ym-consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ym-consent-actions button {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #f2f2f2;
    cursor: pointer;
}

.ym-consent-actions button.ym-consent-primary {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.ym-consent-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 210;
}

.ym-consent-modal-backdrop[hidden], .ym-consent-modal[hidden] { display: none; }

.ym-consent-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 211;
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.ym-consent-modal h3 { margin: 0 0 16px; font-size: 18px; color: #1a1a1a; }

.ym-consent-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.ym-consent-row:last-of-type { border-bottom: none; }

.ym-consent-row strong { display: block; font-size: 14px; color: #1a1a1a; margin-bottom: 4px; }
.ym-consent-row p { margin: 0; font-size: 12.5px; color: #6b6b6b; line-height: 1.5; }
.ym-consent-row input[type="checkbox"] { flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; }

.ym-consent-modal-save {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #ff6b35;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 480px) {
    .ym-consent-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
}
