/**
 * Підказка про акцію (wst-sale-hint.js) — біла картка в правому верхньому куті, без затемнення:
 * калькулятор під нею лишається доступним, закривається хрестиком
 *
 * Історія змін:
 * - 2026-11-30: Картка в правому верхньому куті замість модального вікна (за макетом клієнта)
 * - 2026-11-30: Вирівнювання по центру захищене від стилів теми
 * - 2026-11-30: Створено (за макетом клієнта)
 */

/* Контейнер не ловить кліки — лише сама картка */
.wst-sh-overlay {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    width: 460px;
    max-width: calc(100vw - 24px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.wst-sh-overlay.is-visible {
    opacity: 1;
    transform: none;
}
.wst-sh-box {
    position: relative;
    box-sizing: border-box;
    padding: 22px 26px 22px;
    background: #fff;
    color: #555;
    font-family: inherit;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}
.wst-sh-badge {
    display: inline-block;
    margin: 0 0 14px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #E84418;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}
.wst-sh-x {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.wst-sh-x::before,
.wst-sh-x::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #333;
}
.wst-sh-x::before { transform: rotate(45deg); }
.wst-sh-x::after { transform: rotate(-45deg); }
.wst-sh-x:hover::before,
.wst-sh-x:hover::after {
    background: #000;
}
/* Тема сайту задає абзацам свої відступи й вирівнювання — тут власні */
.wst-sh-body p {
    text-align: left !important;
}
.wst-sh-body .wst-sh-text {
    margin: 0 !important;
    padding: 0 !important;
    color: #777 !important;
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
}
.wst-sh-body .wst-sh-text b {
    color: #222;
    font-weight: 500;
}
.wst-sh-body .wst-sh-foot {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    color: #888 !important;
    font-size: 13px !important;
    font-style: italic;
    line-height: 1.4 !important;
    text-align: right !important;
}

@media (max-width: 767px) {
    .wst-sh-overlay {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}
