/* ------------------------------------------------------------------ */
/*  "Поторгуватися" — кнопка (з анімацією) та popup на сторінці товару. */
/* ------------------------------------------------------------------ */

.slf-negotiate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 24px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    animation: slf-negotiate-pulse 2.2s ease-in-out infinite;
}

.slf-negotiate-btn:hover {
    background: #e6551f;
}

.slf-negotiate-btn__icon {
    font-size: 18px;
}

@keyframes slf-negotiate-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, .45);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

/* ------------------------------------------------------------------ */
/*  Popup                                                              */
/* ------------------------------------------------------------------ */

.slf-negotiate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
    z-index: 100000;
}

.slf-negotiate-overlay--open {
    display: flex;
}

.slf-negotiate-modal {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.slf-negotiate-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}

.slf-negotiate-modal__close:hover {
    color: #222;
}

.slf-negotiate-modal__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.slf-negotiate-modal__product {
    margin: 0 0 18px;
    font-size: 13px;
    color: #777;
}

.slf-negotiate-form__label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.slf-negotiate-form__input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #d3d6da;
    border-radius: 6px;
    font-size: 14px;
}

.slf-negotiate-form__submit {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.slf-negotiate-form__submit:hover {
    background: #1558b0;
}

.slf-negotiate-form__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.slf-negotiate-form__status {
    margin: 12px 0 0;
    font-size: 13px;
    text-align: center;
}

.slf-negotiate-form__status--error {
    color: #d32f2f;
}

.slf-negotiate-form__status--success {
    color: #2e7d32;
}
