.kcc152 {
    position: fixed;
    z-index: 999999;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    color: var(--kcc-text, #333333);
    -webkit-font-smoothing: antialiased;
}
.kcc152[hidden] { display: none; }
.kcc152 * { box-sizing: inherit; }

.kcc152__panel {
    background: var(--kcc-bg, #ffffff);
    color: var(--kcc-text, #333333);
    border: 1px solid var(--kcc-border, #f5f5f5);
    border-radius: var(--kcc-radius, 16px);
    padding: 20px 22px;
    max-width: 720px;
    width: min(720px, calc(100vw - 32px));
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 12px 32px rgba(15, 23, 42, .10),
        0 24px 48px rgba(15, 23, 42, .06);
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
    align-items: center;
    backdrop-filter: saturate(1.2);
}

.kcc152--bottom { left: 50%; bottom: 20px; transform: translateX(-50%); }
.kcc152--bottom-left { left: 20px; bottom: 20px; }
.kcc152--bottom-right { right: 20px; bottom: 20px; }
.kcc152--top { left: 50%; top: 20px; transform: translateX(-50%); }
.kcc152--center {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .45);
    padding: 20px;
}
.kcc152--center[hidden] { display: none; }
.kcc152--center .kcc152__panel {
    max-width: 560px;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, .12),
        0 32px 64px rgba(15, 23, 42, .18);
}

.kcc152__content { flex: 1 1 280px; min-width: 0; }
.kcc152__title {
    margin: 0 0 8px;
    font-size: var(--kcc-font-title, 17px);
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--kcc-text, #333333);
}
.kcc152__text {
    font-size: var(--kcc-font-text, 14px);
    line-height: 1.55;
    color: var(--kcc-text, #333333);
    opacity: .88;
}
.kcc152__text a {
    color: var(--kcc-link, #005bff);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.kcc152__text a:hover { opacity: .85; }

.kcc152__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
.kcc152__btn {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: calc(var(--kcc-radius, 16px) - 8px);
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 560;
    line-height: 1.2;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.kcc152__btn:focus-visible {
    outline: 2px solid var(--kcc-link, #005bff);
    outline-offset: 2px;
}
.kcc152__btn--accept {
    background: var(--kcc-accept, #005bff);
    color: #fff;
    border-color: var(--kcc-accept, #005bff);
}
.kcc152__btn--accept:hover {
    filter: brightness(1.08);
}
.kcc152__btn--reject {
    background: #fff;
    color: var(--kcc-text, #333333);
    border-color: var(--kcc-border, #f5f5f5);
}
.kcc152__btn--reject:hover {
    background: #f8fafc;
}
.kcc152__btn--settings {
    background: transparent;
    border-color: var(--kcc-border, #f5f5f5);
    color: var(--kcc-settings, #005bff);
}
.kcc152__btn--settings:hover {
    background: #f8fafc;
}
.kcc152__btn--save {
    background: var(--kcc-settings, #005bff);
    color: #fff;
    border-color: var(--kcc-settings, #005bff);
}
.kcc152__btn--save:hover {
    filter: brightness(1.06);
}

.kcc152__settings { margin-top: 14px; }
.kcc152__settings[hidden] { display: none; }
.kcc152__settings-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 650;
}
.kcc152__cat {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid var(--kcc-border, #f5f5f5);
}
.kcc152__cat:first-of-type { border-top: 0; }
.kcc152__cat input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--kcc-settings, #005bff);
}
.kcc152__cat-body { display: flex; flex-direction: column; gap: 2px; }
.kcc152__cat-body strong { font-size: 13.5px; font-weight: 600; }
.kcc152__cat-body em {
    font-style: normal;
    opacity: .72;
    font-size: 12.5px;
    line-height: 1.4;
}

.kcc152__manage {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999998;
    cursor: pointer;
    background: var(--kcc-bg, #ffffff);
    color: var(--kcc-text, #333333);
    border: 1px solid var(--kcc-border, #f5f5f5);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 550;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .10);
}
.kcc152__manage:hover { background: #f8fafc; }
.kcc152__manage[hidden] { display: none; }

/* Blocked iframe / map embed placeholder */
.kcc152-embed-ph {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px 16px;
    background: #e8eaed;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    text-align: center;
    overflow: hidden;
}
.kcc152-embed-ph--hidden,
.kcc152-embed-ph[hidden] {
    display: none !important;
}
.kcc152-embed-ph__inner {
    max-width: 100%;
    min-width: 0;
}
.kcc152-embed-ph__text {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
}
.kcc152-embed-ph__btn {
    appearance: none;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    background: #3c4043;
    color: #fff;
    max-width: 100%;
}
.kcc152-embed-ph__btn:hover {
    background: #202124;
}

/* Compact: mid-size embeds — button only, full message in title */
.kcc152-embed-ph--sm {
    padding: 4px 6px;
}
.kcc152-embed-ph--sm .kcc152-embed-ph__btn {
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tiny badges (e.g. 150×50 rating widgets) — chip inside original bounds */
.kcc152-embed-ph--xs {
    padding: 2px 4px;
    cursor: pointer;
}
.kcc152-embed-ph--xs:hover {
    background: #dde1e6;
}
.kcc152-embed-ph--xs:focus {
    outline: 2px solid #3c4043;
    outline-offset: -2px;
}
.kcc152-embed-ph__chip {
    display: block;
    max-width: 100%;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #202124;
    text-decoration: underline;
    text-underline-offset: 2px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .kcc152__panel {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        width: calc(100vw - 24px);
    }
    .kcc152__actions { justify-content: stretch; }
    .kcc152__btn { flex: 1 1 auto; text-align: center; }
    .kcc152--bottom,
    .kcc152--top {
        width: calc(100% - 24px);
        left: 12px;
        right: 12px;
        transform: none;
    }
}
