/* Lista desplegable de Select2 con la marca: panel flotante, opciones redondeadas y check en la elegida.
   Compartido por finalizar compra (Región, Documento tributario) y la ficha de servicio (selector de plan). Se carga desde rc-front.php. */
.select2-dropdown { overflow: hidden; border: 1.5px solid var(--rc-lilac); border-radius: 12px; box-shadow: 0 18px 40px -20px rgba(44, 35, 229, 0.4); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--rc-blue); color: #fff; }
.select2-container--default .select2-search--dropdown .select2-search__field { height: 40px; border: 1.5px solid rgba(44, 35, 229, 0.18); border-radius: 10px; }

.select2-container--open .select2-dropdown { animation: rc-dd-in 0.22s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: top center; }
.select2-container--open .select2-dropdown--above { transform-origin: bottom center; }
.select2-dropdown { margin-top: 6px; border: 1.5px solid var(--rc-lilac); border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(44, 35, 229, 0.45); }
.select2-dropdown--above { margin-top: -6px; }
.select2-results__options { padding: 6px; }
.select2-container--default .select2-results__option { position: relative; padding: 11px 40px 11px 14px; font-size: 15px; line-height: 1.3; color: var(--rc-ink); border-radius: 10px; transition: background 0.15s ease; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { color: var(--rc-ink); background: var(--rc-lilac); }
.select2-container--default .select2-results__option[aria-selected="true"], .select2-container--default .select2-results__option[data-selected="true"] { font-weight: 700; color: var(--rc-blue); background: rgba(44, 35, 229, 0.06); }
.select2-container--default .select2-results__option[aria-selected="true"]::after, .select2-container--default .select2-results__option[data-selected="true"]::after { content: ""; position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c23e5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) { .select2-container--open .select2-dropdown, body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container .select2-selection--single .select2-selection__arrow::before { animation: none; transition: none; } }
/* El tema pinta la opción resaltada con su color de acento; se fuerza el estilo suave de la marca */
body .select2-container--default .select2-results__option--highlighted[aria-selected], body .select2-container--default .select2-results__option--highlighted[data-selected] { color: var(--rc-ink) !important; background: var(--rc-lilac) !important; }
body .select2-container--default .select2-results__option[aria-selected="true"], body .select2-container--default .select2-results__option[data-selected="true"] { color: var(--rc-blue) !important; background: rgba(44, 35, 229, 0.06) !important; }
body .select2-container--default .select2-results__option--highlighted[aria-selected="true"] { background: rgba(44, 35, 229, 0.12) !important; }

/* Selectores: panel flotante con opciones de dos líneas, check azul en la elegida y esquinas siempre redondeadas */
body .select2-container--default.select2-container--open .select2-selection--single { border-radius: 12px !important; }
body .select2-container--open .select2-dropdown { margin-top: 8px; padding: 6px; background: #fff; border: 1px solid rgba(44, 35, 229, 0.14) !important; border-radius: 16px !important; box-shadow: 0 28px 56px -26px rgba(44, 35, 229, 0.4), 0 2px 8px rgba(13, 7, 25, 0.05); }
body .select2-container--open .select2-dropdown--above { margin-top: -8px; }
body .select2-container--open .select2-results__options { padding: 0; }
body .select2-container--default .select2-results__option { margin: 2px 0; padding: 12px 48px 12px 14px; border-radius: 12px; background: none !important; color: var(--rc-ink) !important; }
body .select2-container--default .select2-results__option--highlighted[aria-selected], body .select2-container--default .select2-results__option--highlighted[data-selected] { background: rgba(44, 35, 229, 0.06) !important; color: var(--rc-ink) !important; }
body .select2-container--default .select2-results__option[aria-selected="true"], body .select2-container--default .select2-results__option[data-selected="true"] { background: none !important; color: var(--rc-ink) !important; font-weight: inherit; }
body .select2-container--default .select2-results__option--highlighted[aria-selected="true"] { background: rgba(44, 35, 229, 0.06) !important; }
body .select2-container--default .select2-results__option[aria-selected="true"]::after, body .select2-container--default .select2-results__option[data-selected="true"]::after { right: 14px; width: 22px; height: 22px; margin-top: -11px; background: var(--rc-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px 13px no-repeat; border-radius: 50%; }
.rc-opt { display: block; }
.rc-opt__t { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.rc-opt__d { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--rc-body); }
body .select2-container--default .select2-results__option[aria-selected="true"] .rc-opt__t, body .select2-container--default .select2-results__option[data-selected="true"] .rc-opt__t { color: var(--rc-blue); }

/* Ficha de servicio: el selector de variación (p. ej. "Ventas mensuales") con la misma caja que tenía el select nativo */
.single-product .summary table.variations .select2-container { width: 100% !important; }
.single-product .summary table.variations .select2-container .select2-selection--single { display: flex; align-items: center; height: 52px; background: #fff; border: 1.5px solid rgba(44, 35, 229, 0.18); border-radius: 12px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.single-product .summary table.variations .select2-container .select2-selection--single .select2-selection__rendered { padding: 0 48px 0 16px; font-family: var(--rc-font-body); font-size: 16px; line-height: 1.3; color: var(--rc-ink); }
.single-product .summary table.variations .select2-container .select2-selection--single .select2-selection__placeholder { color: var(--rc-body); }
.single-product .summary table.variations .select2-container:hover .select2-selection--single { border-color: rgba(44, 35, 229, 0.4); }
.single-product .summary table.variations .select2-container--open .select2-selection--single,
.single-product .summary table.variations .select2-container--focus .select2-selection--single { border-color: var(--rc-blue); box-shadow: 0 0 0 3px rgba(44, 35, 229, 0.15); }
.single-product .summary table.variations .select2-selection__arrow { top: 0 !important; right: 12px !important; display: grid; place-items: center; width: 32px; height: 100% !important; }
.single-product .summary table.variations .select2-selection__arrow b { display: none; }
.single-product .summary table.variations .select2-selection__arrow::before { content: ""; width: 16px; height: 16px; background: var(--rc-blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.2s ease; }
.single-product .summary table.variations .select2-container--open .select2-selection__arrow::before { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .single-product .summary table.variations .select2-selection__arrow::before { transition: none; } }
