.cmp-cookie-settings-trigger {
    position: fixed;
    left: calc(20px + env(safe-area-inset-left, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 980;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #1f2937;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.cmp-cookie-settings-trigger:hover {
    transform: translateY(-1px);
    background: #111827;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.cmp-cookie-settings-trigger:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.cmp-cookie-settings-trigger-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.cmp-cookie-settings-icon {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d6a86a;
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.08),
        inset 3px 3px 0 rgba(255, 255, 255, 0.18);
}

.cmp-cookie-settings-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #1f2937;
    border-radius: 50%;
    box-shadow:
        -4px 3px 0 -1px #1f2937,
        -1px 7px 0 -2px #1f2937;
}

.cmp-cookie-settings-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #5b3a29;
    box-shadow:
        8px 2px 0 #5b3a29,
        5px 10px 0 #5b3a29,
        13px 8px 0 #5b3a29,
        2px 14px 0 #5b3a29;
}

.cmp-youtube-demo {
    margin-top: 32px;
}

.cmp-youtube-demo iframe,
.cmp-youtube-placeholder {
    width: 100%;
    max-width: 100%;
    min-height: 315px;
    border: 0;
    border-radius: 18px;
}

.cmp-youtube-placeholder {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    background-color: #1d1f24;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 18px 50px rgba(26, 21, 14, 0.16);
    cursor: pointer;
    text-align: left;
}

.cmp-youtube-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 38%),
        linear-gradient(180deg, rgba(14, 16, 21, 0.08), rgba(14, 16, 21, 0.78));
}

.cmp-youtube-placeholder-content {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.cmp-youtube-placeholder-copy {
    display: grid;
    gap: 8px;
    max-width: 420px;
    color: #fff9f2;
}

.cmp-youtube-placeholder-copy strong {
    font-size: 1.2rem;
    line-height: 1.2;
}

.cmp-youtube-placeholder-copy span {
    font-size: 0.95rem;
    line-height: 1.45;
}

.cmp-youtube-placeholder-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff9f2;
    color: #1d1f24;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Keep the theme's floating video slot when an iframe becomes a button.
   Override copied width/height attributes, which otherwise become inline px sizes. */
.carouse-information__inner > .carouse-information__video[data-cmp-youtube-token] {
    position: absolute;
    inset: -4rem 0 auto auto;
    width: calc(50% - 4rem - 1px) !important;
    height: 18rem !important;
    min-height: 0;
    max-width: none;
    flex: none;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    aspect-ratio: 16 / 9;
    box-shadow: 0 6px 32px rgba(75, 75, 73, 0.3);
}

@media (max-width: 700px) {
    .cmp-cookie-settings-trigger {
        left: calc(16px + env(safe-area-inset-left, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 58px;
        height: 58px;
    }

    .cmp-youtube-placeholder-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cmp-youtube-placeholder-button {
        width: 100%;
    }
}

/* Art Medic theme. Repeated .klaro raises specificity above Klaros injected CSS. */
.klaro.klaro {
    --font-family: 'Roboto', Arial, sans-serif;
    --title-font-family: 'Roboto', Arial, sans-serif;
    --font-size: 16px;
    --border-radius: 0;
    --dark1: #fff;
    --dark2: #e6dfd1;
    --light1: #4b4b49;
    --light2: #767676;
    --green1: #d1b77b;
    --green2: #d1b77b;
    --blue1: #d1b77b;
    --button-text-color: #fff;
    --notice-left: 32px;
    --notice-right: 32px;
    --notice-bottom: 32px;
    --notice-max-width: none;
    color: #4b4b49;
    line-height: 1.8;
}

.klaro.klaro .cookie-notice:not(.cookie-modal-notice) {
    box-sizing: border-box;
    left: 32px;
    right: 32px;
    bottom: 32px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.08);
}

.klaro.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
}

.klaro.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: left;
}

.klaro.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-ok {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.klaro.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: auto;
    margin: 0;
}

.klaro.klaro .cookie-notice .cm-btn.cm-btn,
.klaro.klaro .cookie-modal .cm-btn.cm-btn {
    box-sizing: border-box;
    min-height: 57px;
    margin: 0;
    padding: 20px 29px;
    border: 1px solid transparent;
    border-radius: 0;
    background: #d1b77b;
    color: #fff;
    font: 500 16px / 1 'Roboto', Arial, sans-serif;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.klaro.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-buttons button.cm-btn.cm-btn {
    width: auto;
    margin: 0;
}

.klaro.klaro .cookie-notice .cm-btn.cm-btn:hover,
.klaro.klaro .cookie-modal .cm-btn.cm-btn:hover {
    background: #b89b5e;
}

.klaro.klaro .cookie-notice a,
.klaro.klaro .cookie-modal a {
    color: #927235;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Klaro's preferences action stays a text link, even if rendered as a button. */
.klaro.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-learn-more {
    display: inline;
    flex-grow: 0;
    min-width: 0;
    min-height: 0;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #927235;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
    cursor: pointer;
}

.klaro.klaro .cookie-notice .cn-learn-more:hover,
.klaro.klaro .cookie-notice a:hover,
.klaro.klaro .cookie-modal a:hover {
    color: #6f5527;
}

.klaro.klaro a:focus-visible,
.klaro.klaro button:focus-visible {
    outline: 2px solid #927235;
    outline-offset: 4px;
}

.klaro.klaro .cookie-modal .cm-modal.cm-klaro {
    border-radius: 0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16);
}

.klaro.klaro .cookie-modal .cm-modal .cm-header,
.klaro.klaro .cookie-modal .cm-modal .cm-body,
.klaro.klaro .cookie-modal .cm-modal .cm-footer {
    padding: 24px;
}

.klaro.klaro .cookie-modal .cm-modal .cm-header {
    padding-right: 56px;
}

.klaro.klaro .cookie-modal .cm-modal .cm-header h1 {
    font-size: 24px;
    line-height: 1.3;
}

.klaro.klaro .cookie-modal .cm-modal .cm-footer-buttons {
    flex-wrap: wrap;
    gap: 12px;
}

.klaro.klaro .cookie-modal .cm-modal .cm-footer-buttons > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.klaro.klaro .cookie-modal .slider {
    box-shadow: none;
}

@media (max-width: 659px) {
    .klaro.klaro .cookie-notice:not(.cookie-modal-notice) {
        left: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 32px - env(safe-area-inset-bottom, 0px));
    }

    .klaro.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
        gap: 16px;
        padding: 20px 16px;
    }

    .klaro.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-ok {
        flex-direction: column;
    }

    .klaro.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .klaro.klaro .cookie-notice .cm-btn.cm-btn,
    .klaro.klaro .cookie-modal .cm-btn.cm-btn {
        padding: 16px 20px;
        min-height: 48px;
    }
}
