.barami-cc,
.barami-cc-modal {
	font-family: AlmoniDLAAA, Almoni, Arial, sans-serif;
	box-sizing: border-box;
}

.barami-cc *,
.barami-cc-modal * {
	box-sizing: border-box;
}

.barami-cc {
	position: fixed;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 100000;
	padding: 16px;
}

.barami-cc-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 22px 28px;
	background: #2f313e;
	color: #fefefe;
	border: 1px solid rgba(235, 186, 101, 0.45);
}

.barami-cc-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.barami-cc-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #ebba65;
}

.barami-cc-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: rgba(254, 254, 254, 0.86);
}

.barami-cc-policy {
	margin: 10px 0 0;
	font-size: 13px;
}

.barami-cc-policy a,
.barami-cc a {
	color: #ebba65;
	text-decoration: underline;
}

.barami-cc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex: 0 0 auto;
}

.barami-cc-btn {
	appearance: none;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	padding: 12px 18px;
	min-width: 118px;
	background: transparent;
	color: #fefefe;
}

.barami-cc-btn:focus {
	outline: 2px solid #ebba65;
	outline-offset: 3px;
}

.barami-cc-btn-gold {
	background: #ebba65;
	color: #2f313e;
	border-color: #ebba65;
}

.barami-cc-btn-gold:hover {
	background: #f0c97a;
}

.barami-cc-btn-ghost {
	border-color: #fefefe;
	color: #fefefe;
	background: transparent;
}

.barami-cc-btn-ghost:hover {
	background: rgba(254, 254, 254, 0.08);
}

.barami-cc-btn-text {
	min-width: 0;
	padding-right: 8px;
	padding-left: 8px;
	border: 0;
	text-decoration: underline;
	color: #ebba65;
	font-weight: 400;
}

.barami-cc-modal[hidden],
.barami-cc[hidden] {
	display: none !important;
}

.barami-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
}

.barami-cc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(34, 36, 49, 0.72);
}

.barami-cc-modal-panel {
	position: relative;
	z-index: 1;
	width: min(560px, calc(100% - 32px));
	margin: 8vh auto 0;
	padding: 32px 28px 24px;
	background: #2f313e;
	color: #fefefe;
	border: 1px solid rgba(235, 186, 101, 0.45);
}

.barami-cc-modal-panel h2 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	color: #ebba65;
}

.barami-cc-modal-lead {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.65;
	color: rgba(254, 254, 254, 0.8);
}

.barami-cc-modal-close {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.barami-cc-modal-close::before,
.barami-cc-modal-close::after {
	content: "";
	position: absolute;
	top: 15px;
	left: 8px;
	width: 16px;
	height: 2px;
	background: #ebba65;
}

.barami-cc-modal-close::before {
	transform: rotate(45deg);
}

.barami-cc-modal-close::after {
	transform: rotate(-45deg);
}

.barami-cc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid rgba(254, 254, 254, 0.12);
	cursor: pointer;
}

.barami-cc-row strong {
	display: block;
	font-size: 15px;
	margin-bottom: 4px;
}

.barami-cc-row span span {
	display: block;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(254, 254, 254, 0.7);
}

.barami-cc-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #ebba65;
	flex: 0 0 auto;
}

.barami-cc-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.site-footer .barami-cc-footer-link {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.site-footer .barami-cc-footer-link:hover,
.site-footer .barami-cc-footer-link:focus {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.barami-cc {
		padding: 10px;
	}

	.barami-cc-banner {
		flex-direction: column;
		align-items: stretch;
		padding: 18px 16px;
		gap: 16px;
	}

	.barami-cc-actions {
		justify-content: stretch;
	}

	.barami-cc-btn {
		flex: 1 1 calc(50% - 10px);
		min-width: 0;
	}

	.barami-cc-btn-text {
		flex: 1 1 100%;
		text-align: center;
	}
}
