/* Cookie consent (includes/consent.php). Tokens follow gs-nav.css (navy #152d53, green #0c936a, line #dfe9e5). */
.gscc, .gscc-dialog { --gscc-navy: #152d53; --gscc-green: #0c936a; --gscc-green-dark: #0a7a58; --gscc-green-deep: #086447; --gscc-line: #dfe9e5; --gscc-muted: #4f6476; --gscc-paper: #f3fbf8; font-family: "Rubik", "Alef", Arial, sans-serif; direction: rtl; color: var(--gscc-navy); }
.gscc[hidden], .gscc-dialog[hidden], .gscc-backdrop[hidden] { display: none !important; }

.gscc { position: fixed; inset-inline: 0; bottom: 0; z-index: 1300; display: flex; justify-content: center; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.gscc-card { pointer-events: auto; width: 100%; max-width: 720px; background: #fff; border: 1px solid var(--gscc-line); border-radius: 16px; box-shadow: 0 12px 32px rgba(10, 38, 46, .18); padding: 16px 20px; }
.gscc-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.gscc-text { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--gscc-muted); }
.gscc-text a { color: var(--gscc-green-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gscc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }

.gscc-btn { min-height: 44px; padding: 0 20px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border: 2px solid var(--gscc-green-dark); }
.gscc-btn-primary { background: var(--gscc-green-dark); color: #fff; }
.gscc-btn-primary:hover { background: var(--gscc-green-deep); border-color: var(--gscc-green-deep); }
.gscc-btn-outline { background: #fff; color: var(--gscc-green-dark); }
.gscc-btn-outline:hover { background: var(--gscc-paper); }
.gscc-link { min-height: 44px; padding: 0 8px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--gscc-navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gscc :focus-visible, .gscc-dialog :focus-visible { outline: 3px solid var(--gscc-navy); outline-offset: 2px; }

.gscc-backdrop { position: fixed; inset: 0; z-index: 1400; background: rgba(15, 30, 50, .5); }
.gscc-dialog { position: fixed; inset: 0; z-index: 1401; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; }
.gscc-dialog-card { pointer-events: auto; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 40px rgba(10, 38, 46, .25); padding: 20px; }
.gscc-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gscc-dialog-card:focus { outline: none; }
.gscc-close { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--gscc-paper); color: var(--gscc-navy); font-size: 24px; line-height: 1; cursor: pointer; }
.gscc-close:hover { background: var(--gscc-line); }
.gscc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--gscc-line); }
.gscc-row-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.gscc-row-text p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--gscc-muted); }
.gscc-switch { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; border-radius: 14px; border: 0; background: #6f828f; cursor: pointer; }
.gscc-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: right .15s ease; }
.gscc-switch[aria-checked="true"] { background: var(--gscc-green); }
.gscc-switch[aria-checked="true"]::after { right: 23px; }
.gscc-switch[disabled] { cursor: not-allowed; opacity: .7; }
.gscc-save { width: 100%; margin-top: 12px; }
html.gscc-lock { overflow: hidden; }

/* Footer: "הגדרות עוגיות" sits with the legal links (gs-nav.css .gsf-legal). */
.gsf-cookie-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; }
.gsf-cookie-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.gsf-cookie-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 560px) {
	.gscc { padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
	.gscc-card { padding: 14px 16px; }
	.gscc-btn { flex: 1 1 45%; }
	.gscc-link { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gscc-switch::after { transition: none; } }
@media print { .gscc, .gscc-dialog, .gscc-backdrop { display: none !important; } }
