:root {
  /* === Colores base === */
  --vfwoo-bg: #f6f5f3;
  --vfwoo-white: #ffffff;
  --vfwoo-text: #1a1a1a;
  --vfwoo-text-muted: #666;
  --vfwoo-text-light: #888;
  --vfwoo-verde: #0e415d;
  --vfwoo-azul: #7f8bec;
  --vfwoo-azul-light: #d0d5fb;
  --vfwoo-azul-bg: #f0f4ff;
  --vfwoo-red: #b33654;
  --vfwoo-orange: #f98c59;
  --vfwoo-orange-bg: #fff8f0;
  --vfwoo-modal-bg: #7e8aec7a;
}

.bold,
strong,
b {
  font-weight: 600 !important;
}

.vfwoo-single-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--vfwoo-white);
  border-radius: 8px;
  padding: 30px;
  position: relative;
  font-family: "Fredoka", sans-serif;
  padding-bottom: 100px;
  background-image: url(../img/logo.svg);
  background-repeat: no-repeat;
  background-size: 70px;
  background-position: calc(100% - 40px) calc(100% - 20px);
  min-height: 80vh;
}

.vfwoo-close-single {
  position: absolute;
  top: 20px;
  right: 20px;
}

.vfwoo-product-emisor-display {
  width: 100%;
}

/* === Facturas Grid === */
.vfwoo-facturas-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.vfwoo-facturas-controls h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.vfwoo-facturas-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

#facturas-date-filter {
  width: 150px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 14px;
}

#facturas-date-filter::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(42%) sepia(93%) saturate(500%) hue-rotate(200deg);
}

.vfwoo-facturas-grid {
  display: grid;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
}

.vfwoo-facturas-actions #facturas-date-from,
.vfwoo-facturas-actions #facturas-date-to {
  display: none;
}

.vfwoo-facturas-actions #facturas-year,
.vfwoo-facturas-actions #facturas-month {
  width: 150px;
}

.vfwoo-facturas-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr 1fr 1.3fr 1.3fr 0.8fr;
  gap: 10px;
  background: var(--vfwoo-bg);
  color: var(--vfwoo-azul);
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
}

.vfwoo-facturas-header .sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 18px;
}

.vfwoo-facturas-header .sortable:hover {
  opacity: 0.8;
}

.vfwoo-facturas-header .sort-arrow {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.7;
}

.vfwoo-facturas-header .sortable.sort-asc .sort-arrow {
  border-bottom: 6px solid var(--vfwoo-azul);
  opacity: 1;
}

.vfwoo-facturas-header .sortable.sort-desc .sort-arrow {
  border-top: 6px solid var(--vfwoo-azul);
  opacity: 1;
}

.vfwoo-facturas-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr 1fr 1.3fr 1.3fr 0.8fr;
  gap: 10px;
  background: var(--vfwoo-white);
  padding: 13px 10px 0px;
  border-radius: 7px;
  border-bottom: 1px solid var(--vfwoo-bg);
  font-size: 13px;
  font-family: "Fredoka", sans-serif;
}

.vfwoo-facturas-row:hover {
  background: var(--vfwoo-bg);
}

.vfwoo-qr-cell img {
  width: 30px;
  height: 30px;
}

.vfwoo-facturas-empty,
.vfwoo-facturas-loading,
.vfwoo-facturas-error {
  padding: 30px;
  text-align: center;
  background: var(--vfwoo-bg);
  border-radius: 8px;
  color: var(--vfwoo-text);
}

.vfwoo-facturas-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  display: none;
}

.vfwoo-col-numero {
  width: 150px;
}

.vfwoo-col-fecha {
  width: 100px;
}

.vfwoo-col-cliente {
  width: 150px;
}

.vfwoo-col-concepto {
  width: 222px;
}

.vfwoo-col-importe {
  width: 100px;
}

.vfwoo-col-qr {
  width: 50px;
}

.vfwoo-col-estado {
  width: 80px;
}

.vfwoo-col-estado {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vf-woo-qr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 22px;
  height: 22px;
  background-image: url(../img/qr-scan.png);
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 4px;
}

.vf-woo-qr-link:hover {
  opacity: 0.5;
}

.vf-woo-state-Correcta,
.vf-woo-state-correcta {
  background-color: var(--vfwoo-azul);
}

.vf-woo-qr-punto {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  margin-top: -9px;
}

.vfwoo-xml-export h3 {
  margin: 0 0 15px 0;
}

.vfwoo-xml-export .vfwoo-download-all-xml {
  margin-bottom: 20px;
}

.vfwoo-xml-list {
  max-height: 400px;
  overflow-y: auto;
}

.vfwoo-xml-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.vfwoo-xml-item:last-child {
  border-bottom: none;
}

.vfwoo-xml-filename {
  flex: 1;
}

.vfwoo-xml-list {
  max-height: 400px;
  overflow-y: auto;
}

.vfwoo-xml-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.vfwoo-xml-item:last-child {
  border-bottom: none;
}

.vfwoo-xml-filename {
  flex: 1;
}

.vfwoo-btn-renovar-licencia {
  width: fit-content;
}

/* Badge para líneas de descuento (no ocupa todo el ancho) */
.vfwoo-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 22px;
}

.vfwoo-badge-disc {
  background: var(--vfwoo-azul-light);
  color: var(--vfwoo-black);
}

/* Líneas informativas (sin fondo, sin color) */
.vfwoo-total-label,
.vfwoo-row-total .wc-block-components-totals-item__label,
.vfwoo-net-label,
.vfwoo-row-net .wc-block-components-totals-item__label {
  line-height: 22px;
}

.vfwoo-slider-disc-lines {
  margin: 8px 0 4px;
}

.vfwoo-slider-disc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
  color: var(--vfwoo-azul);
}

.vfwoo-slider-disc-total {
  font-weight: 600;
  border-top: 1px solid var(--vfwoo-azul-light);
  margin-top: 4px;
  padding-top: 6px;
}

.vfwoo-slider-disc-amt {
  font-weight: 600;
}

.vfwoo-download-bar {
  position: absolute;
  bottom: 20px;
  left: 30px;
}

@media (max-width: 768px) {
  .vfwoo-facturas-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .vfwoo-facturas-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  #facturas-title {
    text-align: center !important;
  }

  #facturas-date-filter {
    width: 100%;
  }

  .vfwoo-facturas-header {
    display: none;
  }

  .vfwoo-facturas-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px;
  }

  .vfwoo-facturas-row > div::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--vfwoo-azul);
  }

  .vfwoo-qr-cell::before {
    content: "QR: ";
  }
}

.vfwoo-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 22px;
  background: var(--vfwoo-azul);
  color: var(--vfwoo-white);
  padding: 10px 20px;
  border-radius: 222px;
  z-index: 99999;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Fredoka", sans-serif !important;
}

.vfwoo-toast a {
  color: var(--vfwoo-white);
  font-weight: 600;
  text-decoration: underline;
}

.vfwoo-toast a:hover {
  text-decoration: none;
}

/* Tipos de toast */
.vfwoo-toast-error {
  background: var(--vfwoo-red);
}

.vfwoo-toast-success {
  background: var(--vfwoo-azul);
}

.vfwoo-toast-warning {
  background: var(--vfwoo-orange);
  color: #000;
}

.vfwoo-toast-info {
  background: var(--vfwoo-azul);
}

/* Botón de cerrar */
.vfwoo-toast-close {
  cursor: pointer;
  float: right;
  font-size: 20px;
  font-weight: lighter;
  line-height: 1;
  margin-left: 15px;
  opacity: 0.8;
}

.vfwoo-toast-close:hover {
  opacity: 1;
}

.vfwoo-input {
  border-color: var(--vfwoo-bg) !important;
  background-color: var(--vfwoo-bg) !important;
  border-radius: 8px !important;
}

.vfwoo-input:focus-visible {
  background-color: var(--vfwoo-azul-light) !important;
}

.vfwoo-input.error {
  border-color: var(--vfwoo-red) !important;
}

.vfwoo-emisores-wrapper {
  padding: 20px;
  background: var(--vfwoo-white);
  border-radius: 8px;
}

.vfwoo-add-emisor {
  margin: 20px 0;
  background: #0073aa;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
}

.vfwoo-emisores-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.vfwoo-emisor-card {
  border-radius: 13px;
  padding: 20px;
  background: var(--vfwoo-bg);
}

.vfwoo-emisor-card h3,
.vfwoo-emisor-manage h3 {
  letter-spacing: 0px !important;
  font-size: 23px !important;
  font-weight: 400 !important;
  text-transform: uppercase;
}

.vfwoo-emisor-manage h4 {
  font-size: 20px !important;
  font-weight: 400 !important;
}

.vfwoo-emisores-wrapper h2 {
  font-weight: 200 !important;
}

.vfwoo-state {
  display: inline-block;
  padding: 0px 20px;
  border-radius: 222px;
  font-size: 9px;
  font-weight: bold;
  margin-bottom: 10px;
}

.vfwoo-state-semilla {
  background: #ffeaa7;
  color: var(--vfwoo-text);
}

.vfwoo-state-confirmado {
  background: #3f91b9;
  color: var(--vfwoo-bg);
}

.vfwoo-state-validado {
  background: #b362e6;
  color: var(--vfwoo-bg);
}

.vfwoo-state-production {
  background: var(--vfwoo-azul);
  color: var(--vfwoo-bg);
}

.vfwoo-state-pause,
.vfwoo-error-toast {
  background: var(--vfwoo-red);
  color: var(--vfwoo-bg);
}

.vfwoo-state-sandbox {
  background: var(--vfwoo-verde);
  color: var(--vfwoo-bg);
}

.vfwoo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.vfwoo-modal a {
  color: var(--vfwoo-azul);
  background-color: var(--vfwoo-modal-bg);
  padding: 2px 6px;
  boredr-radius: 13px;
}

.vfwoo-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--vfwoo-modal-bg);
}

.vfwoo-modal-content {
  position: relative;
  max-width: 1000px;
  margin: 17% 38%;
  background: var(--vfwoo-white);
  border-radius: 8px;
  padding: 30px;
  min-width: 333px;
}

.vfwoo-modal-content:has(.vfwoo-emisor-manage) {
  max-width: 90vw;
  max-height: 90vh;
  margin: 50px auto;
  overflow-y: auto;
  min-height: 60vh;
  min-width: 800px;
  width: fit-content;
}

.vfwoo-modal-close {
  position: absolute;
  top: 0px;
  right: 10px;
  background-color: transparent !important;
  border: 0px solid #fff !important;
  font-size: 30px;
  cursor: pointer !important;
  padding: 10px !important;
  height: 0px;
  color: var(--vfwoo-azul);
}

.cart .vfwoo-modal-close {
  top: -13px;
}

.vfwoo-modal-close:hover {
  color: var(--vfwoo-verde) !important;
}

div.vfwoo-emisores-wrapper button,
.vfwoo-modal-body button,
button.vfwoo-create-emisor-product,
button.button-azul,
a.button-azul,
.vfwoo-single-wrapper button {
  border-radius: 222px !important;
  background-color: var(--vfwoo-azul) !important;
  border: 1px solid var(--vfwoo-azul) !important;
  color: var(--vfwoo-bg) !important;
  font-weight: 500 !important;
  padding: 5px 15px !important;
  font-size: 16px !important;
  font-family: "Fredoka" !important;
}

button.vfwoo-create-emisor-product {
  font-size: 16px !important;
  padding: 9px 20px !important;
}

.vfwoo-emisores-wrapper button:hover,
.vfwoo-modal-body button:hover,
button.vfwoo-create-emisor-product:hover,
.vfwoo-tab.active,
button.button-azul:hover,
a.button-azul:hover,
.vfwoo-single-wrapper button:hover {
  background-color: var(--vfwoo-bg) !important;
  color: var(--vfwoo-azul) !important;
}

.vfwoo-tab.active {
  pointer-events: none;
  cursor: none;
}

button.button-verde,
a.button-verde {
  border-radius: 222px !important;
  background-color: var(--vfwoo-verde) !important;
  border: 1px solid var(--vfwoo-verde) !important;
  color: var(--vfwoo-bg) !important;
  font-weight: 500 !important;
  padding: 5px 15px !important;
  font-size: 16px !important;
  font-family: "Fredoka" !important;
}

button.button-verde:hover,
a.button-verde:hover {
  background-color: var(--vfwoo-bg) !important;
  border: 1px solid var(--vfwoo-verde) !important;
  color: var(--vfwoo-verde) !important;
}

button.button-red,
a.button-red {
  border-radius: 222px !important;
  background-color: var(--vfwoo-red) !important;
  border: 1px solid var(--vfwoo-red) !important;
  color: var(--vfwoo-bg) !important;
  font-weight: 500 !important;
  padding: 5px 15px !important;
  font-size: 16px !important;
  font-family: "Fredoka" !important;
}

button.button-red:hover,
a.button-red:hover {
  background-color: var(--vfwoo-bg) !important;
  border: 1px solid var(--vfwoo-red) !important;
  color: var(--vfwoo-red) !important;
}

button.button-grey,
a.button-grey {
  border-radius: 222px !important;
  background-color: var(--vfwoo-bg) !important;
  border: 1px solid var(--vfwoo-bg) !important;
  color: var(--vfwoo-azul) !important;
  font-weight: 500 !important;
  padding: 5px 15px !important;
  font-size: 16px !important;
  font-family: "Fredoka" !important;
}

button.button-grey:hover,
a.button-grey:hover {
  background-color: var(--vfwoo-azul) !important;
  border: 1px solid var(--vfwoo-bg) !important;
  color: var(--vfwoo-bg) !important;
}

.button-copy,
a.button-copy {
  cursor: pointer;
  font-size: 12px !important;
  padding: 1px 10px 3px !important;
  text-transform: uppercase;
  background-color: var(--vfwoo-bg) !important;
  border: 2px solid var(--vfwoo-white) !important;
  color: var(--vfwoo-azul) !important;
}

.button-copy:hover,
a.button-copy:hover {
  background-color: var(--vfwoo-azul) !important;
  border: 2px solid var(--vfwoo-azul) !important;
  color: var(--vfwoo-white) !important;
}

.vfwoo-secret-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  background: #f6f5f3;
  border-radius: 22px;
  padding: 0 0px 0 10px;
}

.vfwoo-secret-code {
  font-size: 12px;
  letter-spacing: 0px;
}

.vfwoo-eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vfwoo-text-muted);
  padding: 0 2px;
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}

.vfwoo-eye-btn:hover {
  color: var(--vfwoo-azul);
}

.vfwoo-confirm {
  display: flex;
  gap: 20px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.vfwoo-emisores-list p {
  margin: 15px 0 !important;
  color: var(--vfwoo-text);
  font-family: "Fredoka", sans-serif !important;
}

.vfwoo-confirm p,
.vfwoo-prompt input,
.vfwoo-prompt p {
  margin: 15px !important;
  color: var(--vfwoo-text);
}

.vfwoo-emisor-item {
  width: 90vw;
}

.vfwoo-emisor-manage .vfwoo-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.vfwoo-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vfwoo-emisor-manage .vfwoo-state {
  position: absolute;
  right: 130px;
  top: 25px;
  padding: 5px 29px;
  letter-spacing: 0.5px;
}

.vfwoo-comprar-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-content: flex-start;
  flex-wrap: wrap;
}

.cart {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
}

.vfwoo-product-selector {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

#vfwoo-emisor-select {
  width: 242px;
  background: var(--vfwoo-bg);
  border: none !important;
  color: var(--vfwoo-text);
  font-weight: 500;
  border-radius: 22px;
}

#vfwoo-modal h4 {
  font-weight: 200 !important;
  font-size: 25px !important;
  margin: 5px 0;
}

.vfwoo-e-description {
  font-size: 15px;
  line-height: 14px;
  max-width: 700px;
}

body.vfwoo-single-body {
  margin: 0;
  padding: 20px;
  background: var(--vfwoo-bg, #f6f5f3);
}

.vfwoo-access-denied {
  text-align: center;
  padding: 40px 20px;
}

.vfwoo-access-denied h2 {
  color: var(--vfwoo-red, #d63638);
  margin-bottom: 20px;
}

.vfwoo-login-wrapper {
  max-width: 400px;
  margin: 30px auto;
  background: var(--vfwoo-bg, #f9f9f9);
  padding: 30px;
  border-radius: 8px;
}

#vfwoo-upload-form {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgb(221, 221, 221);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 60px;
  align-items: center;
}

.vfwoo-file-name {
  font-size: 10px;
  display: block;
}

.vfwoo-30_porcien {
  width: 28%;
}

#vfwoo-tipo-persona {
  max-width: 300px;
}

/* === Permisos Grid === */
.vfwoo-permisos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  padding: 20px;
  background: var(--vfwoo-bg);
  border-radius: 20px;
}

.vfwoo-permiso-block {
  width: 46%;
  min-width: 250px;
  background: var(--vfwoo-white);
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 18px;
}

.vfwoo-permiso-block h5,
.vfwoo-permiso-block li {
  font-size: 14px;
}

.vfwoo-permiso-block ul {
  padding-left: 22px;
}

/* === API Switch === */
.vfwoo-api-switch-container {
  margin: 30px 0;
  padding: 20px;
  background: var(--vfwoo-bg);
  border-radius: 8px;
}

.vfwoo-switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.vfwoo-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.vfwoo-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.vfwoo-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.vfwoo-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--vfwoo-white);
  transition: 0.4s;
  border-radius: 50%;
}

.vfwoo-switch input:checked + .vfwoo-slider {
  background-color: var(--vfwoo-verde);
}

.vfwoo-switch input:checked + .vfwoo-slider:before {
  transform: translateX(26px);
}

/* === Emisor Info Card === */
.vfwoo-emisor-info {
  border-radius: 13px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--vfwoo-white);
  width: 100%;
}

.vfwoo-card-emisor-info,
.vfwoo-tab-content#tab-licencia {
  border-radius: 13px;
  padding: 20px;
  background: var(--vfwoo-bg);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.vfwoo-tab-content#tab-licencia {
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: flex-start;
}

.vfwoo-tab-content#tab-licencia p {
  padding: 10px 20px;
  background-color: var(--vfwoo-white);
  border-radius: 8px;
}

.vfwoo-emisor-info p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.vfwoo-emisor-info strong {
  display: inline-block;
  min-width: 120px;
  color: var(--vfwoo-text);
}

.vfwoo-estado-test {
  color: var(--vfwoo-orange);
  font-weight: 600;
}

.vfwoo-estado-prod {
  color: var(--vfwoo-verde);
  font-weight: 600;
}

.vfwoo-api-actions {
  margin-top: 20px;
}

.vfwoo-datos-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 1024px) {
  .vfwoo-permiso-block {
    width: 48%;
  }
}

.vfwoo-doc-viewer {
  padding: 20px 0px 50px;
}

@media (max-width: 768px) {
  #facturas-tbody {
    background: var(--vfwoo-azul-light);
    width: 90vw;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    gap: 10px;
    flex-direction: column;
  }

  .vfwoo-col-numero,
  .vfwoo-col-fecha,
  .vfwoo-col-cliente,
  .vfwoo-col-concepto,
  .vfwoo-col-importe,
  .vfwoo-col-qr,
  .vfwoo-col-estado {
    width: 100%;
    justify-content: left;
  }

  .vf-woo-qr-punto {
    margin-top: -3px;
    display: inline-block;
    margin-left: 10px;
  }

  .vfwoo-col-qr::before {
    display: none;
  }

  .vfwoo-col-qr {
    justify-content: flex-end;
    display: flex;
    margin-top: -60px;
  }

  .vf-woo-qr-link {
    width: 55px;
    height: 55px;
  }

  .vfwoo-datos-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vfwoo-permiso-block {
    width: 100%;
  }

  body.vfwoo-single-body {
    padding: 15px;
  }

  .vfwoo-single-wrapper {
    padding: 10px;
    padding-bottom: 100px;
  }

  .vfwoo-tab-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .vfwoo-doc-viewer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 30px;
  }

  .vfwoo-30_porcien {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
  }

  .vfwoo-modal-content:has(.vfwoo-emisor-manage) {
    max-width: 95vw;
    max-height: 90vh;
    margin: 10px auto;
    min-height: 60vh;
    min-width: 300px;
    width: fit-content;
  }

  #vfwoo-upload-form {
    justify-content: center;
  }

  .vfwoo-comprar-actions {
    align-content: center;
  }

  .vfwoo-emisores-list {
    grid-template-columns: 1fr;
  }

  .vfwoo-emisor-manage h3 {
    font-size: 20px !important;
    text-align: center;
  }

  .vfwoo-emisor-manage .vfwoo-tabs {
    justify-content: center;
    gap: 22px;
    padding-bottom: 20px;
  }

  .vfwoo-emisor-manage .vfwoo-state {
    position: static;
    margin-top: -20px;
  }

  #tab-licencia {
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
  }

  #tab-licencia p,
  #tab-licencia p strong {
    display: block;
    padding-bottom: 10px;
    text-align: center;
    width: 100%;
  }

  .vfwoo-modal-content {
    margin: 0px;
    width: 100%;
  }
}

/* Overlay preloader */
.vfwoo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.vfwoo-overlay.active {
  display: flex;
}

.vfwoo-spinner {
  width: 75px;
  height: 75px;
  background-image: url("../img/logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: vfwoo-spin 1s linear infinite;
}

@keyframes vfwoo-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
.single_add_to_cart_button.vfwoo-btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Product emisor selector ===== */

/* Oculta el botón nativo de WC ya que usamos el propio dentro del selector/display */
.vfwoo-product-selector ~ .single_add_to_cart_button,
.vfwoo-product-selector ~ .wc-block-components-product-add-to-cart button,
.vfwoo-product-emisor-display ~ .single_add_to_cart_button,
.vfwoo-product-emisor-display
  ~ .wc-block-components-product-add-to-cart
  button {
  display: none !important;
}

.vfwoo-product-selector {
  margin-bottom: 16px;
}

.vfwoo-selector-title,
.vfwoo-emisor-info-single {
  font-family: var(--ff-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 12px;
  text-align: center;
}

.vfwoo-selector-row {
  display: flex;
  align-items: center;
  gap: 30px 9px;
  flex-wrap: wrap;
}

.vfwoo-selector-row #vfwoo-emisor-select {
  flex: 1;
  min-width: 160px;
}

.vfwoo-selector-row .btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 17px;
  padding: 7px 36px !important;
  margin-inline-start: auto !important;
  font-weight: 500 !important;
}
.vfwoo-product-emisor-display {
  text-align: center;
}
.vfwoo-product-emisor-display .vfwoo-btn-pagar {
  font-weight: 500 !important;
  padding: 7px 36px !important;
  min-width: 222px !important;
  margin: 0 auto !important;
}
.vfwoo-product-emisor-display .vfwoo-emisor-info-single {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn {
  display: inline-block !important;
  padding: 12px 26px !important;
  border-radius: var(--r-pill) !important;
  font-family: var(--ff-body) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  text-align: center !important;
}
.btn-primary {
  background: var(--c-indigo) !important;
  color: #fff !important;
  border: 2px solid var(--c-indigo) !important;
}
.btn-primary:hover {
  background: #6b7ae0 !important;
  border-color: #6b7ae0 !important;
}
.btn-secondary {
  background: transparent !important;
  color: var(--c-navy) !important;
  border: 2px solid var(--c-navy) !important;
}
.btn-secondary:hover {
  background: var(--c-navy) !important;
  color: #fff !important;
}
.btn-small {
  padding: 8px 18px !important;
  font-size: 13px !important;
}
.btn-ghost {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--c-navy) !important;
  padding: 10px 16px !important;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: var(--c-border) !important;
}
/* === Licencias wrapper === */
.vfwoo-licencias-wrapper {
  max-width: 900px;
}

.vfwoo-licencias-intro {
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--vfwoo-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.vfwoo-licencias-intro p {
  margin: 0;
  font-size: 16px;
  flex: 1;
}

.vfwoo-licencias-wrapper h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--vfwoo-text);
}

.vfwoo-licencias-grid {
  margin-bottom: 8px;
}

/* === Emisores list === */
.vfwoo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vfwoo-qr-small {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  background: var(--vfwoo-white);
  border-radius: 10px;
}

.vfwoo-qr-small.en_emisor {
  width: 90px;
  height: 90px;
  margin-top: 4px;
  padding: 10px;
  background: var(--vfwoo-white);
  border-radius: 11px;
}

.vfwoo-nif {
  font-size: 15px;
}

.vfwoo-days-left {
  font-size: 13px;
}

/* === Tab Adquirir === */
.vfwoo-adquirir-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.vfwoo-emisor-info {
  flex: 1;
}

.vfwoo-info-box {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--vfwoo-azul-bg);
  border-radius: 10px;
}

.vfwoo-info-box p {
  font-size: 13px;
  color: var(--vfwoo-text-muted);
  margin: 0 0 8px;
}

.vfwoo-warning-box {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--vfwoo-orange-bg);
  border-radius: 10px;
}

.vfwoo-warning-box p {
  font-size: 13px;
  color: var(--vfwoo-text-light);
  margin: 0 0 8px;
}

/* === Licencias === */
.vfwoo-licencias-intro-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.vfwoo-licencias-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vfwoo-licencia-card {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}

.vfwoo-licencias-grid .vfwoo-qr {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin: 0;
  padding: 3px;
}

.vfwoo-licencias-grid .vfwoo-qr svg,
.vfwoo-licencias-grid .vfwoo-qr canvas {
  width: 38px !important;
  height: 38px !important;
}

.vfwoo-licencias-grid .vfwoo-licencia-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vfwoo-licencias-grid .vfwoo-licencia-info--row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.vfwoo-licencias-grid .vfwoo-licencia-shop-name {
  display: inline-block;
  font-size: 13px;
  font-family: var(--ff-body);
  background: transparent;
  border-radius: 999px;
  padding: 2px 10px;
  margin: 0;
  word-break: break-word;
}
.vfwoo-licencias-grid .vfwoo-licencia-shop-name a {
  font-weight: bold;
}

.vfwoo-licencias-grid .vfwoo-licencia-code {
  margin: 0;
  align-self: flex-start;
  padding: 0 10px;
}

.vfwoo-licencia-date {
  font-size: 12px;
  color: var(--vfwoo-text-muted);
  margin: 0;
  white-space: nowrap;
}

.vfwoo-licencias-grid .badge-pill.b-rose {
  width: auto;
  margin: 0;
  padding: 2px 10px;
  align-self: flex-start;
}

.vfwoo-licencias-grid .vfwoo-licencia-actions {
  margin: 0;
}

.vfwoo-licencias-grid .vfwoo-compartido-con {
  font-size: 13px;
  margin: 0;
}

.badge-pill.b-rose {
  width: 100%;
  padding: 0 10px;
  font-size: 11px;
  margin-bottom: 20px;
}

.vfwoo-qr {
  width: 111px;
  height: 111px;
  margin: 12px auto;
}

.vfwoo-licencia-code {
  font-size: 11px;
  font-family: monospace;
  word-break: break-all;
  margin: 4px 0 8px;
  background: var(--vfwoo-azul-light);
  text-align: center;
  border-radius: 999px;
}

.vfwoo-licencia-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.vfwoo-compartido-con {
  font-size: 14px;
  color: var(--vfwoo-text-muted);
  margin-top: 10px;
}

.vfwoo-compartido-con ul {
  margin: 4px 0 0;
  padding-left: 16px;
}

/* === Modal Compartir === */
.vfwoo-compartir-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.vfwoo-compartir-qr {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.vfwoo-compartir-code {
  font-size: 0.85em;
  font-family: monospace;
  word-break: break-all;
  margin: 0;
}

.vfwoo-comp-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.vfwoo-comp-row input {
  width: 222px;
  padding: 6px;
}

.vfwoo-comp-row .vfwoo-comp-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vfwoo-text-muted);
  font-size: 16px;
  padding: 0 4px;
}

#vfwoo-compartir-add {
  font-size: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vfwoo-azul);
  padding: 0;
  margin-bottom: 12px;
}

#vfwoo-compartir-enviar {
  margin-top: 4px;
}

.vfwoo-compartir-btn {
  width: 100% !important;
}
#vfwoo-compartir-modal .vfwoo-modal-content {
  min-width: 500px !important;
}

@media screen and (max-width: 760px) {
  #vfwoo-compartir-modal .vfwoo-modal-content {
    min-width: 100% !important;
  }
}
