/* ========================================================
   Dokan WhatsApp Button — Frontend Styles
   ======================================================== */

.dwb-wrapper {
    margin: 16px 0;
}

/* ── Atributos / Tallas ── */
.dwb-sizes {
    margin-bottom: 16px;
}

.dwb-attr-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dwb-attr-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    min-width: 60px;
}

.dwb-attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dwb-attr-btn {
    padding: 5px 14px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.dwb-attr-btn:hover {
    border-color: #25D366;
    color: #25D366;
}

.dwb-attr-btn.dwb-selected {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    font-weight: 700;
}

/* ── Campo teléfono ── */
.dwb-phone-field {
    margin-bottom: 14px;
}

.dwb-phone-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.dwb-phone-field input {
    width: 100%;
    max-width: 280px;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.dwb-phone-field input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
}

/* ── Botón principal ── */
.dwb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.35);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    text-decoration: none;
}

.dwb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    filter: brightness(1.05);
}

.dwb-btn:active {
    transform: scale(0.97);
}

/* ── Modal ── */
.dwb-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: dwb-fade-in 0.2s ease;
}

@keyframes dwb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.dwb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}

.dwb-modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
    animation: dwb-slide-up 0.25s cubic-bezier(0.22,1,0.36,1);
}

@keyframes dwb-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.dwb-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}
.dwb-modal-close:hover { color: #333; }

.dwb-modal-icon {
    margin-bottom: 12px;
}

.dwb-modal-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
}

.dwb-modal-preview {
    background: #f4fdf7;
    border: 1px solid #c3efd2;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 22px;
}

.dwb-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.dwb-modal-cancel {
    padding: 11px 22px;
    border: 1.5px solid #ddd;
    background: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s;
}
.dwb-modal-cancel:hover { border-color: #aaa; }

.dwb-modal-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s, transform 0.15s;
}
.dwb-modal-confirm:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
}

@media (max-width: 480px) {
    .dwb-btn { width: 100%; justify-content: center; }
    .dwb-modal-box { padding: 28px 20px 22px; }
}
