/* plg_system_semavmwithdrawal – izolované styly s prefixem vmw- */

.vmw-trigger {
    position: fixed;
    z-index: 99990;
    bottom: 18px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #1f6feb;
    color: #fff;
    font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.vmw-trigger:hover { background: #1a5fd0; }
.vmw-float-right { right: 18px; }
.vmw-float-left { left: 18px; }
.vmw-footer {
    position: static;
    display: inline-block;
    margin: 8px 0;
    box-shadow: none;
}

.vmw-overlay {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background: rgba(0, 0, 0, .5);
}

.vmw-modal {
    position: fixed;
    z-index: 99992;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

.vmw-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.vmw-close:hover { color: #1a1a1a; }

.vmw-title { margin: 0 30px 12px 0; font-size: 20px; color: #1a1a1a; }
.vmw-lead { margin: 0 0 16px; color: #444; }

.vmw-field { display: block; margin-bottom: 14px; }
.vmw-field span { display: block; margin-bottom: 4px; font-weight: 600; font-size: 13px; }
.vmw-field input,
.vmw-field select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
}
.vmw-field input:focus,
.vmw-field select:focus { outline: 2px solid #1f6feb; border-color: #1f6feb; }

.vmw-btn {
    display: inline-block;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.vmw-btn:disabled { opacity: .6; cursor: default; }
.vmw-btn-primary { background: #1f6feb; color: #fff; }
.vmw-modal .vmw-btn-primary { width: 100%; }
.vmw-btn-primary:hover:not(:disabled) { background: #1a5fd0; }
.vmw-btn-ghost { background: #eee; color: #333; }
.vmw-btn-ghost:hover { background: #e0e0e0; }

.vmw-actions { display: flex; gap: 10px; margin-top: 18px; }
.vmw-actions .vmw-btn-primary { width: auto; flex: 1; }

.vmw-summary {
    border: 1px solid #eee;
    border-radius: 9px;
    padding: 4px 14px;
    margin: 4px 0 14px;
    background: #fafafa;
}
.vmw-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.vmw-summary > div:last-child { border-bottom: 0; }
.vmw-summary span { color: #666; font-size: 13px; }

.vmw-statement { font-size: 14px; color: #444; }

.vmw-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 7px;
    background: #fdecea;
    color: #9b2c20;
    font-size: 14px;
}
.vmw-warn {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 7px;
    background: #fff6e0;
    color: #8a6100;
    font-size: 14px;
}

.vmw-done { text-align: center; }
.vmw-check {
    width: 56px;
    height: 56px;
    margin: 6px auto 14px;
    border-radius: 50%;
    background: #1f9d55;
    color: #fff;
    font-size: 30px;
    line-height: 56px;
}
.vmw-ref { font-size: 14px; color: #555; margin: 14px 0 18px; }

.vmw-items {
    border: 1px solid #eee;
    border-radius: 9px;
    padding: 4px 14px;
    margin: 4px 0 14px;
    background: #fafafa;
}
.vmw-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 14px;
}
.vmw-select-all {
    font-size: 13px;
    font-weight: 400;
    color: #1f6feb;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.vmw-select-all:hover { text-decoration: underline; }
.vmw-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.vmw-item:last-child { border-bottom: 0; }
.vmw-item input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; cursor: pointer; }
.vmw-item-name { flex: 1; min-width: 0; }
.vmw-item-name .vmw-item-sku { font-size: 12px; color: #888; }
.vmw-item-qty {
    width: 60px;
    padding: 5px 7px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}
.vmw-item-qty:disabled { opacity: .4; background: #f4f4f4; }
.vmw-item-price { flex-shrink: 0; white-space: nowrap; color: #555; font-size: 13px; }

.vmw-return-info {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #eee;
    border-radius: 9px;
    background: #f9f9f9;
    font-size: 14px;
    text-align: left;
}
.vmw-return-info p { margin: 0 0 6px; }
.vmw-return-info p:last-child { margin-bottom: 0; }
.vmw-return-address { white-space: pre-line; font-weight: 600; }
.vmw-terms-link { font-size: 13px; color: #555; margin: 10px 0 14px; }
.vmw-terms-link a { color: #1f6feb; }

body.vmw-noscroll { overflow: hidden; }
