/* Tenderete v1.8.9 · produccion */
:root {
    --cc-hint-radius: 14px;
    --cc-hint-width: 320px;
    --cc-hint-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.cc-hint {
    --cc-hint-bg: #303034;
    --cc-hint-accent: #d7e3ff;
    --cc-hint-text: #f5f5f7;
    --cc-hint-muted: #dedee4;
    position: fixed;
    z-index: 10020;
    width: min(var(--cc-hint-width), calc(100vw - 32px));
    color: var(--cc-hint-text);
    font-family: inherit;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px) scale(0.98);
    transition:
        opacity 160ms ease,
        transform 160ms ease,
        visibility 160ms;
    pointer-events: none;
}

.cc-hint.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cc-hint__container {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--cc-hint-radius);
    background: var(--cc-hint-bg);
    box-shadow: var(--cc-hint-shadow);
}

.cc-hint__head {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 10px;
    align-items: start;
}

.cc-hint__icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #202124;
    background: var(--cc-hint-accent);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.cc-hint__subhead {
    margin: 0;
    color: var(--cc-hint-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.cc-hint__supporting {
    margin: 8px 0 0 32px;
    color: var(--cc-hint-muted);
    font-size: 14px;
    line-height: 1.45;
}

.cc-hint__close {
    display: grid;
    width: 28px;
    height: 28px;
    margin: -5px -7px 0 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--cc-hint-muted);
    background: transparent;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.cc-hint__close:hover,
.cc-hint__close:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.cc-hint__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.cc-hint__button {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: var(--cc-hint-accent);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cc-hint__button:hover,
.cc-hint__button:focus-visible {
    background: color-mix(in srgb, var(--cc-hint-accent) 14%, transparent);
    outline: none;
}

.cc-hint__arrow {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--cc-hint-bg);
    transform: rotate(45deg);
    pointer-events: none;
}

.cc-hint[data-placement='top'] .cc-hint__arrow {
    bottom: -7px;
    border-top: 0;
    border-left: 0;
}

.cc-hint[data-placement='bottom'] .cc-hint__arrow {
    top: -7px;
    border-right: 0;
    border-bottom: 0;
}

.cc-hint[data-placement='left'] .cc-hint__arrow {
    right: -7px;
    border-bottom: 0;
    border-left: 0;
}

.cc-hint[data-placement='right'] .cc-hint__arrow {
    left: -7px;
    border-top: 0;
    border-right: 0;
}

.cc-hint--info {
    --cc-hint-bg: #263238;
    --cc-hint-accent: #9ecaff;
}

.cc-hint--warning {
    --cc-hint-bg: #3c2f13;
    --cc-hint-accent: #ffd36a;
    --cc-hint-muted: #f4e5bf;
}

.cc-hint--danger {
    --cc-hint-bg: #3f1d1d;
    --cc-hint-accent: #ffb4ab;
    --cc-hint-muted: #f6d8d4;
}

@media (max-width: 520px) {
    .cc-hint {
        --cc-hint-width: calc(100vw - 24px);
    }

    .cc-hint__container {
        padding: 16px 16px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-hint {
        transition: none;
    }
}

.wcb-submit[aria-disabled='true'] {
    opacity: 0.72;
    cursor: pointer;
}

/* v1.6 · reset del popover nativo y límites dentro del viewport. */
.cc-hint {
    inset: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    max-height: calc(100dvh - 24px);
    overflow: visible;
}

.cc-hint__container {
    max-height: inherit;
    overflow-y: auto;
    scrollbar-width: thin;
}
