#toneart-hyva-consent {
    --ta-consent-accent: #3bacdf;
    --ta-consent-accent-hover: #188fc4;
    --ta-consent-bg: #1f1f1f;
    --ta-consent-text: #b3b3b3;
    --ta-consent-strong: #fff;
    --ta-consent-muted: #b3b3b3;
    --ta-consent-border: #363636;
    color: var(--ta-consent-text);
    font-family: Toneart, Arial, sans-serif;
    position: relative;
    z-index: 100000000;
}

#toneart-hyva-consent [hidden] { display: none !important; }

#toneart-hyva-consent .ta-consent-bar {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    background: linear-gradient(45deg, #000, #000000c4) !important;
    border: 0;
    bottom: 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .35);
    color: var(--ta-consent-text);
    left: 0;
    padding: 70px 10px !important;
    position: fixed;
    right: 0;
    width: 100vw;
    z-index: 100000000;
}

@media (min-width: 768px) {
    #toneart-hyva-consent .ta-consent-bar {
        box-sizing: border-box;
        width: 100%;
        height: 308px;
        max-height: 100vh;
        overflow-y: auto;
        contain: layout paint;
    }
}

#toneart-hyva-consent .ta-consent-bar-inner {
    display: block;
    margin: 0 auto;
    max-width: 838px;
}

#toneart-hyva-consent .ta-consent-policy {
    color: var(--ta-consent-text);
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 20px;
    max-height: 252px;
    max-width: 640px;
    overflow: auto;
}

#toneart-hyva-consent .ta-consent-policy a,
#toneart-hyva-consent .ta-consent-link {
    color: var(--ta-consent-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#toneart-hyva-consent .ta-consent-actions {
    display: grid;
    gap: 5px;
    grid-template-columns: 240fr 371fr 218fr;
    margin: 0 0 5px;
    padding-top: 15px;
}

#toneart-hyva-consent .ta-consent-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--ta-consent-strong);
    cursor: pointer;
    display: inline-flex;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    line-height: 16px;
    letter-spacing: 1.35px;
    height: 48px;
    min-height: 48px;
    padding: 10px 30px;
    text-transform: uppercase;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

#toneart-hyva-consent .ta-consent-button:hover,
#toneart-hyva-consent .ta-consent-button:focus-visible {
    opacity: .9;
    outline: 2px solid var(--ta-consent-accent);
    outline-offset: 2px;
}

#toneart-hyva-consent .ta-consent-button.-primary {
    background: linear-gradient(90deg, #3abeff 0%, #36aae7 100%) !important;
    border-color: transparent !important;
    color: #050505 !important;
    padding: 16px 30px !important;
}

#toneart-hyva-consent .ta-consent-button.-primary:hover,
#toneart-hyva-consent .ta-consent-button.-primary:focus-visible {
    background: linear-gradient(90deg, #4fc5ff 0%, #42b4ef 100%) !important;
    border-color: transparent !important;
    color: #050505 !important;
}

#toneart-hyva-consent .ta-consent-button.-settings,
#toneart-hyva-consent .ta-consent-button.-decline {
    background: transparent !important;
}

#toneart-hyva-consent .ta-consent-button.-settings {
    border: 1px solid var(--ta-consent-strong) !important;
    border-radius: 15px !important;
    color: var(--ta-consent-strong) !important;
    padding: 15px 30px !important;
}

#toneart-hyva-consent .ta-consent-button.-decline {
    border: 1px solid transparent !important;
    border-radius: 3px !important;
    color: var(--ta-consent-text) !important;
    padding: 10px 30px !important;
}

#toneart-hyva-consent .ta-consent-button:disabled {
    cursor: wait;
    opacity: .6;
}

#toneart-hyva-consent .ta-consent-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #8a8a8a;
    cursor: pointer;
    display: flex;
    font-size: 26px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 14px;
    top: 12px;
    width: 40px;
}

#toneart-hyva-consent .ta-consent-bar > .ta-consent-close { display: none; }

#toneart-hyva-consent .ta-consent-preferences {
    background: #1f1f1f;
    border: 1px solid #4a4a4a;
    border-radius: 5px 5px 0 0;
    bottom: 0;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    left: 16px;
    padding: 8px 12px;
    position: fixed;
    z-index: 10000000;
}

#toneart-hyva-consent .ta-consent-dialog {
    background: var(--ta-consent-bg);
    border: 0;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    color: var(--ta-consent-text);
    margin: 50px auto auto;
    max-height: min(740px, calc(100vh - 100px));
    max-width: min(740px, calc(100vw - 46px));
    padding: 10px;
    width: calc(100% - 46px);
    z-index: 1000000000;
}

#toneart-hyva-consent .ta-consent-dialog::backdrop {
    background: rgba(0, 0, 0, .72);
}

#toneart-hyva-consent .ta-consent-dialog-header {
    align-items: center;
    border-bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 30px 30px 12px;
    position: relative;
}

#toneart-hyva-consent .ta-consent-title {
    color: var(--ta-consent-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
}

#toneart-hyva-consent .ta-consent-groups {
    max-height: min(500px, calc(100vh - 235px));
    overflow: auto;
    padding: 8px 30px 0;
    scrollbar-color: #636363 #262626;
    scrollbar-width: thin;
}

#toneart-hyva-consent .ta-consent-group {
    border-bottom: 0;
    padding: 8px 0 20px;
}

#toneart-hyva-consent .ta-consent-group:last-child { border-bottom: 0; }

#toneart-hyva-consent .ta-consent-group-header {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

#toneart-hyva-consent .ta-consent-group-title {
    color: var(--ta-consent-strong);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

#toneart-hyva-consent .ta-consent-description {
    color: var(--ta-consent-muted) !important;
    font-size: 14px;
    line-height: 20px;
    margin: 14px 0 0;
}

#toneart-hyva-consent .ta-consent-toggle {
    -webkit-appearance: none;
    appearance: none;
    background: #9b9b9f;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    flex: 0 0 auto;
    height: 29px;
    margin: 0;
    position: relative;
    transition: background-color .2s ease;
    width: 50px;
}

#toneart-hyva-consent .ta-consent-toggle::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    content: '';
    height: 25px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform .2s ease;
    width: 25px;
}

#toneart-hyva-consent .ta-consent-toggle:checked {
    background: var(--ta-consent-accent);
}

#toneart-hyva-consent .ta-consent-toggle:checked::after {
    transform: translateX(21px);
}

#toneart-hyva-consent .ta-consent-toggle:focus-visible {
    outline: 2px solid var(--ta-consent-accent);
    outline-offset: 3px;
}

#toneart-hyva-consent .ta-consent-toggle:disabled { cursor: not-allowed; opacity: 1; }
#toneart-hyva-consent .ta-consent-details { margin-top: 12px; }

#toneart-hyva-consent .ta-consent-details summary {
    color: var(--ta-consent-accent);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    list-style: none;
    margin-top: 12px;
}

#toneart-hyva-consent .ta-consent-details summary::-webkit-details-marker { display: none; }

#toneart-hyva-consent .ta-consent-table-wrap { overflow-x: auto; padding-top: 10px; }

#toneart-hyva-consent .ta-consent-table {
    border-collapse: collapse;
    color: var(--ta-consent-text);
    font-size: 12px;
    min-width: 600px;
    width: 100%;
}

#toneart-hyva-consent .ta-consent-table th,
#toneart-hyva-consent .ta-consent-table td {
    border: 1px solid var(--ta-consent-border);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

#toneart-hyva-consent .ta-consent-dialog-footer {
    border-top: 0;
    display: block;
    padding: 10px 30px 30px;
}

#toneart-hyva-consent .ta-consent-button.-done {
    border-radius: 3px !important;
    height: 46px;
    min-height: 46px;
    width: 100%;
}

#toneart-hyva-consent .ta-consent-status {
    color: #b91c1c;
    font-size: 13px;
    grid-column: 1 / -1;
    margin: 0;
}

#toneart-hyva-consent [aria-busy="true"] { cursor: wait; }

@media (max-width: 767px) {
    #toneart-hyva-consent .ta-consent-bar { padding: 40px 16px !important; }
    #toneart-hyva-consent .ta-consent-bar-inner { display: block; }

    #toneart-hyva-consent .ta-consent-policy { margin-bottom: 24px; }

    #toneart-hyva-consent .ta-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    #toneart-hyva-consent .ta-consent-button { width: 100%; }

    #toneart-hyva-consent .ta-consent-button { border-radius: 8px; }
    #toneart-hyva-consent .ta-consent-button.-settings { border-radius: 8px !important; }

    #toneart-hyva-consent .ta-consent-dialog {
        border-radius: 4px 4px 0 0;
        margin: auto auto 0;
        max-height: calc(100vh - 16px);
        max-width: calc(100vw - 20px);
        width: calc(100% - 20px);
    }

    #toneart-hyva-consent .ta-consent-groups {
        max-height: calc(100vh - 260px);
        padding-left: 20px;
        padding-right: 20px;
    }

    #toneart-hyva-consent .ta-consent-dialog-header { padding: 38px 20px 10px; }
    #toneart-hyva-consent .ta-consent-dialog-footer { padding: 10px 20px 24px; }
    #toneart-hyva-consent .ta-consent-group-title { font-size: 19px; }
}

body.light-mode #toneart-hyva-consent {
    --ta-consent-bg: #fff;
    --ta-consent-text: #333;
    --ta-consent-strong: #111;
    --ta-consent-muted: #444;
    --ta-consent-border: #d4d4d4;
}

body.light-mode #toneart-hyva-consent .ta-consent-bar {
    background: linear-gradient(45deg, #fff, #ffffffc4) !important;
}

@media (prefers-reduced-motion: reduce) {
    #toneart-hyva-consent .ta-consent-toggle,
    #toneart-hyva-consent .ta-consent-toggle::after,
    #toneart-hyva-consent .ta-consent-button {
        transition: none;
    }
}
