/*
 * Cookie consent styles - FreightEx International
 * File: wp-content/themes/<theme>/assets/css/cookie-consent.css
 * Loaded automatically by cookie-consent.php. Change colours/fonts in the token block below.
 */

/* FreightEx International — gold on near-black, IBM Plex Sans + Big Shoulders Display (from the theme's site.css) */
#ckc-root,.ckc-embed{
	--ckc-font:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
	--ckc-display:'Big Shoulders Display','IBM Plex Sans',sans-serif;
	--ckc-btn-font:'IBM Plex Sans',system-ui,sans-serif;
	--ckc-surface:#12161A;
	--ckc-card:#0B0D0F;
	--ckc-overlay:rgba(11,13,15,.78);
	--ckc-text:#F4F2EE;
	--ckc-muted:#9AA2A8;
	--ckc-line:rgba(244,242,238,.10);
	--ckc-line-strong:rgba(244,242,238,.30);
	--ckc-accent:#C08A3F;
	--ckc-accent-hover:#D9A35A;
	--ckc-accent-ink:#0B0D0F;
	--ckc-accent-text:#C08A3F;
	--ckc-link:#D9A35A;
	--ckc-link-hover:#F4F2EE;
	--ckc-focus:#D9A35A;
	--ckc-ghost-bg:transparent;
	--ckc-strip:#C08A3F;
	--ckc-radius:10px;
	--ckc-btn-radius:100px;
	--ckc-btn-size:12.5px;
	--ckc-btn-spacing:1.5px;
	--ckc-btn-case:uppercase;
	--ckc-btn-glow:none;
	--ckc-title-size:30px;
	--ckc-modal-title-size:30px;
	--ckc-title-weight:800;
	--ckc-title-spacing:.5px;
	--ckc-title-case:uppercase;
	--ckc-shadow:0 24px 60px rgba(0,0,0,.55);
}

/* ---------- Layout (same on every site; colours and fonts come from the tokens above) ---------- */
#ckc-root{font-family:var(--ckc-font);color:var(--ckc-text);font-size:16px;line-height:1.55;text-align:left}
#ckc-root *,#ckc-root *::before,#ckc-root *::after{box-sizing:border-box;font-family:inherit;cursor:auto}
#ckc-root a,#ckc-root button,#ckc-root summary,#ckc-root label,#ckc-root input{cursor:pointer}
#ckc-root [hidden]{display:none!important}
#ckc-root p{margin:0 0 10px;font-size:15px;line-height:1.6;color:var(--ckc-muted);text-transform:none;letter-spacing:0}
#ckc-root a{color:var(--ckc-link);text-decoration:underline;text-underline-offset:3px;font-weight:500;background:none}
#ckc-root a:hover{color:var(--ckc-link-hover)}
#ckc-root :focus-visible{outline:2px solid var(--ckc-focus);outline-offset:3px}
#ckc-root h2,#ckc-root h3{margin:0;padding:0;color:var(--ckc-text);background:none;-webkit-text-fill-color:currentColor}
#ckc-root button{margin:0;box-shadow:none;text-shadow:none;background-image:none}
#ckc-root button::before,#ckc-root button::after{content:none!important;display:none!important}

/* Banner */
#ckc-root .ckc-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:2147483000;max-width:1180px;margin:0 auto;background:var(--ckc-surface);border:1px solid var(--ckc-line);border-radius:var(--ckc-radius);box-shadow:var(--ckc-shadow);padding:24px 28px;overflow:hidden;animation:ckcUp .35s ease-out}
#ckc-root .ckc-banner::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--ckc-strip)}
#ckc-root .ckc-banner__inner{display:flex;gap:32px;align-items:center}
#ckc-root .ckc-banner__text{flex:1 1 auto;min-width:0}
#ckc-root .ckc-title{font-family:var(--ckc-display);font-size:var(--ckc-title-size);line-height:1.1;font-weight:var(--ckc-title-weight);letter-spacing:var(--ckc-title-spacing);text-transform:var(--ckc-title-case);margin-bottom:10px}
#ckc-root .ckc-links{margin:0;font-size:14px}
#ckc-root .ckc-links a{margin-right:16px}
#ckc-root .ckc-actions{display:flex;flex-direction:column;gap:10px;flex:0 0 240px}

/* Buttons: "Accept all" and "Reject all" are identical (equal prominence) */
#ckc-root .ckc-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:46px;padding:10px 22px;border-radius:var(--ckc-btn-radius);border:1px solid transparent;font-family:var(--ckc-btn-font);font-size:var(--ckc-btn-size);font-weight:600;letter-spacing:var(--ckc-btn-spacing);text-transform:var(--ckc-btn-case);line-height:1.2;text-align:center;text-decoration:none;transition:background-color .2s,border-color .2s,color .2s,transform .2s}
#ckc-root .ckc-btn--solid{background:var(--ckc-accent);color:var(--ckc-accent-ink);border-color:var(--ckc-accent);box-shadow:var(--ckc-btn-glow)}
#ckc-root .ckc-btn--solid:hover{background:var(--ckc-accent-hover);border-color:var(--ckc-accent-hover);color:var(--ckc-accent-ink)}
#ckc-root .ckc-btn--outline{background:var(--ckc-ghost-bg);color:var(--ckc-text);border-color:var(--ckc-line-strong)}
#ckc-root .ckc-btn--outline:hover{border-color:var(--ckc-text);color:var(--ckc-text)}

/* Preferences panel */
#ckc-root .ckc-overlay{position:fixed;inset:0;z-index:2147483001;background:var(--ckc-overlay);display:flex;align-items:center;justify-content:center;padding:16px}
#ckc-root .ckc-modal{position:relative;background:var(--ckc-surface);border:1px solid var(--ckc-line);border-radius:var(--ckc-radius);width:100%;max-width:660px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:var(--ckc-shadow);outline:none;overflow:hidden;animation:ckcIn .25s ease-out}
#ckc-root .ckc-modal::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--ckc-strip)}
#ckc-root .ckc-modal__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 26px 16px;border-bottom:1px solid var(--ckc-line)}
#ckc-root .ckc-modal__title{font-family:var(--ckc-display);font-size:var(--ckc-modal-title-size);font-weight:var(--ckc-title-weight);letter-spacing:var(--ckc-title-spacing);text-transform:var(--ckc-title-case);line-height:1.1}
#ckc-root .ckc-close{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:1px solid var(--ckc-line-strong);background:transparent;color:var(--ckc-text);font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;padding:0}
#ckc-root .ckc-close:hover{border-color:var(--ckc-text)}
#ckc-root .ckc-modal__body{padding:16px 26px;overflow-y:auto}
#ckc-root .ckc-modal__foot{display:flex;gap:10px;padding:16px 26px 22px;border-top:1px solid var(--ckc-line);flex-wrap:wrap}
#ckc-root .ckc-modal__foot .ckc-btn{flex:1 1 160px;width:auto}
#ckc-root .ckc-cat{border:1px solid var(--ckc-line);border-radius:calc(var(--ckc-radius) - 2px);background:var(--ckc-card);padding:16px 18px;margin:12px 0}
#ckc-root .ckc-cat__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
#ckc-root .ckc-cat__title{font-size:17px;font-weight:600;letter-spacing:0;text-transform:none;font-family:var(--ckc-font)}
#ckc-root .ckc-cat__desc{font-size:14px;margin:0}
#ckc-root .ckc-always{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ckc-accent-text);border:1px solid var(--ckc-accent-text);border-radius:999px;padding:3px 10px;white-space:nowrap}
#ckc-root .ckc-switch{position:relative;display:inline-flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:600;color:var(--ckc-text);letter-spacing:.04em;text-transform:uppercase}
#ckc-root .ckc-switch input{position:absolute;opacity:0;width:46px;height:26px;margin:0}
#ckc-root .ckc-switch__track{position:relative;width:46px;height:26px;border-radius:13px;background:transparent;border:2px solid var(--ckc-muted);transition:background-color .15s,border-color .15s;flex:0 0 auto}
#ckc-root .ckc-switch__track::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--ckc-muted);transition:transform .15s,background-color .15s}
#ckc-root .ckc-switch input:checked+.ckc-switch__track{background:var(--ckc-accent);border-color:var(--ckc-accent)}
#ckc-root .ckc-switch input:checked+.ckc-switch__track::after{transform:translateX(20px);background:var(--ckc-accent-ink)}
#ckc-root .ckc-switch input:focus-visible+.ckc-switch__track{outline:2px solid var(--ckc-focus);outline-offset:3px}
#ckc-root .ckc-switch__state{min-width:26px}
#ckc-root .ckc-details{margin-top:10px}
#ckc-root .ckc-details summary{font-size:14px;font-weight:600;color:var(--ckc-link)}
#ckc-root .ckc-table-wrap{overflow-x:auto}
#ckc-root .ckc-table{width:100%;border-collapse:collapse;margin-top:8px;font-size:13px;background:transparent}
#ckc-root .ckc-table th,#ckc-root .ckc-table td{border:1px solid var(--ckc-line);padding:7px 9px;text-align:left;vertical-align:top;color:var(--ckc-muted);background:transparent;word-break:break-word}
#ckc-root .ckc-table th{color:var(--ckc-text);font-weight:600;background:var(--ckc-card)}
#ckc-root .ckc-record{font-size:12px!important;margin-top:12px!important}

/* Floating "Cookie settings" button (bottom-left) */
#ckc-root .ckc-float{position:fixed;left:var(--ckc-float-left,16px);bottom:var(--ckc-float-bottom,16px);z-index:2147482999;width:46px;height:46px;border-radius:50%;border:1px solid var(--ckc-line-strong);background:var(--ckc-surface);color:var(--ckc-accent-text);display:flex;align-items:center;justify-content:center;padding:0;box-shadow:var(--ckc-shadow)}
#ckc-root .ckc-float:hover{border-color:var(--ckc-accent-text)}
#ckc-root .ckc-float svg{width:24px;height:24px}
html.ckc-lock,html.ckc-lock body{overflow:hidden!important}

/* Placeholder shown instead of a blocked embed (e.g. a map) */
.ckc-embed{display:flex;flex-direction:column;justify-content:center;gap:14px;min-height:220px;padding:24px;border:1px dashed var(--ckc-line-strong);border-radius:var(--ckc-radius);background:var(--ckc-surface);color:var(--ckc-muted);font-family:var(--ckc-font);font-size:15px;line-height:1.55}
.ckc-embed p{margin:0;color:var(--ckc-muted)}
.ckc-embed__actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.ckc-embed .ckc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;border-radius:var(--ckc-btn-radius);border:1px solid var(--ckc-accent);background:var(--ckc-accent);color:var(--ckc-accent-ink);font-family:var(--ckc-btn-font);font-size:var(--ckc-btn-size);font-weight:600;letter-spacing:var(--ckc-btn-spacing);text-transform:var(--ckc-btn-case);cursor:pointer}
.ckc-embed .ckc-btn::after,.ckc-embed .ckc-btn::before{content:none!important}
.ckc-embed__link{color:var(--ckc-link);text-decoration:underline;text-underline-offset:3px}

/* Footer links added by the script */
.ckc-footer-links{display:inline-flex;flex-wrap:wrap;gap:6px 18px}
.ckc-footer-links a{color:inherit}

@keyframes ckcUp{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@keyframes ckcIn{from{transform:scale(.97);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){#ckc-root .ckc-banner,#ckc-root .ckc-modal{animation:none}}
@media (max-width:767px){
	#ckc-root .ckc-banner{left:10px;right:10px;bottom:10px;padding:20px 16px;max-height:calc(100vh - 20px);overflow-y:auto}
	#ckc-root .ckc-banner__inner{flex-direction:column;align-items:stretch;gap:16px}
	#ckc-root .ckc-actions{flex:0 0 auto}
	#ckc-root .ckc-modal__head,#ckc-root .ckc-modal__body,#ckc-root .ckc-modal__foot{padding-left:16px;padding-right:16px}
	#ckc-root .ckc-modal__foot{flex-direction:column}
	#ckc-root .ckc-modal__foot .ckc-btn{flex:0 0 auto;width:100%}
	#ckc-root .ckc-float{left:var(--ckc-float-left-m,10px);bottom:var(--ckc-float-bottom-m,10px);width:42px;height:42px}
}
