.esun-cookie-consent {
    background: #fff;
    border: 1px solid rgba(20, 48, 40, 0.12);
    border-radius: 12px;
    bottom: 24px;
    box-shadow: 0 12px 40px rgba(15, 35, 29, 0.2);
    box-sizing: border-box;
    display: block;
    left: 24px;
    max-width: 560px;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    transform: translateY(16px);
    transition: opacity 180ms ease, transform 180ms ease;
    visibility: hidden;
    width: calc(100% - 40px);
    z-index: 10000;
}

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

.esun-cookie-consent *,
.esun-cookie-consent *::before,
.esun-cookie-consent *::after {
    box-sizing: border-box;
}

.esun-cookie-consent__content {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    padding-right: 24px;
}

.esun-cookie-consent__close {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #5e6d68;
    display: flex;
    font-size: 28px;
    font-weight: 400;
    float: none;
    height: 32px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: absolute !important;
    right: 12px !important;
    top: 12px !important;
    width: 32px;
    z-index: 1;
}

.esun-cookie-consent__close:hover,
.esun-cookie-consent__close:focus {
    background: transparent;
    border: 0;
    color: #16231f;
}

.esun-cookie-consent__message {
    color: #24332f;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
    text-align: left;
}

.esun-cookie-consent__privacy-link {
    color: #168b58;
    display: inline;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.esun-cookie-consent__privacy-link:hover,
.esun-cookie-consent__privacy-link:focus {
    color: #0d6b42;
}

.esun-cookie-consent .esun-cookie-consent__accept {
    align-self: flex-start;
    background: #159b64;
    border: 1px solid #159b64;
    border-radius: 999px;
    box-shadow: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
    padding: 10px 18px;
}

.esun-cookie-consent .esun-cookie-consent__accept:hover,
.esun-cookie-consent .esun-cookie-consent__accept:focus {
    background: #0d7f50;
    border-color: #0d7f50;
    color: #fff;
}

@media (max-width: 767px) {
    .esun-cookie-consent {
        bottom: 12px;
        left: 12px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        max-width: none;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 18px 16px 16px;
        right: auto;
        width: calc(100vw - 24px) !important;
    }

    .esun-cookie-consent__content {
        min-width: 0;
        padding-right: 24px;
        width: 100%;
    }

    .esun-cookie-consent__message,
    .esun-cookie-consent__message span,
    .esun-cookie-consent__privacy-link {
        max-width: 100%;
        white-space: normal !important;
        word-break: normal;
    }

    .esun-cookie-consent__message {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 14px;
        overflow-wrap: anywhere;
    }

    .esun-cookie-consent .esun-cookie-consent__accept {
        align-self: stretch;
        padding: 11px 18px;
        width: 100%;
    }

    .esun-cookie-consent .esun-cookie-consent__accept > span {
        color: #fff !important;
        display: inline !important;
        font-size: 14px;
        white-space: normal !important;
    }

    .esun-cookie-consent__close {
        right: 8px !important;
        top: 8px !important;
    }
}

@media (max-width: 767px) and (max-height: 480px) {
    .esun-cookie-consent {
        bottom: 8px;
        left: 8px;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding: 12px 42px 12px 14px;
        width: calc(100vw - 16px) !important;
    }

    .esun-cookie-consent__content {
        align-items: center;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding-right: 0;
    }

    .esun-cookie-consent__message {
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }

    .esun-cookie-consent .esun-cookie-consent__accept {
        align-self: center;
        padding: 9px 14px;
        white-space: nowrap;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .esun-cookie-consent {
        transition: none;
    }
}
