/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.cookie-banner {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	font-family: "Inter", Helvetica, Arial, sans-serif;
}

.cookie-banner.is-visible {
	display: flex;
}

.cookie-banner__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.cookie-banner__content {
	position: relative;
	max-width: 560px;
	width: 100%;
	padding: 24px;
	border-radius: 16px;
	background: rgba(41, 41, 41, 0.95);
	color: #fff;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-banner__text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.4;
}

.cookie-banner__privacy {
	color: #fff;
	text-decoration: underline;
	font-size: 0.95em;
}

.cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cookie-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	transition: background-color 0.2s ease;
}

.cookie-btn--primary {
	background-color: #ff7324;
	color: #fff;
}

.cookie-btn--primary:hover {
	background-color: #ff6915;
}

.cookie-btn--secondary {
	background-color: #fff;
	color: #000;
}

.cookie-btn--secondary:hover {
	background-color: #ededed;
}

.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	font-family: "Inter", Helvetica, Arial, sans-serif;
}

.cookie-modal.is-visible {
	display: flex;
}

.cookie-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.cookie-modal__content {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
	color: #292929;
}

.cookie-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.cookie-modal__title {
	margin: 0;
	font-size: 20px;
}

.cookie-modal__close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.cookie-modal__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.cookie-modal__option:last-child {
	border-bottom: none;
}

.cookie-modal__label {
	font-weight: 600;
}

.cookie-modal__footer {
	margin-top: 20px;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

.cookie-toggle {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
}

.cookie-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-toggle__slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.2s;
	border-radius: 999px;
}

.cookie-toggle__slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.2s;
	border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
	background-color: #ff7324;
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
	transform: translateX(20px);
}

@media (max-width: 640px) {
	.cookie-banner__content,
	.cookie-modal__content {
		padding: 18px;
	}

	.cookie-banner__actions {
		flex-direction: column;
	}
}
