/* ============================================================
   WC Instagram Pedido v3
   Todos los estilos están encapsulados bajo #wcip-wrapper
   para evitar conflictos con el tema activo.
   Se usa !important selectivamente solo donde el tema
   suele sobrescribir inputs y botones.
============================================================ */

/* ── Contenedor principal ── */
#wcip-wrapper {
    all: initial !important;
    display: block !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #18181b !important;
    border: 1.5px solid #2d2d35 !important;
    border-radius: 20px !important;
    padding: 28px 28px 24px !important;
    margin: 32px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

#wcip-wrapper * {
    box-sizing: border-box !important;
    font-family: inherit !important;
}

/* Barra superior de color */
#wcip-wrapper::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #25D366, #4ade80, #f472b6, #c026d3) !important;
    border-radius: 20px 20px 0 0 !important;
}

/* ── Header ── */
#wcip-wrapper .wcip-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 6px !important;
}

#wcip-wrapper .wcip-header-icons {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
}

#wcip-wrapper .wcip-ig-icon,
#wcip-wrapper .wcip-wa-icon {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
}

#wcip-wrapper .wcip-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #f4f4f5 !important;
    line-height: 1.25 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* ── Description ── */
#wcip-wrapper .wcip-description {
    font-size: .82rem !important;
    color: #a1a1aa !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    line-height: 1.55 !important;
    display: block !important;
    background: none !important;
    border: none !important;
}

/* ── Fields ── */
#wcip-wrapper .wcip-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-bottom: 22px !important;
}

#wcip-wrapper .wcip-field-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

#wcip-wrapper .wcip-field-group label {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-weight: 700 !important;
    color: #ffffff  !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    cursor: default !important;
    line-height: 1 !important;
    float: none !important;
    width: auto !important;
}

#wcip-wrapper .wcip-field-group label svg {
    width: 12px !important;
    height: 12px !important;
    color: #52525b !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

#wcip-wrapper .wcip-required {
    color: #f87171 !important;
    font-size: .9em !important;
}

#wcip-wrapper .wcip-optional {
    color: #52525b !important;
    font-weight: 400 !important;
    text-transform: none !important;
    font-size: .85em !important;
    letter-spacing: 0 !important;
}

/* Inputs y textareas — reset total + estilos propios */
#wcip-wrapper .wcip-field-group input[type="text"],
#wcip-wrapper .wcip-field-group textarea {
    display: block !important;
    width: 100% !important;
    padding: 10px 13px !important;
    border: 1.5px solid #3f3f46 !important;
    border-radius: 10px !important;
    font-size: .88rem !important;
    color: #e4e4e7 !important;
    background: #27272a !important;
    transition: border-color .2s, box-shadow .2s !important;
    resize: vertical !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-height: unset !important;
    height: auto !important;
}

#wcip-wrapper .wcip-field-group input[type="text"]:focus,
#wcip-wrapper .wcip-field-group textarea:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168,85,247,.18) !important;
    background: #2d2d35 !important;
    color: #f4f4f5 !important;
    outline: none !important;
}

#wcip-wrapper .wcip-field-group input[type="text"]::placeholder,
#wcip-wrapper .wcip-field-group textarea::placeholder {
    color: #52525b !important;
    opacity: 1 !important;
}

/* ── Botones — columna, ancho completo ── */
#wcip-wrapper .wcip-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
}

#wcip-wrapper .wcip-btn {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
    transition: filter .18s, transform .18s, box-shadow .18s !important;
    border: none !important;
    outline: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    -webkit-font-smoothing: antialiased !important;
}

#wcip-wrapper .wcip-btn svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

#wcip-wrapper .wcip-btn:hover {
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

#wcip-wrapper .wcip-btn:active {
    transform: translateY(0) !important;
}

/* Copiar pedido — rosa/magenta */
#wcip-wrapper .wcip-btn-copy {
    background: linear-gradient(135deg, #e040fb, #c026d3) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(192,38,211,.35) !important;
}

#wcip-wrapper .wcip-btn-copy:hover {
    filter: brightness(1.12) !important;
    box-shadow: 0 6px 24px rgba(192,38,211,.5) !important;
    color: #fff !important;
}

#wcip-wrapper .wcip-btn-copy.wcip-copied {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow: 0 4px 20px rgba(16,185,129,.35) !important;
    color: #fff !important;
}

/* Instagram DM — coral/salmón como imagen */
#wcip-wrapper .wcip-btn-instagram {
    background: linear-gradient(135deg, #f97066, #e6503a) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(249,112,102,.35) !important;
    text-decoration: none !important;
}

#wcip-wrapper .wcip-btn-instagram:hover {
    filter: brightness(1.1) !important;
    box-shadow: 0 6px 24px rgba(249,112,102,.5) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* WhatsApp — verde */
#wcip-wrapper .wcip-btn-whatsapp {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(22,163,74,.35) !important;
    text-decoration: none !important;
}

#wcip-wrapper .wcip-btn-whatsapp:hover {
    filter: brightness(1.1) !important;
    box-shadow: 0 6px 24px rgba(22,163,74,.5) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Disclaimer ── */
#wcip-wrapper .wcip-disclaimer {
    font-size: .75rem !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    line-height: 1.5 !important;
    background: #27272a !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 8px !important;
    color: #a1a1aa !important;
    display: block !important;
}
