.teta-cookie[hidden],
.teta-cookie-settings[hidden] {
    display: none !important;
}

.teta-cookie {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 999999;
    font-family: inherit;
}

.teta-cookie__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    background: #fff;
    color: #1f2937;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

.teta-cookie__content { min-width: 0; }
.teta-cookie__title { margin: 0 0 5px; font-size: 16px; line-height: 1.35; font-weight: 700; }
.teta-cookie__text { font-size: 14px; line-height: 1.5; }
.teta-cookie__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.teta-cookie__actions { display: flex; flex: 0 0 auto; gap: 10px; }

.teta-cookie__button,
.teta-cookie-settings-inline {
    appearance: none;
    border: 0;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.teta-cookie__button {
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.teta-cookie__button--primary { background: #1f2937; color: #fff; }
.teta-cookie__button--secondary { background: #eef0f2; color: #1f2937; }
.teta-cookie__button:hover { opacity: .9; }

.teta-cookie__button:focus-visible,
#teta-cookie-settings.teta-cookie-settings:focus-visible,
.teta-cookie-settings-inline:focus-visible {
    outline: 3px solid currentColor !important;
    outline-offset: 3px !important;
}

/*
 * Селектор с ID + !important намеренно изолирует служебную кнопку
 * от глобальных button-стилей Elementor/темы.
 */
#teta-cookie-settings.teta-cookie-settings {
    all: unset !important;
    box-sizing: border-box !important;
    position: fixed !important;
    right: auto !important;
    bottom: 14px !important;
    left: 14px !important;
    top: auto !important;
    z-index: 999998 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    border-radius: 7px !important;
    background: rgba(18,55,76,.94) !important;
    color: #fff !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.18) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#teta-cookie-settings.teta-cookie-settings:hover {
    background: rgba(12,43,61,.98) !important;
}

.teta-cookie-settings-inline {
    padding: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 760px) {
    .teta-cookie {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .teta-cookie__inner {
        display: block;
        padding: 16px;
    }

    .teta-cookie__actions {
        margin-top: 14px;
        width: 100%;
        flex-direction: column;
    }

    .teta-cookie__button { width: 100%; }

    #teta-cookie-settings.teta-cookie-settings {
        right: auto !important;
        bottom: 10px !important;
        left: 10px !important;
        padding: 7px 9px !important;
        font-size: 11px !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .teta-cookie__inner { animation: tetaCookieIn .18s ease-out; }
    @keyframes tetaCookieIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
