.yangtics-consent-banner,
.yangtics-consent-modal,
.yangtics-consent-backdrop {
    display: none;
}

.yangtics-consent-banner.is-visible,
.yangtics-consent-modal.is-visible,
.yangtics-consent-backdrop.is-visible {
    display: block;
}

.yangtics-consent-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 999998;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    padding: 18px;
    color: #1f2933;
    font-size: 14px;
    line-height: 1.5;
}

.yangtics-consent-copy {
    max-width: 900px;
}

.yangtics-consent-copy strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.yangtics-consent-copy p {
    margin: 0;
}

.yangtics-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.yangtics-consent-button {
    appearance: none;
    border: 1px solid #111827;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
}

.yangtics-consent-accept,
.yangtics-consent-save {
    background: #111827;
    color: #fff;
}

.yangtics-consent-button:hover,
.yangtics-consent-button:focus {
    opacity: .86;
}

.yangtics-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(17, 24, 39, .48);
}

.yangtics-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 18px;
    overflow: auto;
}

.yangtics-consent-panel {
    width: min(620px, calc(100vw - 36px));
    margin: 8vh auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
    color: #1f2933;
    overflow: hidden;
}

.yangtics-consent-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.yangtics-consent-panel-header strong {
    font-size: 18px;
}

.yangtics-consent-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.yangtics-consent-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.yangtics-consent-row strong {
    display: block;
    margin-bottom: 4px;
}

.yangtics-consent-row p {
    margin: 0;
    color: #52606d;
    font-size: 14px;
    line-height: 1.45;
}

.yangtics-consent-always {
    color: #52606d;
    font-size: 13px;
    white-space: nowrap;
}

.yangtics-consent-switch {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 28px;
}

.yangtics-consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.yangtics-consent-switch span {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: .18s;
}

.yangtics-consent-switch span:before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .18s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.yangtics-consent-switch input:checked + span {
    background: #111827;
}

.yangtics-consent-switch input:checked + span:before {
    transform: translateX(22px);
}

.yangtics-consent-modal-actions {
    padding: 18px 20px;
    text-align: right;
}

@media (min-width: 780px) {
    .yangtics-consent-banner {
        display: none;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
    }

    .yangtics-consent-banner.is-visible {
        display: flex;
    }

    .yangtics-consent-actions {
        margin-top: 0;
        justify-content: flex-end;
        flex-shrink: 0;
    }
}

@media (max-width: 520px) {
    .yangtics-consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px;
    }

    .yangtics-consent-actions,
    .yangtics-consent-button {
        width: 100%;
    }

    .yangtics-consent-row {
        grid-template-columns: 1fr;
    }

    .yangtics-consent-modal-actions,
    .yangtics-consent-modal-actions .yangtics-consent-button {
        width: 100%;
    }
}
