/* --- CONTENEDOR GENERAL --- */
.sr-shortcode-root {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    max-width: 760px;
    margin: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 14px; /* MÁS PEQUEÑO */
}

/* --- LABELS --- */
.sr-shortcode-root label {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 14px; /* MÁS PEQUEÑO */
    color: #374151;
}

/* --- INPUTS & SELECTS --- */
.sr-shortcode-root select,
.sr-shortcode-root input,
.sr-shortcode-root textarea {
    width: 100%;
    padding: 6px 8px; /* MÁS PEQUEÑO */
    margin-bottom: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px; /* MÁS SUTIL */
    font-size: 14px; /* MÁS PEQUEÑO */
    transition: all 0.2s ease;
}

.sr-shortcode-root select:focus,
.sr-shortcode-root input:focus,
.sr-shortcode-root textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
    outline: none;
}

/* --- BOTONES --- */
.sr-shortcode-root button {
    padding: 6px 10px; /* MÁS CHICO */
    border: none;
    border-radius: 6px; /* MÁS SUTIL */
    font-size: 12px; /* MÁS PEQUEÑO */
    cursor: pointer;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.1s ease;
}

.sr-shortcode-root button:hover {
    background: #2563eb;
}

.sr-shortcode-root button:active {
    transform: scale(0.97);
}

/* --- LISTA DE PRODUCTOS --- */
/* LISTA DE PRODUCTOS COMPACTA */
.sr-list-unstyled {
    list-style: none;
    padding-left: 0;
    margin: 4px 0;
}

.sr-list-unstyled li {
    padding: 3px 4px;                     /* casi sin espacio */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;     /* línea fina */
    font-size: 14px;                    /* pequeño */
    line-height: 14px;
}

.sr-entry {
    flex: 1;
}

/* Ícono eliminar */
.sr-remove {
    color: #c82333;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    padding: 1px;    /* casi nada */
}

.sr-remove:hover {
    color: #a71d2a;
}

/* --- BOTÓN ELIMINAR --- */
.sr-remove {
    margin-left: 10px;
    color: #ef4444;
    border: none;
    cursor: pointer;
    font-size: 12px; /* MÁS CHICO */
    transition: background 0.2s ease;
}

.sr-remove:hover {
    background: #dc2626;
}

/* --- MENSAJES --- */
.sr-note {
    font-size: 11.5px;
    color: #6b7280;
    margin-top: 4px;
}

#sr-feedback {
    font-weight: 600;
    margin-top: 8px;
    font-size: 12px;
}

.sr-success {
    color: #16a34a;
}

.sr-error {
    color: #dc2626;
}

/* --- LAYOUT RESPONSIVE --- */
@media (min-width: 700px) {
    .sr-row {
        display: flex;
        gap: 10px; /* MÁS ESTRECHO */
    }
    .sr-row .sr-col {
        flex: 1;
    }
    .sr-row .sr-col.small {
        flex: 0 0 110px; /* REDUCIDO */
    }
}
.sr-shortcode-root {
    border: 1px solid black !important;
}
/* Centrar verticalmente el botón AGREGAR */
.sr-row .sr-col.small {
    display: flex;
    align-items: center;       /* ? CENTRA vertical */
    justify-content: center;   /* ? opcional si quieres centrarlo horizontal */
    padding-top: 0px;          /* ajusta si quieres */
}

/* Botón más pequeño y centrado */
#sr-add {
    position: relative !important;
    top: -10px !important;
    padding: 8px 10px;         /* más pequeño */
    font-size: 13px;           /* texto más chico */
    height: auto;
    line-height: 1;
    display: flex;
    align-items: center;       /* centra icono */
    gap: 6px;
}

.obligatorio::after {
  content: " *";
  color: red;
}
