/* SDC Cookie Consent — sober styles aligned with OceanWP footer (#3a3a3a / white) */

.sdc-cc-root {
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #3a3a3a;
	z-index: 99999;
}

.sdc-cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: #ffffff;
	border-top: 1px solid #d0d0d0;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
	padding: 18px 20px;
	z-index: 100000;
}

.sdc-cc-banner-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: block;
}

.sdc-cc-banner-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: #2a2a2a;
}

.sdc-cc-banner-text {
	margin: 0 0 14px;
	color: #3a3a3a;
}

.sdc-cc-banner-text a {
	color: #2a2a2a;
	text-decoration: underline;
}

.sdc-cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.sdc-cc-btn {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #3a3a3a;
	background: #ffffff;
	color: #3a3a3a;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 2px;
	line-height: 1.3;
	transition: background 0.15s ease, color 0.15s ease;
}

.sdc-cc-btn:hover,
.sdc-cc-btn:focus {
	background: #f5f5f5;
	outline: none;
}

.sdc-cc-btn-primary {
	background: #3a3a3a;
	color: #ffffff;
	border-color: #3a3a3a;
}

.sdc-cc-btn-primary:hover,
.sdc-cc-btn-primary:focus {
	background: #1f1f1f;
	color: #ffffff;
}

.sdc-cc-btn-ghost {
	border-color: transparent;
	text-decoration: underline;
	font-weight: 500;
	padding-left: 8px;
	padding-right: 8px;
}

.sdc-cc-btn-ghost:hover {
	background: transparent;
}

/* Preferences modal */
.sdc-cc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.sdc-cc-modal {
	background: #ffffff;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	border-radius: 4px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	padding: 22px 22px 18px;
}

.sdc-cc-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.sdc-cc-modal-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #2a2a2a;
}

.sdc-cc-modal-close {
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0 4px;
}

.sdc-cc-cat {
	border: 1px solid #e2e2e2;
	border-radius: 3px;
	padding: 12px 14px;
	margin-bottom: 10px;
}

.sdc-cc-cat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.sdc-cc-cat-name {
	font-weight: 600;
	color: #2a2a2a;
}

.sdc-cc-cat-desc {
	margin: 6px 0 0;
	font-size: 13px;
	color: #666;
}

.sdc-cc-toggle {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}

.sdc-cc-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.sdc-cc-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #c8c8c8;
	border-radius: 24px;
	transition: background 0.15s ease;
}

.sdc-cc-toggle-slider:before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s ease;
}

.sdc-cc-toggle input:checked + .sdc-cc-toggle-slider {
	background: #3a3a3a;
}

.sdc-cc-toggle input:checked + .sdc-cc-toggle-slider:before {
	transform: translateX(18px);
}

.sdc-cc-toggle input:disabled + .sdc-cc-toggle-slider {
	opacity: 0.7;
	cursor: not-allowed;
}

.sdc-cc-modal-actions {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Discreet reopen button (corner) */
.sdc-cc-reopen {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 99998;
	background: #ffffff;
	border: 1px solid #c8c8c8;
	color: #3a3a3a;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 2px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	opacity: 0.85;
}

.sdc-cc-reopen:hover,
.sdc-cc-reopen:focus {
	opacity: 1;
	outline: none;
}

button.sdc-cc-reopen-trigger {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

/* Footer policy links — high contrast on white #footer-bottom (OceanWP default link was #fff). */
#footer-bottom #copyright {
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: #666666 !important;
}
#footer-bottom a.sdc-cc-footer-link,
a.sdc-cc-footer-link {
	color: #666666 !important;
	background: transparent !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.6 !important;
	text-decoration: underline !important;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1.5px;
}

#footer-bottom a.sdc-cc-footer-link:hover,
#footer-bottom a.sdc-cc-footer-link:focus,
a.sdc-cc-footer-link:hover,
a.sdc-cc-footer-link:focus {
	color: #007a99 !important;
}

#footer-bottom .sdc-cc-footer-sep,
.sdc-cc-footer-sep {
	color: #666666 !important;
	opacity: 0.55;
}


.sdc-cc-hidden {
	display: none !important;
}

@media (max-width: 600px) {
	.sdc-cc-banner {
		padding: 14px 14px 16px;
	}
	.sdc-cc-actions .sdc-cc-btn {
		flex: 1 1 auto;
		text-align: center;
	}
}
