.cookie-notice,
.cookie-notice * {
    box-sizing: border-box;
}

.cookie-notice {
    position: fixed;
    z-index: 10000;
    left: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 24px;
    width: 560px;
    max-width: calc(100% - 48px);
    max-height: calc(100dvh - 48px - env(safe-area-inset-bottom, 0px));
    overflow: auto;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #343a43;
    box-shadow: 0 8px 40px rgb(20 30 45 / 16%);
    font: 14px/1.6 Arial, sans-serif;
    text-align: left;
}

.cookie-notice__content {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cookie-notice .cookie-notice__text {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
}

.cookie-notice .cookie-notice__link {
    display: inline-block;
    margin-top: 6px;
    color: #343a43;
    text-decoration: underline;
    text-underline-offset: 3px;
    font: inherit;
}

.cookie-notice .cookie-notice__button {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--cookie-notice-button, #e8a238);
    color: var(--cookie-notice-button-text, #1d2530);
    box-shadow: none;
    font: 600 14px/1.4 Arial, sans-serif;
    text-align: center;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.cookie-notice .cookie-notice__button:hover {
    filter: brightness(0.95);
}

.cookie-notice__button:focus-visible,
.cookie-notice__link:focus-visible {
    outline: 2px solid #1d2530;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .cookie-notice {
        left: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        width: auto;
        max-width: none;
        right: 12px;
        padding: 20px;
    }
}

@media print {
    .cookie-notice { display: none; }
}
