:root {
	--cookie-read-button-border-color: #dcdcdc;
	--cookie-button-bg-color: transparent;
	--cookie-separator-color: #eeeeee;
}

.cookies-container {
	position: fixed;
	bottom: 2rem;
	left: 2rem;
	right: 2rem;
	max-width: 425px;
	min-width: 200px;
	width: auto;
	background-color: var(--bck-main-color-no-inv);
	border: 1px solid #cccccc;
	border-radius: 8px;
	padding: 1rem;
	z-index: 200;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	box-shadow:
		0 0 0 0.75rem rgba(0, 0, 0, 0.1),
		0 0 0 1rem rgba(0, 0, 0, 0.04),
		0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-title {
	color: var(--text-primary-color);
	font-weight: 600;
	font-size: 1rem;
	margin: 0;
}

.cookie-content {
	color: var(--text-primary-color);
	font-size: 0.875rem;
	line-height: 1.4;
	margin: 0;
}

.cookie-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--cookie-separator-color);
}
.cookie-buttons-row {
	display: flex;
	flex-direction: row;
	/* justify-content: flex-end; */
	gap: 0.75rem;
}

.cookie-button {
	flex: 1;
	min-width: 0;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: 0.875rem;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color 0.2s;
}

.accept-button {
	background-color: var(--cookie-button-bg-color);
	color: var(--cookie-accept-button-color);
	border: 1px solid var(--cookie-accept-button-color);
}
.accept-button:hover {
  	background-color: #4dc01f1a;
}

.read-button {
	background-color: var(--bck-surface-color);
	color: var(--text-primary-color);
	border: 1px solid var(--cookie-read-button-border-color);
}
.read-button:hover {
  	background-color: var(--bck-surface-color2);
}

@media (max-width: 400px) {
	.cookies-container {
		gap: 0.2rem;
		padding: 0.6rem;
		position: fixed;
		left: 1rem;
		right: 1rem;
		bottom: 0.3rem;
	}
	.cookie-buttons {
		padding-top: 0.25rem;
	}
  	.cookie-title {
    	display: none;
  	}
}

@media (max-height: 400px) {
	.cookie-button {
		padding: 0.25rem 0.5rem;
		border-radius: 1px;
	}
}

@media (max-width: 300px) {
	.cookies-container {
		min-width: 0;
		left: 0.25rem;
		right: 0.25rem;
		bottom: 1rem;
	}
	.cookie-button {
		white-space: normal;
		word-break: break-word;
		text-align: center;
		padding: 0.3rem 0.7rem;
	}
}

.cookie-banner {
    position: fixed;
    left: 50%;
    top: calc(10rem + 1rem);
    transform: translate(-50%);
    z-index: 400;
    width: 70%;
    max-width: 1000px;
    min-height: 300px;
    max-height: calc(90vh - 10rem - 2rem);
    background-color: var(--bck-main-color-no-inv);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 0 0 1rem rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cookie-banner-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem 0.5rem;
	flex-shrink: 0;
}

.cookie-banner-middle {
	flex: 1;
	overflow-y: auto;
	padding: 0 2rem;
	min-height: 10px;
}

.cookie-banner-bottom {
	flex-shrink: 0;
	padding: 1rem 2rem;
}


.cookie-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
	border: none;
    border-radius: 20%;
	background: none;
    background-color: var(--text-secondary-color);
	font-size: 1.2rem;
	cursor: pointer;
}

.cookie-close-wrapper {
  	padding: 0rem 1rem;
}
.close-icon {
	width: 24px;
	height: 24px;
}

.optional-cookie-head {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding-right: 5rem;
}

.toggle-switch {
	cursor: pointer;
	transition: fill 0.3s;
}
.toggle-switch circle {
  	transition: cx 0.3s;
}

.optional-cookies-foot {
	display: flex;
	justify-content: end;
	margin: 1rem;
	margin-bottom: 2rem;
}

.accept-custom-button {
	min-height: 50px;
	min-width: 260px;
	background-color: var(--cookie-accept-button-color);
	border-color: 4px green;
}
.accept-custom-button:hover {
  	background-color: rgb(9, 171, 9);
}

.cookie-preferences {
	line-height: 1.6;
	color: #333;
	max-width: 600px;
	margin: 0 auto;
	padding: 1rem;
}

.cookie-preferences__description {
	margin-bottom: 0.75rem;
	font-size: 1rem;
}

.cookie-preferences__list {
	margin: 0;
	padding-left: 1.25rem;
	list-style-type: none;
}

.cookie-preferences__item {
	margin-bottom: 0.5rem;
	padding-left: 1rem;
	position: relative;
	font-size: 0.95rem;
}

.cookie-preferences__item::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #666;
}

.ask-cookies-container {
	position: fixed;
	display: flex;
	flex-direction: column;
	top: 40%;
	right: 30%;
	transform: translate(80%, -80%);
	max-width: 20rem;
	max-height: 20rem;
	width: auto;
	background-color: var(--bck-main-color-no-inv);
	border: 1px solid #ccc;
	border-radius: 0.5rem;
	z-index: 1100;
	padding: 1rem;
	gap: 0.75rem;
}
@media (max-width: 1000px) {
	.ask-cookies-container {
		top: 50%;
		right: 50%;
		transform: translate(50%, -50%);
		max-width: 90%;
		max-height: 90%;
		overflow-y: auto;
	}
}

.top-row {
	display: flex;
	flex-direction: row;
}

.timer-dialog {
	border-radius: 50%;
	border: 1px solid #ccc;
	padding: 0.5rem;
	display: inline-block;
	margin-right: 1rem;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 550px) {
    .cookie-banner {
        top: calc(4rem + 1rem);
        max-height: calc(80vh - 4rem - 0.5rem);
        margin-top: 4rem;
        width: 85%;
        padding-left: 0.2rem;
        padding-top: 0.4rem;
        box-shadow:
            0 0 0 0.5rem rgba(0, 0, 0, 0.15);
    }
    strong {
        font-size: 0.9rem;
        font-weight: 300;
    }
    strong.plain-text {
        text-decoration: underline;
    }
    p.plain-text {
        font-size: 0.9rem;
        font-weight: 200;
    }
}

@media (max-width: 768px) {
	.cookie-banner {
		width: 85%;
		margin: 0.25rem;
	}
}

@media (max-height: 370px) {
	.cookie-banner {
		position: absolute;
	}
    .cookie-button {
        padding: 0.1rem 1rem;
    }
    .cookie-buttons {
        gap: 0.1rem;
        padding: 0.18rem;
    }
}

@media (max-height: 550px) {
    .cookie-banner {
        margin: 0;
        padding: 0;
        border-radius: 10px;
        top: max(95px, calc(4rem + 1.7rem));
        max-height: calc(80vh - 4rem - 0.5rem);
        box-shadow:
            0 0 0 0.2rem rgba(0, 0, 0, 0.15);
    }
    .title-text {
        font-size: 1.2rem;
        font-weight: 800;

    }
    strong {
        font-size: 0.9rem;
        font-weight: 300;
    }
    strong.plain-text {
        text-decoration: underline;
    }
    p.plain-text {
        font-size: 0.9rem;
        font-weight: 200;
    }
    .close-icon {
        width: 16px;
        height: 16px;
    }
    .cookie-banner-bottom {
        padding: 0.2rem 2rem;
    }
    .cookie-banner-top {
        padding: 0 2rem 0;
    }
}
