/* «Сообщить о снижении цены» (LbPriceWatch, /local/js/lb_price_watch.js).
   Кнопка живёт в блоке цены карточки (#pdp — десктоп, #pdpm — мобильная), окно — в <body> с id #lb-pw.
   Селекторы с id: глобальные правила шаблона (#mainContentRight …, Bootstrap) бьют одиночные классы. */

#pdp .lb-pw-btn,
#pdpm .lb-pw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    float: none;
    width: auto;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pdp-link, #0a7ddd);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: none;
}
#pdp .lb-pw-btn span,
#pdpm .lb-pw-btn span {
    border-bottom: 1px dashed currentColor;
}
#pdp .lb-pw-btn:hover,
#pdpm .lb-pw-btn:hover {
    color: #075aa0;
}
#pdp .lb-pw-btn:focus-visible,
#pdpm .lb-pw-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
#pdp .lb-pw-btn svg,
#pdpm .lb-pw-btn svg {
    flex: 0 0 auto;
}
#pdp .lb-pw-btn[data-done],
#pdpm .lb-pw-btn[data-done] {
    color: #2f8a52;
}

/* ── окно ── */
#lb-pw {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 19, 23, .55);
    box-sizing: border-box;
}
#lb-pw[hidden] {
    display: none;
}
/* Кнопка чата Jivo и плашки поверх страницы перекрывали галочку согласия на мобильной */
html.lb-pw-open jdiv,
html.lb-pw-open #jivo-iframe-container {
    display: none !important;
}
#lb-pw :where(*, *::before, *::after) {
    box-sizing: border-box;
}
#lb-pw .lb-pw__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    margin: 0;
    padding: 26px 24px 22px;
    border-radius: 14px;
    background: #fff;
    color: #1c1f24;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    float: none;
}
#lb-pw .lb-pw__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #6b7280;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}
#lb-pw .lb-pw__close:hover {
    background: #f6f7f9;
    color: #1c1f24;
}
#lb-pw .lb-pw__title {
    margin: 0 32px 8px 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #1c1f24;
    text-transform: none;
}
#lb-pw .lb-pw__lead {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 14px;
}
#lb-pw .lb-pw__label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    float: none;
    width: auto;
}
#lb-pw .lb-pw__input {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d3d6db;
    border-radius: 10px;
    background: #fff;
    color: #1c1f24;
    font: inherit;
    font-size: 16px;
    box-shadow: none;
}
#lb-pw .lb-pw__input:focus {
    border-color: #ff7a00;
    outline: 2px solid rgba(255, 122, 0, .25);
    outline-offset: 0;
}
#lb-pw .lb-pw__consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    color: #4b5563;
    cursor: pointer;
    float: none;
    width: auto;
}
#lb-pw .lb-pw__consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #ff7a00;
}
#lb-pw .lb-pw__consent a {
    color: #0a7ddd;
    text-decoration: underline;
}
#lb-pw .lb-pw__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
#lb-pw .lb-pw__submit {
    display: block;
    width: 100%;
    height: 46px;
    margin: 18px 0 0;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #ff7a00;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-shadow: none;
    box-shadow: none;
}
#lb-pw .lb-pw__submit:hover {
    background: #e86d00;
}
#lb-pw .lb-pw__submit[hidden] {
    display: none;
}
#lb-pw .lb-pw__submit[disabled] {
    opacity: .6;
    cursor: default;
}
#lb-pw .lb-pw__msg {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #4b5563;
}
#lb-pw .lb-pw__msg:empty {
    display: none;
}
#lb-pw .lb-pw__msg[data-kind="error"] {
    color: #dc2626;
}
#lb-pw .lb-pw__msg[data-kind="ok"] {
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef7f1;
    color: #17492b;
}
#lb-pw .lb-pw__note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}
#lb-pw .lb-pw__captcha {
    margin: 0;
}
@media (max-width: 480px) {
    #lb-pw {
        align-items: flex-end;
        padding: 0;
    }
    #lb-pw .lb-pw__box {
        max-width: none;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
    }
}
