/* PERFECTRA cookie consent: banner (first layer) and preferences dialog (second layer).
   Logical properties are used so the same rules work for LTR and RTL (Arabic). */
.pfc, .pfc * { box-sizing: border-box; }
.pfc { font-family: 'Montserrat', 'Cairo', sans-serif; color: #1f2933; font-size: 14px; line-height: 1.55; }
html[lang=ar] .pfc { font-family: 'Cairo', 'Montserrat', sans-serif; }
.pfc[hidden], .pfc [hidden] { display: none !important; }

/* First layer: floating card, bottom corner on desktop, bottom sheet on phones. Never blocks the page. */
.pfc-banner { position: fixed; z-index: 2147483000; inset-block-end: 20px; inset-inline-start: 20px; width: 440px; max-width: calc(100vw - 40px);
	background: #fff; border-radius: 10px; border-top: 4px solid var(--color-primary, #1071B5);
	box-shadow: 0 10px 40px rgba(8,25,51,.28); padding: 22px 22px 18px; }
.pfc-title { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: #081933; letter-spacing: 0; text-transform: none; }
.pfc p, .pfc li { line-height: 1.5; }
.pfc-text { margin: 0 0 14px; color: #414141; }
.pfc-text a, .pfc-link { color: var(--color-primary, #1071B5); text-decoration: underline; }

/* Accept and Reject are the same size, shape and weight on purpose (EU/UK/DE regulators: equal prominence). */
.pfc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pfc-btn { appearance: none; cursor: pointer; min-height: 44px; padding: 10px 14px; border-radius: 6px; font: inherit; font-weight: 700; font-size: 14px;
	border: 2px solid var(--color-primary, #1071B5); background: var(--color-primary, #1071B5); color: #fff; text-align: center; transition: background .15s, border-color .15s; }
.pfc-btn:hover { background: #0c5a92; border-color: #0c5a92; }
.pfc-btn:focus-visible, .pfc-switch input:focus-visible + .pfc-slider, .pfc-linkbtn:focus-visible, .pfc-close:focus-visible, .pfc-details summary:focus-visible {
	outline: 3px solid #CCAC47; outline-offset: 2px; }
.pfc-linkbtn { appearance: none; background: none; border: 0; padding: 12px 4px 0; margin: 0 auto; display: block; font: inherit; font-weight: 600; cursor: pointer;
	color: var(--color-primary, #1071B5); text-decoration: underline; min-height: 44px; }

/* Second layer: modal dialog with a dimmed backdrop */
.pfc-backdrop { position: fixed; inset: 0; z-index: 2147483001; background: rgba(8,25,51,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pfc-dialog { background: #fff; width: 640px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); position: relative; }
.pfc-dhead { padding: 22px 56px 6px 24px; }
html[dir=rtl] .pfc-dhead { padding: 22px 24px 6px 56px; }
.pfc-close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 26px; line-height: 1; color: #414141; border-radius: 6px; }
.pfc-close:hover { background: #eef2f6; }
.pfc-dbody { padding: 6px 24px 8px; }
.pfc-note { background: #eef6fb; border-inline-start: 4px solid var(--color-primary, #1071B5); padding: 10px 12px; margin: 0 0 14px; border-radius: 4px; }
.pfc-cat { border: 1px solid #dfe5ea; border-radius: 8px; margin: 0 0 12px; padding: 14px 16px; }
.pfc-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pfc-cat h3 { margin: 0; font-size: 15px; font-weight: 800; color: #081933; letter-spacing: 0; text-transform: none; }
.pfc-cat p { margin: 6px 0 0; color: #414141; }
.pfc-always { font-size: 12px; font-weight: 700; color: #0b6b3a; background: #e3f4ea; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }

/* Toggle: a real checkbox, so keyboard and screen readers work */
.pfc-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.pfc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.pfc-slider { position: absolute; inset: 0; border-radius: 30px; background: #6b7785; transition: background .15s; }
.pfc-slider::before { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pfc-switch input:checked + .pfc-slider { background: #0b6b3a; }
.pfc-switch input:checked + .pfc-slider::before { transform: translateX(22px); }
html[dir=rtl] .pfc-switch input:checked + .pfc-slider::before { transform: translateX(-22px); }

.pfc-details { margin: 2px 0 12px; }
.pfc-details summary { cursor: pointer; font-weight: 700; color: var(--color-primary, #1071B5); padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.pfc-table-wrap { overflow-x: auto; }
.pfc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pfc-table th, .pfc-table td { text-align: start; padding: 7px 8px; border-bottom: 1px solid #e5eaee; vertical-align: top; }
.pfc-table th { background: #f4f7fa; font-weight: 700; color: #081933; }
.pfc-dfoot { position: sticky; inset-block-end: 0; background: #fff; border-top: 1px solid #e5eaee; padding: 14px 24px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* Footer "Cookie settings" link: looks like the other footer links */
.pfc-reopen { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.pfc-reopen:hover { text-decoration: underline; }

@media (max-width: 575px) {
	.pfc-banner { inset-inline: 0; inset-block-end: 0; width: 100%; max-width: 100%; border-radius: 14px 14px 0 0; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); }
	.pfc-title { font-size: 16px; }
	.pfc-text { font-size: 13.5px; margin-bottom: 12px; }
	.pfc-dfoot { grid-template-columns: 1fr; }
	.pfc-dialog { max-height: calc(100vh - 16px); }
	.pfc-backdrop { padding: 8px; align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .pfc *, .pfc-slider, .pfc-slider::before { transition: none !important; } }
@media print { .pfc { display: none !important; } }
