/* ==========================================================================
   Crohn's Disease UK - Consent Modal, Footer Control & Cookie Table (Light Mode)
   Palette: Deep Forest Green (#163829), Warm Parchment (#FAF8F5),
            Deep Slate (#181F1C), Border (#E4DFD7), Focus Gold (#F3CC79 / #98600F)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Funding Choices (IAB TCF v2.2 & US State Regulations) Overrides
   -------------------------------------------------------------------------- */

.fc-consent-root .fc-dialog-container .fc-dialog {
	font-family: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: #FFFFFF !important;
	color: #33413B !important;
	border: 1px solid #E4DFD7;
	border-radius: 12px !important;
}

.fc-consent-root .fc-dialog-headline,
.fc-consent-root h1.fc-dialog-headline,
.fc-consent-root h2.fc-section-header,
.fc-consent-root .fc-preference-title {
	color: #181F1C !important;
}

.fc-consent-root .fc-dialog-body,
.fc-consent-root .fc-dialog-body p,
.fc-consent-root .fc-preference-description {
	color: #33413B !important;
}

.fc-consent-root .fc-data-use-disclaimer,
.fc-consent-root .fc-vendor-count,
.fc-consent-root .fc-legitimate-interest-text {
	color: #5A645F !important;
}

/* Primary Buttons ("Consent", "Confirm choices") */
.fc-consent-root .fc-cta-consent,
.fc-consent-root .fc-confirm-choices,
.fc-consent-root button.fc-primary-button {
	background-color: #163829 !important;
	border: 1px solid #163829 !important;
	color: #FFFFFF !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
}

.fc-consent-root .fc-cta-consent .fc-button-label,
.fc-consent-root .fc-confirm-choices .fc-button-label,
.fc-consent-root button.fc-primary-button .fc-button-label,
.fc-consent-root .fc-cta-consent p,
.fc-consent-root .fc-confirm-choices p {
	color: #FFFFFF !important;
}

.fc-consent-root .fc-cta-consent:hover,
.fc-consent-root .fc-confirm-choices:hover,
.fc-consent-root button.fc-primary-button:hover {
	background-color: #0F291E !important;
	border-color: #0F291E !important;
}

.fc-consent-root .fc-cta-consent:focus-visible,
.fc-consent-root .fc-confirm-choices:focus-visible,
.fc-consent-root button.fc-primary-button:focus-visible {
	outline: 3px solid #98600F !important;
	outline-offset: 2px !important;
}

/* Secondary Buttons ("Do not consent", "Manage options") */
.fc-consent-root .fc-cta-do-not-consent,
.fc-consent-root .fc-cta-manage-options,
.fc-consent-root button.fc-secondary-button {
	background-color: #FFFFFF !important;
	border: 1.5px solid #163829 !important;
	color: #163829 !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
}

.fc-consent-root .fc-cta-do-not-consent .fc-button-label,
.fc-consent-root .fc-cta-manage-options .fc-button-label,
.fc-consent-root button.fc-secondary-button .fc-button-label,
.fc-consent-root .fc-cta-do-not-consent p,
.fc-consent-root .fc-cta-manage-options p {
	color: #163829 !important;
}

.fc-consent-root .fc-cta-do-not-consent:hover,
.fc-consent-root .fc-cta-manage-options:hover,
.fc-consent-root button.fc-secondary-button:hover {
	background-color: #F2F5F3 !important;
}

.fc-consent-root .fc-cta-do-not-consent:focus-visible,
.fc-consent-root .fc-cta-manage-options:focus-visible,
.fc-consent-root button.fc-secondary-button:focus-visible {
	outline: 3px solid #98600F !important;
	outline-offset: 2px !important;
}

/* Links and active preference toggles */
.fc-consent-root a,
.fc-consent-root .fc-help-link {
	color: #163829 !important;
}

.fc-consent-root .fc-preference-slider-container input:checked + .fc-slider-el {
	background-color: #163829 !important;
}

/* --------------------------------------------------------------------------
   2. Persistent Footer Privacy Bar & Amazon Associates Disclosure
   -------------------------------------------------------------------------- */

.cduk-privacy-footer-bar {
	background-color: #163829;
	border-top: 1px solid #527360;
	color: #FAF8F5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 16px 20px 24px;
	text-align: center;
}

.cduk-affiliate-footer-disclosure {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #FAF8F5;
}

.cduk-affiliate-footer-disclosure a {
	color: #FAF8F5;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.cduk-affiliate-footer-disclosure a:hover {
	color: #F3CC79;
}

.cduk-affiliate-footer-disclosure a:focus-visible {
	outline: 3px solid #F3CC79;
	outline-offset: 3px;
	border-radius: 2px;
}

.cduk-privacy-footer-bar .cduk-privacy-settings-btn {
	min-height: 44px;
	padding: 8px 16px;
	background: transparent;
	color: #FAF8F5;
	border: 1px solid rgba(250, 248, 245, 0.55);
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.cduk-privacy-footer-bar .cduk-privacy-settings-btn:hover {
	color: #F3CC79;
	border-color: #F3CC79;
}

.cduk-privacy-footer-bar .cduk-privacy-settings-btn:focus-visible {
	outline: 3px solid #F3CC79;
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Inline Cookie Policy Button Shortcode & Cookie Table
   -------------------------------------------------------------------------- */

.cduk-privacy-settings-wrap {
	margin: 16px 0 24px;
	display: block;
}

.cduk-privacy-settings-wrap .cduk-privacy-settings-btn {
	width: auto !important;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 18px;
	background-color: #163829;
	color: #FFFFFF;
	border: 1px solid #163829;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cduk-privacy-settings-wrap .cduk-privacy-settings-btn:hover {
	background-color: #0F291E;
	border-color: #0F291E;
	color: #FFFFFF;
}

.cduk-privacy-settings-wrap .cduk-privacy-settings-btn:focus-visible {
	outline: 3px solid #98600F;
	outline-offset: 3px;
}

.cduk-cookie-table-wrapper {
	overflow-x: auto;
	margin: 16px 0 24px;
}

.cduk-cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
	color: #181F1C;
	background-color: #FFFFFF;
}

.cduk-cookie-table thead {
	background-color: #FAF8F5;
}

.cduk-cookie-table th,
.cduk-cookie-table td {
	padding: 10px 12px;
	border: 1px solid #E4DFD7;
	text-align: left;
	vertical-align: top;
}

.cduk-cookie-table th {
	font-weight: 600;
	color: #163829;
}

.cduk-cookie-table code {
	font-size: 12.5px;
	padding: 1px 4px;
	background-color: #FAF8F5;
	border: 1px solid #E4DFD7;
	border-radius: 3px;
}
