
#wl-product-button-source {
    display: none !important;
}

.wl-expected {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.wl-button-wrap.wl-off {
    display: none !important;
}

.wl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border-width: var(--wl-button-border-width, 1px);
    border-style: solid;
    line-height: 1.3;
    width: var(--wl-button-width, auto);
    color: var(--wl-button-color);
    background: var(--wl-button-bg);
    border-color: var(--wl-button-border);
    border-radius: var(--wl-button-radius);
    padding: var(--wl-button-padding);
    font-size: var(--wl-button-font-size);
    font-weight: var(--wl-button-font-weight);
    box-shadow: var(--wl-button-shadow, none);
    text-transform: var(--wl-button-transform, none);
    transition: background .15s ease, color .15s ease;
}

.wl-button:hover {
    background: var(--wl-button-hover-bg);
    color: var(--wl-button-hover-color, var(--wl-button-color));
}

@media (max-width: 760px) {
    .wl-button-wrap[data-wl-place="product"] {
        width: 100%;
    }
    .wl-button.wl-button-product {
        width: 100%;
        box-sizing: border-box;
    }
}

.wl-ico {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
.wl-ico-bell { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5S10.5 3.17 10.5 4v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5S10.5 3.17 10.5 4v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/%3E%3C/svg%3E"); }

.wl-modal-overlay {
    backdrop-filter: blur(var(--wl-popup-blur, 0px));
}
.wl-modal-product {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}
.wl-modal-product img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}
.wl-modal-text {
    margin: 0 0 14px;
    opacity: .8;
    line-height: 1.45;
    font-size: 14px;
}
.wl-field input,
.wl-field select {
    box-sizing: border-box;
    width: 100%;
    height: var(--wl-input-height, 40px);
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--wl-input-border, #ccc);
    border-radius: var(--wl-input-radius, 4px);
    background: var(--wl-input-bg, #fff);
}
.wl-field select {
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: var(--wl-input-bg, #fff);
}
.wl-field input:focus,
.wl-field select:focus {
    border-color: var(--wl-input-focus, #1a9afe);
}

.wl-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.wl-modal.is-open {
    display: flex !important;
}

.wl-modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--wl-popup-overlay, rgba(0,0,0,.45));
    pointer-events: auto;
}

.wl-modal > .wl-modal-dialog {
    position: relative;
    z-index: 2;
    width: var(--wl-width, 420px) !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 auto !important;
    background: var(--wl-popup-bg, #fff);
    color: var(--wl-popup-color, #333);
    border-radius: var(--wl-popup-radius, 8px);
    padding: var(--wl-popup-padding, 24px);
    box-shadow: var(--wl-popup-shadow, 0 15px 50px rgba(0,0,0,.25));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-sizing: border-box;
}

.wl-modal-close {
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    z-index: 6 !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #222 !important;
    font-size: 26px !important;
    line-height: 32px !important;
    text-align: center !important;
    cursor: pointer !important;
    opacity: 0.7;
    display: block !important;
}
.wl-modal-close span {
    display: block !important;
    font-size: 26px !important;
    line-height: 32px !important;
    color: #222 !important;
    pointer-events: none;
}
.wl-modal-close:hover {
    opacity: 1;
}

.wl-modal-title {
    font-size: var(--wl-popup-title-size, 20px);
    font-weight: 600;
    margin: 0 30px 20px 0;
}

.wl-field {
    display: block;
    margin-bottom: 15px;
}

.wl-field > span {
    display: block;
    margin-bottom: 5px;
}

.wl-policy {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 15px 0;
    font-size: 13px;
}

.wl-submit {
    width: 100%;
    border: 0;
    border-radius: var(--wl-popup-button-radius, 4px);
    padding: var(--wl-popup-button-padding, 10px 14px);
    cursor: pointer;
    background: var(--wl-popup-button-bg, #2ecc71);
    color: var(--wl-popup-button-color, #fff);
    text-align: center;
    font-family: Arial, sans-serif;
}

.wl-submit::before,
.wl-submit::after,
.wl-button::before,
.wl-button::after,
.wl-modal-close::before,
.wl-modal-close::after {
    content: none !important;
    display: none !important;
}

.wl-error {
    color: #d00;
    margin: 10px 0;
}

.wl-success-text {
    margin-bottom: 15px;
}

.wl-account-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    background: #ff1493;
    color: #fff;
    text-decoration: none;
}

body.wl-modal-open {
    overflow: hidden;
}

.wl-toast-container {
    position: fixed;
    z-index: 100000;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.wl-toast {
    pointer-events: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
    padding: 16px 40px 16px 18px;
    position: relative;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease;
}

.wl-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.wl-toast-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.wl-toast-link {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 4px;
    background: #2ecc71;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.wl-toast-link:hover {
    opacity: .9;
}

.wl-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #999;
}

.wl-toast-close:hover {
    color: #333;
}

@media (max-width: 480px) {
    .wl-toast-container {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
    }
}

.wl-account-info {
    flex: 1 1 auto;
    min-width: 0;
}
.wl-account-status {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.wl-account-empty {
    padding: 24px 0;
}

.wl-account { color:var(--wl-card-color); }
.wl-account-list { display:flex; flex-direction:column; gap:12px; }
.wl-account-card { display:flex; align-items:center; gap:16px; padding:var(--wl-card-padding); background:var(--wl-card-bg); color:var(--wl-card-color); border:1px solid var(--wl-card-border); border-radius:var(--wl-card-radius); box-shadow:var(--wl-card-shadow); }
.wl-account-product { display:flex; align-items:flex-start; gap:12px; flex:1; min-width:0; }
.wl-account-name { font-weight:600; overflow-wrap:anywhere; }
.wl-account-muted { color:var(--wl-card-muted); font-size:13px; margin-top:3px; }
.wl-account-badge { display:inline-block; padding:4px 8px; border-radius:5px; font-size:12px; white-space:nowrap; }
.wl-account-badge.open { background:var(--wl-open-bg); color:var(--wl-open-color); }
.wl-account-badge.notified { background:var(--wl-notified-bg); color:var(--wl-notified-color); }
.wl-account-badge.closed { background:var(--wl-closed-bg); color:var(--wl-closed-color); }
/* на узких экранах статус и отмена — отдельной строкой под товаром */
@media (max-width:700px) {
    .wl-account-card { align-items:flex-start; flex-wrap:wrap; }
    .wl-account-product { flex-basis:100%; }
    .wl-account-status { flex-basis:100%; flex-direction:row; align-items:center; justify-content:space-between; }
}

.wl-submit:hover { background: var(--wl-popup-button-hover-bg, #27ae60); }

.wl-success-close {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.wl-success-close:hover {
    background: #f5f5f5;
}

.wl-account-image,
.wl-account-image-link img {
    width: var(--wl-image-size, 64px);
    height: var(--wl-image-size, 64px);
    object-fit: cover;
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
}
.wl-account-product-link {
    color: var(--wl-link-color, #1769aa);
    text-decoration: none;
    font-weight: 600;
}
.wl-account-product-link:hover {
    text-decoration: underline;
}
.wl-account-close {
    color: var(--wl-close-color, #d33);
    font-size: 13px;
    text-decoration: none;
}
.wl-account-close:hover {
    text-decoration: underline;
}
.wl-account-price {
    margin-top: 2px;
}

.wl-cart-hidden {
    display: none !important;
}
