/* Cookie Consent PRO — Front-end layout styles */

/* Cookie policy shortcode */
.scc-policy h2 {
    font-size: 1.2em;
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}
.scc-policy ul {
    padding-left: 1.4em;
    margin-bottom: 1em;
}
.scc-policy li {
    margin-bottom: 0.4em;
}


/* PRO preferences modal */
.scc-btn-customize {
    background: transparent;
    border: 1px solid currentColor;
}

.scc-pro-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(8px);
}

.scc-pro-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    padding: 28px;
}

.scc-pro-modal h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.scc-pro-modal-intro {
    margin: 0 0 18px;
    color: #4b5563;
}

.scc-pro-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.scc-pro-category-list {
    display: grid;
    gap: 10px;
}

.scc-pro-category-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

.scc-pro-category-row input {
    margin-top: 3px;
}

.scc-pro-category-content {
    display: grid;
    gap: 4px;
}

.scc-pro-category-content small {
    color: #6b7280;
    line-height: 1.45;
}

.scc-pro-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.scc-pro-save-preferences {
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 520px) {
    .scc-pro-modal {
        padding: 22px;
    }

    .scc-pro-modal-actions {
        justify-content: stretch;
    }

    .scc-pro-modal-actions .scc-btn {
        width: 100%;
    }
}


/* v1.2.2 — Front-end polish: Customize button and preferences modal close button */
.scc-banner .scc-btn-customize {
	background: #ffffff !important;
	color: #111827 !important;
	border: 1px solid rgba(17, 24, 39, 0.18) !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.scc-banner .scc-btn-customize:hover,
.scc-banner .scc-btn-customize:focus {
	background: #f9fafb !important;
	color: #111827 !important;
	border-color: rgba(17, 24, 39, 0.32) !important;
}

.scc-theme-dark .scc-btn-customize {
	background: rgba(255, 255, 255, 0.10) !important;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.26) !important;
}

.scc-theme-dark .scc-btn-customize:hover,
.scc-theme-dark .scc-btn-customize:focus {
	background: rgba(255, 255, 255, 0.16) !important;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.42) !important;
}

.scc-pro-modal {
	position: relative !important;
}

.scc-pro-modal-close {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	max-width: 32px !important;
	max-height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid rgba(17, 24, 39, 0.12) !important;
	border-radius: 999px !important;
	background: #ffffff !important;
	color: #111827 !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10) !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.scc-pro-modal-close:hover,
.scc-pro-modal-close:focus {
	background: #111827 !important;
	color: #ffffff !important;
	border-color: #111827 !important;
	outline: none !important;
}

.scc-pro-modal h2 {
	padding-right: 48px !important;
}


/* v1.2.7 — repaired PRO layout presets */

/* Shared reset for all PRO layouts. Prevents inherited FREE flex styles from creating empty space. */
#scc-banner.scc-layout-bar,
#scc-banner.scc-layout-compact,
#scc-banner.scc-layout-box,
#scc-banner.scc-layout-floating {
	box-sizing: border-box !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	justify-content: flex-start !important;
	align-content: flex-start !important;
}

#scc-banner.scc-layout-bar .scc-message-wrap,
#scc-banner.scc-layout-compact .scc-message-wrap,
#scc-banner.scc-layout-box .scc-message-wrap,
#scc-banner.scc-layout-floating .scc-message-wrap {
	flex: 0 1 auto !important;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

#scc-banner.scc-layout-bar .scc-message,
#scc-banner.scc-layout-compact .scc-message,
#scc-banner.scc-layout-box .scc-message,
#scc-banner.scc-layout-floating .scc-message {
	margin: 0 !important;
	padding: 0 !important;
}

#scc-banner.scc-layout-bar .scc-actions,
#scc-banner.scc-layout-compact .scc-actions,
#scc-banner.scc-layout-box .scc-actions,
#scc-banner.scc-layout-floating .scc-actions {
	flex: 0 0 auto !important;
	margin: 0 !important;
}

/* BAR — classic full-width horizontal consent bar. */
#scc-banner.scc-layout-bar {
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-width: none !important;
	border-radius: 0 !important;
	padding: 16px 24px !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 18px !important;
	box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.10) !important;
	transform: translateY(0) !important;
}

#scc-banner.scc-top.scc-layout-bar {
	top: 0 !important;
	bottom: auto !important;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.10) !important;
}

#scc-banner.scc-layout-bar .scc-message-wrap {
	flex: 1 1 auto !important;
}

#scc-banner.scc-layout-bar .scc-actions {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: flex-end !important;
	gap: 10px !important;
}

/* COMPACT — smaller centered pill/card, not the same as Bar. */
#scc-banner.scc-layout-compact {
	left: 50% !important;
	right: auto !important;
	bottom: 18px !important;
	width: auto !important;
	max-width: min(780px, calc(100% - 32px)) !important;
	border-radius: 999px !important;
	padding: 10px 12px 10px 18px !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 12px !important;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16) !important;
	transform: translateX(-50%) !important;
}

#scc-banner.scc-top.scc-layout-compact {
	top: 18px !important;
	bottom: auto !important;
}

#scc-banner.scc-layout-compact .scc-message {
	font-size: 13px !important;
	line-height: 1.35 !important;
	white-space: normal !important;
}

#scc-banner.scc-layout-compact .scc-actions {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 6px !important;
}

#scc-banner.scc-layout-compact .scc-btn {
	padding: 7px 10px !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
	min-height: 0 !important;
	border-radius: 999px !important;
}

/* BOX — centered clean card, no vertical empty area. */
#scc-banner.scc-layout-box {
	left: 50% !important;
	right: auto !important;
	bottom: 32px !important;
	width: min(520px, calc(100% - 32px)) !important;
	max-width: 520px !important;
	border-radius: 20px !important;
	padding: 22px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 16px !important;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22) !important;
	transform: translateX(-50%) !important;
}

#scc-banner.scc-top.scc-layout-box {
	top: 32px !important;
	bottom: auto !important;
}

#scc-banner.scc-layout-box .scc-message-wrap {
	width: 100% !important;
}

#scc-banner.scc-layout-box .scc-message {
	font-size: 15px !important;
	line-height: 1.55 !important;
}

#scc-banner.scc-layout-box .scc-actions {
	width: 100% !important;
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: flex-end !important;
	gap: 10px !important;
}

/* FLOATING — small corner card. */
#scc-banner.scc-layout-floating {
	left: auto !important;
	right: 24px !important;
	bottom: 24px !important;
	width: 360px !important;
	max-width: calc(100% - 48px) !important;
	border-radius: 18px !important;
	padding: 18px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 14px !important;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.20) !important;
	transform: translateY(0) !important;
}

#scc-banner.scc-top.scc-layout-floating {
	top: 24px !important;
	bottom: auto !important;
}

#scc-banner.scc-layout-floating .scc-message-wrap {
	width: 100% !important;
}

#scc-banner.scc-layout-floating .scc-message {
	font-size: 14px !important;
	line-height: 1.5 !important;
}

#scc-banner.scc-layout-floating .scc-actions {
	width: 100% !important;
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: flex-end !important;
	gap: 8px !important;
}

#scc-banner.scc-layout-floating .scc-btn {
	padding: 8px 12px !important;
	font-size: 13px !important;
}

/* Mobile layout corrections. */
@media (max-width: 640px) {
	#scc-banner.scc-layout-bar {
		flex-direction: column !important;
		align-items: stretch !important;
		padding: 16px !important;
	}

	#scc-banner.scc-layout-bar .scc-actions {
		justify-content: stretch !important;
	}

	#scc-banner.scc-layout-bar .scc-btn {
		flex: 1 1 auto !important;
	}

	#scc-banner.scc-layout-compact {
		left: 12px !important;
		right: 12px !important;
		width: auto !important;
		max-width: none !important;
		border-radius: 16px !important;
		flex-direction: column !important;
		align-items: stretch !important;
		transform: none !important;
	}

	#scc-banner.scc-layout-compact .scc-actions,
	#scc-banner.scc-layout-box .scc-actions,
	#scc-banner.scc-layout-floating .scc-actions {
		justify-content: stretch !important;
	}

	#scc-banner.scc-layout-compact .scc-btn,
	#scc-banner.scc-layout-box .scc-btn,
	#scc-banner.scc-layout-floating .scc-btn {
		flex: 1 1 auto !important;
	}

	#scc-banner.scc-layout-box {
		left: 12px !important;
		right: 12px !important;
		width: auto !important;
		max-width: none !important;
		transform: none !important;
	}

	#scc-banner.scc-layout-floating {
		left: 12px !important;
		right: 12px !important;
		width: auto !important;
		max-width: none !important;
	}
}

