:root {
	--sinch-cc-banner-bg: #eef4fb;
	--sinch-cc-banner-text: #333333;
	--sinch-cc-link: #2271b1;
	--sinch-cc-btn-primary-bg: #2271b1;
	--sinch-cc-btn-primary-text: #ffffff;
	--sinch-cc-btn-secondary-bg: #2271b1;
	--sinch-cc-btn-secondary-text: #ffffff;
	--sinch-cc-overlay: rgba(0, 0, 0, 0.45);
	--sinch-cc-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	--sinch-cc-radius: 8px;
	--sinch-cc-z: 999999;
}

.sinch-cc {
	position: fixed;
	inset: 0;
	z-index: var(--sinch-cc-z);
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.sinch-cc:not([hidden]) {
	pointer-events: auto;
}

.sinch-cc-overlay {
	position: absolute;
	inset: 0;
	background: var(--sinch-cc-overlay);
}

.sinch-cc-banner {
	position: absolute;
	background: var(--sinch-cc-banner-bg);
	color: var(--sinch-cc-banner-text);
	box-shadow: var(--sinch-cc-shadow);
	max-width: 100%;
}

.sinch-cc--bottom-bar .sinch-cc-banner {
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: var(--sinch-cc-radius) var(--sinch-cc-radius) 0 0;
}

.sinch-cc--top-bar .sinch-cc-banner {
	left: 0;
	right: 0;
	top: 0;
	border-radius: 0 0 var(--sinch-cc-radius) var(--sinch-cc-radius);
}

.sinch-cc--bottom-left .sinch-cc-banner,
.sinch-cc--bottom-right .sinch-cc-banner {
	bottom: 24px;
	width: min(420px, calc(100% - 32px));
	border-radius: var(--sinch-cc-radius);
}

.sinch-cc--bottom-left .sinch-cc-banner {
	left: 16px;
}

.sinch-cc--bottom-right .sinch-cc-banner {
	right: 16px;
}

.sinch-cc--center-modal .sinch-cc-banner {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(560px, calc(100% - 32px));
	border-radius: var(--sinch-cc-radius);
}

.sinch-cc-banner__inner {
	padding: 10px 20px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sinch-cc-banner__left {
	flex: 1;
	padding-right: 10vw;
}

.sinch-cc-banner__right {

}

.sinch-cc-banner__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700 !important;
	color: var(--sinch-cc-banner-text);
}

.sinch-cc-banner__text {
	margin: 0;
}

.sinch-cc-banner__policy {
	color: var(--sinch-cc-link);
	text-decoration: underline;
	margin-left: 4px;
}

.sinch-cc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sinch-cc-banner__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sinch-cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.sinch-cc-btn:hover,
.sinch-cc-btn:focus {
	opacity: 0.9;
}

.sinch-cc-btn--primary {
	background: var(--sinch-cc-btn-primary-bg);
	color: var(--sinch-cc-btn-primary-text);
}

.sinch-cc-btn--secondary {
	background: var(--sinch-cc-btn-secondary-bg);
	color: var(--sinch-cc-btn-secondary-text);
}

.sinch-cc-link {
	background: none;
	border: none;
	padding: 0;
	color: var(--sinch-cc-link);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

.sinch-cc-modal {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.sinch-cc-modal[hidden] {
	display: none;
}

.sinch-cc-modal__dialog {
	position: relative;
	background: #fff;
	color: #333;
	border-radius: var(--sinch-cc-radius);
	box-shadow: var(--sinch-cc-shadow);
	width: min(520px, 100%);
	max-height: 80vh;
	overflow: auto;
	padding: 24px;
}

.sinch-cc-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.sinch-cc-modal__title {
	margin: 0 0 8px;
	font-size: 20px;
}

.sinch-cc-modal__desc {
	margin: 0 0 16px;
	color: #555;
}

.sinch-cc-category {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #e5e5e5;
}

.sinch-cc-category:last-child {
	border-bottom: none;
}

.sinch-cc-category__label {
	font-weight: 600;
	margin: 0 0 4px;
}

.sinch-cc-category__desc {
	margin: 0;
	font-size: 13px;
	color: #666;
}

.sinch-cc-toggle {
	position: relative;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

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

.sinch-cc-toggle__slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #ccc;
	border-radius: 24px;
	transition: 0.2s;
}

.sinch-cc-toggle__slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.2s;
}

.sinch-cc-toggle input:checked + .sinch-cc-toggle__slider {
	background: var(--sinch-cc-btn-primary-bg);
}

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

.sinch-cc-toggle input:disabled + .sinch-cc-toggle__slider {
	opacity: 0.6;
	cursor: not-allowed;
}

.sinch-cc-modal__actions {
	margin-top: 20px;
	text-align: right;
}

.sinch-cc-reopen {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: var(--sinch-cc-z);
	display: inline-flex;
	align-items: center;
	background: var(--sinch-cc-btn-primary-bg);
	color: var(--sinch-cc-btn-primary-text);
	border: none;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	opacity: 0.5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-shadow: var(--sinch-cc-shadow);
}
.sinch-cc-reopen:hover,
.sinch-cc-reopen:focus {
	opacity: 0.9;
}

.sinch-cc-reopen--hidden {
	display: none !important;
}

.sinch-cc-reopen--visible {
	display: inline-flex !important;
}

.sinch-cc-reopen-trigger {
	background: none;
	border: none;
	padding: 0;
	color: var(--sinch-cc-link, #2271b1);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.sinch-cc.sinch-cc--show-banner .sinch-cc-banner,
.sinch-cc.sinch-cc--show-modal .sinch-cc-modal {
	display: block;
}

.sinch-cc.sinch-cc--show-modal .sinch-cc-banner {
	display: none;
}

@media (max-width: 600px) {
	.sinch-cc-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.sinch-cc-banner__buttons {
		flex-direction: column;
	}

	.sinch-cc-btn {
		width: 100%;
	}
}
