/* ── Dokan Crypto Withdrawal Plugin ─────────────────────────────── */

/* ── Overlay ─────────────────────────────────────────────────────── */
.dcw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 40, 0.55);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.dcw-overlay.dcw-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal card ──────────────────────────────────────────────────── */
.dcw-modal {
    background: #fff;
    border-radius: 10px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 12px 48px rgba(20, 15, 40, .22);
    position: relative;
    transform: translateY(14px) scale(.98);
    transition: transform .22s cubic-bezier(.34,1.36,.64,1), opacity .2s ease;
    opacity: 0;
}
.dcw-overlay.dcw-open .dcw-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.dcw-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .14s, background .14s;
}
.dcw-close:hover { color: #333; background: #f2f2f2; }

/* Title */
.dcw-title {
    margin: 0 0 20px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    letter-spacing: .01em;
}

/* ── Form fields ─────────────────────────────────────────────────── */
.dcw-field {
    margin-bottom: 14px;
}
.dcw-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.dcw-field input[type="text"],
.dcw-field input[type="number"],
.dcw-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1.5px solid #e0dcea;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1a2e;
    background: #faf9fd;
    outline: none;
    transition: border-color .15s;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.dcw-field input:focus,
.dcw-field select:focus {
    border-color: #7047eb;
    background: #fff;
}
.dcw-field input::placeholder { color: #bbb; }

/* Custom select arrow */
.dcw-select-wrap { position: relative; }
.dcw-chevron {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
}

/* ── Submit button ───────────────────────────────────────────────── */
.dcw-submit {
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    background: #7047eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .16s ease;
    font-family: inherit;
}
.dcw-submit:hover    { background: #5a34d1; }
.dcw-submit:disabled { background: #b5a4e8; cursor: not-allowed; }

/* ── Success state ───────────────────────────────────────────────── */
.dcw-success {
    text-align: center;
    padding: 10px 0 4px;
}
.dcw-success svg { display: block; margin: 0 auto 12px; }
.dcw-success p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
.dcw-support-msg {
    font-size: 12px !important;
    color: #7047eb !important;
    background: #f3effe;
    border-radius: 6px;
    padding: 8px 12px !important;
    margin-top: 8px !important;
}
.dcw-support-msg strong { color: #5a34d1; }

/* ── Error message ───────────────────────────────────────────────── */
.dcw-error {
    font-size: 12px;
    color: #c0392b;
    background: #fdf0ee;
    border-radius: 5px;
    padding: 7px 10px;
    margin-bottom: 12px;
    display: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 420px) {
    .dcw-modal { padding: 22px 18px 18px; max-width: calc(100vw - 32px); }
}
