/* =============================================
   URL Personalización — Widget Confirmación
   ============================================= */

.urlp-conf-wrap {
    width: 100%;
    box-sizing: border-box;
}

.urlp-conf-sin-token {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Título y subtítulo */
.urlp-conf-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.2;
}

.urlp-conf-subtitulo {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Botones acepta / rechaza */
.urlp-conf-opciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.urlp-conf-btn-opcion {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .2s, transform .1s, box-shadow .2s;
    line-height: 1.3;
}

.urlp-conf-btn-opcion:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.urlp-btn-acepta {
    background-color: #059669;
    color: #fff;
    border-color: #059669;
}
.urlp-btn-acepta:hover { background-color: #047857; }
.urlp-btn-acepta.seleccionado {
    background-color: #065f46;
    border-color: #065f46;
    box-shadow: 0 0 0 3px rgba(5,150,105,.3);
}

.urlp-btn-rechaza {
    background-color: #fff;
    color: #374151;
    border-color: #d1d5db;
}
.urlp-btn-rechaza:hover { background-color: #f9fafb; }
.urlp-btn-rechaza.seleccionado {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239,68,68,.2);
}

/* Campos del formulario */
.urlp-conf-campo {
    margin-bottom: 1rem;
}

.urlp-conf-label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: #374151;
}

.urlp-conf-input,
.urlp-conf-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: .95rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
}

.urlp-conf-input { max-width: 120px; }
.urlp-conf-textarea { resize: vertical; min-height: 90px; }

.urlp-conf-input:focus,
.urlp-conf-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

/* Botón enviar */
.urlp-conf-enviar-wrap {
    margin-top: 1rem;
}

.urlp-btn-enviar {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    background-color: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .2s, transform .1s;
    font-family: inherit;
}

.urlp-btn-enviar:hover { background-color: #4338ca; transform: translateY(-1px); }
.urlp-btn-enviar:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Error */
.urlp-conf-error {
    margin-top: .8rem;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #dc2626;
    font-size: .9rem;
}

/* =============================================
   Mensaje de gracias
   ============================================= */

.urlp-conf-gracias {
    padding: 1.5rem 2rem;
    border-radius: 10px;
    text-align: center;
}

.urlp-conf-gracias.acepta {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
}

.urlp-conf-gracias.rechaza {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
}

.urlp-conf-gracias-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.2;
}

.urlp-conf-gracias-texto {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #374151;
}

.urlp-btn-cambiar {
    background: none;
    border: none;
    color: #6366f1;
    font-size: .85rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
    margin-top: .5rem;
}

.urlp-btn-cambiar:hover { color: #4338ca; }

/* Responsive */
@media (max-width: 480px) {
    .urlp-conf-opciones { flex-direction: column; }
    .urlp-conf-btn-opcion { min-width: 100%; }
}
