/**
 * Cookie Manager Styling
 * Author: Break The Mold
 */

/* ── Container Layout ─────────────────────────────────── */
.rrc-cookie-policy-container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: 'Outfit', 'Inter', sans-serif;
	color: #2D3748;
}

/* Breadcrumbs */
.rrc-cookie-breadcrumbs {
	font-size: 14px;
	color: #718096;
	margin-bottom: 25px;
}
.rrc-cookie-breadcrumbs a {
	color: #718096;
	text-decoration: none;
	transition: color 0.2s ease;
}
.rrc-cookie-breadcrumbs a:hover {
	color: #E31C25;
}
.rrc-cookie-breadcrumbs span.active {
	color: #E31C25;
	font-weight: 500;
}

/* ── Hero Section ─────────────────────────────────────── */
.rrc-cookie-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #FFFFFF;
	border-radius: 20px;
	padding: 40px 60px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.04);
	margin-bottom: 40px;
	gap: 40px;
}
.rrc-cookie-hero-content {
	flex: 1;
}
.rrc-cookie-hero h1 {
	font-size: 42px;
	font-weight: 700;
	color: #1A202C;
	margin: 0 0 15px 0;
	line-height: 1.2;
}
.rrc-cookie-hero p {
	font-size: 16px;
	line-height: 1.6;
	color: #4A5568;
	margin: 0 0 20px 0;
}
.rrc-cookie-hero-meta {
	font-size: 13px;
	color: #A0AEC0;
	margin-bottom: 25px;
}
.rrc-cookie-hero-actions {
	display: flex;
	gap: 15px;
}
.rrc-btn-primary {
	background: #E31C25;
	color: #FFFFFF;
	border: none;
	border-radius: 30px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(227, 28, 37, 0.2);
}
.rrc-btn-primary:hover {
	background: #C4121A;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(227, 28, 37, 0.3);
}
.rrc-btn-secondary {
	background: #FFFFFF;
	color: #E31C25;
	border: 2px solid #E31C25;
	border-radius: 30px;
	padding: 10px 26px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}
.rrc-btn-secondary:hover {
	background: rgba(227, 28, 37, 0.05);
	transform: translateY(-2px);
}
.rrc-cookie-hero-image {
	flex-shrink: 0;
}
.rrc-cookie-circle {
	width: 180px;
	height: 180px;
	background: #F7FAFC;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed #E2E8F0;
	position: relative;
}
.rrc-cookie-circle img {
	width: 120px;
	height: auto;
	animation: float 4s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* ── Features Cards Row ───────────────────────────────── */
.rrc-cookie-features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}
.rrc-cookie-feature-card {
	background: #FFFFFF;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.02);
	border: 1px solid #EDF2F7;
	transition: all 0.3s ease;
}
.rrc-cookie-feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.card-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}
.card-icon.secure { background: #FFF5F5; color: #E31C25; }
.card-icon.preference { background: #FFF9E6; color: #D69E2E; }
.card-icon.analytic { background: #EBF8FF; color: #3182CE; }
.card-icon.marketing { background: #F0FDF4; color: #38A169; }

.rrc-cookie-feature-card h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1A202C;
	margin: 0 0 10px 0;
}
.rrc-cookie-feature-card p {
	font-size: 14px;
	line-height: 1.5;
	color: #718096;
	margin: 0;
}

/* ── Main Two-Column Layout ───────────────────────────── */
.rrc-cookie-main-row {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
	margin-bottom: 40px;
	align-items: start;
}
.rrc-cookie-info-column {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* Section Cards */
.rrc-cookie-section-card {
	background: #FFFFFF;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.02);
	border: 1px solid #EDF2F7;
}
.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #E31C25;
	margin-bottom: 20px;
}
.section-title h4 {
	font-size: 20px;
	font-weight: 700;
	color: #1A202C;
	margin: 0;
}
.rrc-cookie-section-card p {
	font-size: 15px;
	line-height: 1.6;
	color: #4A5568;
	margin: 0 0 15px 0;
}
.rrc-cookie-section-card p:last-child {
	margin-bottom: 0;
}

/* Table Design */
.rrc-cookie-table-wrapper {
	overflow-x: auto;
	margin: 20px 0;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
}
.rrc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 14px;
}
.rrc-cookie-table th {
	background: #F7FAFC;
	padding: 14px 18px;
	font-weight: 600;
	color: #4A5568;
	border-bottom: 1px solid #E2E8F0;
}
.rrc-cookie-table td {
	padding: 14px 18px;
	border-bottom: 1px solid #E2E8F0;
	color: #4A5568;
}
.rrc-cookie-table tr:last-child td {
	border-bottom: none;
}
.rrc-cookie-table tr:hover td {
	background: #FAFCFF;
}
.rrc-table-footnote {
	font-size: 13px;
	color: #718096 !important;
	margin-top: 10px;
}

/* ── Interactive Preference Panel (Right Sidebar) ────── */
.rrc-cookie-preferences-card {
	background: #FFFFFF;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.04);
	border: 1px solid #E2E8F0;
	position: sticky;
	top: 100px;
}
.rrc-cookie-preferences-card h4 {
	font-size: 22px;
	font-weight: 700;
	color: #1A202C;
	margin: 0 0 10px 0;
}
.rrc-cookie-preferences-card p {
	font-size: 14px;
	line-height: 1.5;
	color: #718096;
	margin: 0 0 25px 0;
}

/* Preference Items */
.rrc-preference-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid #EDF2F7;
}
.rrc-preference-item:last-of-type {
	border-bottom: none;
}
.rrc-preference-info {
	flex: 1;
	padding-right: 15px;
}
.rrc-preference-title {
	font-size: 15px;
	font-weight: 600;
	color: #1A202C;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}
.rrc-preference-title svg {
	color: #A0AEC0;
}
.rrc-preference-desc {
	font-size: 12px;
	color: #718096;
	line-height: 1.4;
}

/* Switcher / Toggle Switch */
.rrc-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}
.rrc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.rrc-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #CBD5E0;
	transition: .3s;
}
.rrc-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
}
input:checked + .rrc-slider {
	background-color: #E31C25;
}
input:disabled + .rrc-slider {
	background-color: #E2E8F0;
	cursor: not-allowed;
}
input:checked + .rrc-slider:before {
	transform: translateX(20px);
}
.rrc-slider.round {
	border-radius: 24px;
}
.rrc-slider.round:before {
	border-radius: 50%;
}

/* Actions in Panel */
.rrc-preferences-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 25px;
}
.rrc-preferences-actions button {
	width: 100%;
	border-radius: 30px;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s ease;
}
.rrc-btn-save-pref {
	background: #E31C25;
	color: #FFFFFF;
	border: none;
	box-shadow: 0 4px 12px rgba(227, 28, 37, 0.2);
}
.rrc-btn-save-pref:hover {
	background: #C4121A;
}
.rrc-btn-accept-all {
	background: #FFFFFF;
	color: #E31C25;
	border: 2px solid #E31C25;
}
.rrc-btn-accept-all:hover {
	background: rgba(227, 28, 37, 0.04);
}
.rrc-btn-reject-all {
	background: #FFFFFF;
	color: #718096;
	border: 2px solid #E2E8F0;
}
.rrc-btn-reject-all:hover {
	background: #F7FAFC;
	color: #4A5568;
}

/* ── Footer Contact Card ──────────────────────────────── */
.rrc-cookie-footer-help {
	margin-top: 40px;
}
.rrc-cookie-help-card {
	background: #FFFFFF;
	border-radius: 20px;
	padding: 35px;
	box-shadow: 0 4px 25px rgba(0,0,0,0.02);
	border: 1px solid #EDF2F7;
}
.help-header {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	border-bottom: 1px solid #EDF2F7;
	padding-bottom: 25px;
	margin-bottom: 25px;
}
.help-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #FFF5F5;
	color: #E31C25;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.help-title-block h4 {
	font-size: 22px;
	font-weight: 700;
	color: #1A202C;
	margin: 0 0 6px 0;
}
.help-title-block p {
	font-size: 15px;
	color: #718096;
	margin: 0;
}
.help-contacts {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}
.contact-item {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
}
.contact-item svg {
	color: #E31C25;
	flex-shrink: 0;
}
.contact-item div {
	display: flex;
	flex-direction: column;
}
.contact-item span {
	font-size: 12px;
	color: #A0AEC0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.contact-item strong {
	font-size: 16px;
	color: #2D3748;
}

/* ── Pop-Up Cookie Consent Banner (Global Footer) ─────── */
.rrc-cookie-banner {
	position: fixed;
	bottom: 24px;
	left: 24px;
	right: 24px;
	background: #FFFFFF;
	border-radius: 20px;
	box-shadow: 0 15px 50px rgba(0,0,0,0.12);
	border: 1px solid #E2E8F0;
	z-index: 999999;
	padding: 30px;
	animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
	from { transform: translateY(120%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.rrc-cookie-banner-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.rrc-cookie-banner-text h5 {
	font-size: 18px;
	font-weight: 700;
	color: #1A202C;
	margin: 0 0 8px 0;
}
.rrc-cookie-banner-text p {
	font-size: 14px;
	line-height: 1.5;
	color: #4A5568;
	margin: 0;
}
.rrc-cookie-banner-actions {
	display: flex;
	gap: 15px;
}
.rrc-cookie-btn {
	border: none;
	border-radius: 30px;
	padding: 12px 26px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}
.rrc-cookie-btn.accept {
	background: #E31C25;
	color: #FFFFFF;
	box-shadow: 0 4px 12px rgba(227, 28, 37, 0.2);
}
.rrc-cookie-btn.accept:hover {
	background: #C4121A;
}
.rrc-cookie-btn.reject {
	background: #FFFFFF;
	color: #E31C25;
	border: 2px solid #E31C25;
}
.rrc-cookie-btn.reject:hover {
	background: rgba(227, 28, 37, 0.04);
}
.rrc-cookie-btn.settings {
	background: #F7FAFC;
	color: #4A5568;
	border: 1px solid #E2E8F0;
}
.rrc-cookie-btn.settings:hover {
	background: #EDF2F7;
}
.rrc-cookie-banner-links {
	display: flex;
	gap: 20px;
}
.rrc-cookie-banner-links a {
	font-size: 13px;
	color: #718096;
	text-decoration: none;
	font-weight: 500;
}
.rrc-cookie-banner-links a:hover {
	color: #E31C25;
}

/* ── Responsive Styling (Media Queries) ───────────────── */
@media (max-width: 1024px) {
	.rrc-cookie-features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.rrc-cookie-main-row {
		grid-template-columns: 1fr;
	}
	.rrc-cookie-preferences-card {
		position: static;
		margin-top: 20px;
	}
	.help-contacts {
		flex-direction: column;
		gap: 15px;
	}
}

@media (max-width: 768px) {
	.rrc-cookie-hero {
		flex-direction: column-reverse;
		padding: 30px;
		text-align: center;
	}
	.rrc-cookie-hero-actions {
		justify-content: center;
		flex-direction: column;
		width: 100%;
	}
	.rrc-cookie-hero-actions button,
	.rrc-cookie-hero-actions a {
		width: 100%;
		justify-content: center;
	}
	.rrc-cookie-banner-actions {
		flex-direction: column;
	}
	.rrc-cookie-btn {
		width: 100%;
	}
}
