.ucc,
.ucc * {
    box-sizing: border-box;
    font-family: var(--ucc-font-family, inherit);
}

.ucc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    z-index: 999999;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--ucc-banner-bg, #111827);
    color: var(--ucc-banner-text, #fff);
    border: var(--ucc-banner-border-width, 0px) solid var(--ucc-banner-border-color, var(--ucc-banner-muted, #d1d5db));
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    padding: 20px;
}

.ucc-banner[hidden],
.ucc-modal-wrap[hidden],
.ucc-manage[hidden] {
    display: none !important;
}

.ucc-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ucc-headline-color, var(--ucc-banner-text, #fff));
}

.ucc-text {
    margin: 0;
    color: var(--ucc-banner-muted, #d1d5db);
    font-size: 15px;
    line-height: 1.65;
}

.ucc-text a,
.ucc-modal a {
    color: var(--ucc-link, #93c5fd);
    text-decoration: underline;
}

.ucc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ucc-btn,
.ucc-shortcode-link {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background .15s ease, border-color .15s ease;
    text-decoration: none;
}

.ucc-btn:hover,
.ucc-btn:focus-visible,
.ucc-shortcode-link:hover,
.ucc-shortcode-link:focus-visible {
    transform: translateY(-1px);
    opacity: .96;
    outline: none;
}

.ucc-btn-primary {
    background: var(--ucc-primary-bg, #ffffff);
    color: var(--ucc-primary-text, #111827);
}

.ucc-btn-secondary {
    background: var(--ucc-secondary-bg, transparent);
    color: var(--ucc-secondary-text, #fff);
    border-color: var(--ucc-secondary-border, rgba(255, 255, 255, 0.35));
}

.ucc-btn-settings {
    background: var(--ucc-settings-bg, rgba(255, 255, 255, 0.12));
    color: var(--ucc-settings-text, #fff);
    border-color: var(--ucc-settings-border, rgba(255, 255, 255, 0.18));
}

.ucc-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 1000000;
}

.ucc-overlay {
    position: absolute;
    inset: 0;
    background: var(--ucc-overlay-bg, rgba(17, 24, 39, 0.55));
}

.ucc-modal {
    position: relative;
    max-width: 760px;
    margin: 5vh auto 0;
    background: var(--ucc-modal-bg, #ffffff);
    color: var(--ucc-modal-text, #111827);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    padding: 24px;
    width: calc(100% - 24px);
    max-height: 90vh;
    overflow: auto;
}

.ucc-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ucc-modal-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.ucc-modal-text {
    margin: 0;
    color: var(--ucc-modal-muted, #6b7280);
    line-height: 1.65;
    font-size: 15px;
}

.ucc-close {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.ucc-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.ucc-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.ucc-card-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.ucc-card-desc {
    margin: 0;
    color: var(--ucc-modal-muted, #6b7280);
    line-height: 1.6;
    font-size: 14px;
}

.ucc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.ucc-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.ucc-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ucc-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: var(--ucc-toggle-off, #9ca3af);
    border-radius: 999px;
    transition: background .2s ease;
}

.ucc-slider:before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 4px;
    top: 4px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.ucc-switch input:checked + .ucc-slider {
    background: var(--ucc-toggle-on, #22c55e);
}

.ucc-switch input:checked + .ucc-slider:before {
    transform: translateX(24px);
}

.ucc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ucc-manage {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 999998;
    border: 1px solid var(--ucc-manage-border, rgba(17, 24, 39, 0.15));
    background: var(--ucc-manage-bg, #111827);
    color: var(--ucc-manage-text, #fff);
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

@media (max-width: 767px) {
    .ucc-banner {
        left: 12px;
        right: 12px;
        padding: 16px;
        border-radius: 16px;
    }

    .ucc-title {
        font-size: 20px;
    }

    .ucc-actions,
    .ucc-modal-actions {
        flex-direction: column;
    }

    .ucc-btn,
    .ucc-close,
    .ucc-manage,
    .ucc-shortcode-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .ucc-card {
        grid-template-columns: 1fr;
    }

    .ucc-modal {
        margin-top: 3vh;
        padding: 18px;
        width: calc(100% - 16px);
    }

    .ucc-modal-head {
        flex-direction: column;
    }

    .ucc-manage {
        right: 12px;
        left: 12px;
        bottom: 12px;
        border-radius: 14px;
    }
}
