/* Placa Customizável v2.5 — Frontend */

/* ══════════════════════════════════════════════════════════════════════════
   OVERLAY DA GALERIA
══════════════════════════════════════════════════════════════════════════ */
#placacustom-ov {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #fff;         /* fundo branco sem sombra */
    border-radius: inherit;
    padding: 12px 12px 8px;
    box-sizing: border-box;
    text-align: center;
}

#placacustom-ov-canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    /* sem box-shadow */
}

/* Disclaimer jurídico */
.placacustom-disclaimer {
    margin: 10px auto 6px;
    max-width: 480px;
    font-size: 0.75em;
    color: #718096;
    line-height: 1.5;
    text-align: center;
    padding: 8px 10px;
    background: #f7f8fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.placacustom-disclaimer strong {
    color: #4a5568;
}

/* Botão Retornar à Galeria */
.placacustom-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 0.82em;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.placacustom-back-btn:hover { background: #e2e2e2; color: #222; }

/* ══════════════════════════════════════════════════════════════════════════
   CAMPOS DE TEXTO
══════════════════════════════════════════════════════════════════════════ */
.placacustom-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}
.placacustom-field-label {
    font-weight: 700;
    font-size: 0.85em;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
}
.placacustom-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 1em;
    border: 2px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    color: #1a202c;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}
.placacustom-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
.placacustom-input::placeholder { color: #a0aec0; }
.placacustom-counter { font-size: 11px; color: #a0aec0; text-align: right; }
.placacustom-counter--full { color: #e53e3e; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   BOTÃO "VER PRÉVIA"
══════════════════════════════════════════════════════════════════════════ */
.placacustom-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 600;
    color: #fff;
    background: #667eea;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.placacustom-preview-btn:hover  { background: #5a67d8; }
.placacustom-preview-btn:active { transform: scale(0.98); }

/* ══════════════════════════════════════════════════════════════════════════
   NOTICES DO SHORTCODE
══════════════════════════════════════════════════════════════════════════ */
.placacustom-sc-notice { padding:10px 14px; border-radius:5px; font-size:13px; margin:10px 0; }
.placacustom-sc-notice--error { background:#fdf0f0; border:1px solid #e74c3c; color:#c0392b; }
.placacustom-sc-notice--warn  { background:#fef9f0; border:1px solid #e67e22; color:#d35400; }
.placacustom-sc-notice code   { background:rgba(0,0,0,.08); padding:1px 5px; border-radius:3px; font-family:monospace; }

@media (max-width: 600px) {
    .placacustom-preview-btn { font-size: 0.9em; padding: 9px 14px; }
}
