.cookie-consent-panel {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1400;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background:
        radial-gradient(circle at top right, rgba(45, 135, 101, 0.2), transparent 42%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 241, 229, 0.95) 100%);
    box-shadow:
        0 24px 56px rgba(22, 34, 28, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    color: #18231f;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.cookie-consent-panel.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cookie-consent-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, #1f6a4f 0%, #2d8765 55%, #bf7b36 100%);
    opacity: 0.9;
}

.cookie-consent-title {
    margin: 0;
    padding-top: 4px;
    font-family: "Fraunces", serif;
    font-size: clamp(1.06rem, 2vw, 1.28rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.cookie-consent-text {
    margin: 10px 0 0;
    max-width: 66ch;
    line-height: 1.6;
    color: #3f4f47;
    font-size: 0.95rem;
}

.cookie-consent-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-consent-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    min-height: 44px;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cookie-consent-btn:hover,
.cookie-consent-btn:focus-visible {
    transform: translateY(-1px);
}

.cookie-consent-btn-primary {
    background: linear-gradient(135deg, #1f6a4f 0%, #2d8765 100%);
    color: #f9f6ef;
    box-shadow: 0 8px 18px rgba(31, 106, 79, 0.28);
}

.cookie-consent-btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(31, 106, 79, 0.24);
    color: #1f6a4f;
}

.cookie-consent-manage {
    position: fixed;
    z-index: 1390;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
    appearance: none;
    border: 1px solid rgba(24, 35, 31, 0.16);
    background: rgba(255, 255, 255, 0.94);
    color: #1f6a4f;
    border-radius: 999px;
    min-height: 42px;
    padding: 0 15px;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        0 14px 32px rgba(22, 34, 28, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.cookie-consent-manage:hover,
.cookie-consent-manage:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(31, 106, 79, 0.25);
}

.embed-consent-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    display: grid;
    place-content: center;
    gap: 10px;
    text-align: center;
    padding: 18px;
    background: linear-gradient(145deg, rgba(241, 236, 223, 0.95) 0%, rgba(233, 225, 206, 0.98) 100%);
    border-bottom: 1px solid rgba(24, 35, 31, 0.08);
}

.embed-consent-placeholder p {
    margin: 0;
    color: #56635b;
    line-height: 1.65;
    max-width: 50ch;
}

.embed-consent-placeholder .cookie-consent-btn {
    justify-self: center;
}

@media (max-width: 760px) {
    .cookie-consent-panel {
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        bottom: calc(10px + env(safe-area-inset-bottom));
        padding: 14px 14px 12px;
        border-radius: 16px;
    }

    .cookie-consent-manage {
        right: max(10px, env(safe-area-inset-right));
        bottom: calc(10px + env(safe-area-inset-bottom));
        min-height: 40px;
        font-size: 0.9rem;
    }

    .cookie-consent-title {
        font-size: 1.08rem;
    }

    .cookie-consent-text {
        font-size: 0.92rem;
    }

    .cookie-consent-actions .cookie-consent-btn {
        flex: 1 1 100%;
    }

    .embed-consent-placeholder {
        min-height: 170px;
        padding: 14px;
    }
}
