/* Центрированный крестик (CSS-линии вместо символа × — Montserrat смещает глиф). */

.icon-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    font-size: 0;
    line-height: 0;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.icon-close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.icon-close-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.icon-close-btn::before,
.icon-close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--icon-close-bar-w, 14px);
    height: var(--icon-close-bar-h, 2px);
    background: currentColor;
    border-radius: 1px;
    transform-origin: center center;
}

.icon-close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.icon-close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.icon-close-btn--lg {
    width: 40px;
    height: 40px;
    --icon-close-bar-w: 16px;
}

.icon-close-btn--md {
    width: 36px;
    height: 36px;
    --icon-close-bar-w: 14px;
}

.icon-close-btn--sm {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: transparent;
    --icon-close-bar-w: 10px;
    --icon-close-bar-h: 1.5px;
}

.icon-close-btn--sm:hover {
    background: rgba(239, 68, 68, 0.15);
}

.icon-close-btn--ghost {
    background: transparent;
    border-radius: 6px;
}

.icon-close-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-close-btn--danger.icon-close-btn--sm:hover,
.icon-close-btn--danger.icon-close-btn--inline:hover {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.icon-close-btn--inline {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #f87171;
    --icon-close-bar-w: 10px;
    --icon-close-bar-h: 1.5px;
}

.icon-close-btn--chip {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid currentColor;
    --icon-close-bar-w: 8px;
    --icon-close-bar-h: 1.5px;
}

.icon-close-btn--chip:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.06);
}
