.woocommerce_page_wc-etiquetas-sku #wpcontent,
.woocommerce_page_wc-etiquetas-sku #wpbody-content {
  background: #070b13;
}

.wc-etiquetas-wrap {
  max-width: 1240px;
  color: #e5e7eb;
}

.wc-etiquetas-wrap h1 {
  color: #f9fafb;
}

.wc-etiquetas-shortcode {
  max-width: none;
  background: #070b13;
  padding: 24px;
  border-radius: 8px;
}

.wc-etiquetas-shortcode-message {
  padding: 12px 14px;
  border: 1px solid #be123c;
  border-radius: 8px;
  background: #3f1117;
  color: #fecdd3;
}

.wc-etiquetas-shortcode-message p {
  margin: 0;
}

.wc-etiquetas-app {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.wc-etiquetas-panel {
  background: #111827;
  border: 1px solid #263244;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.wc-etiquetas-panel h2 {
  margin-top: 0;
  font-size: 20px;
  color: #f9fafb;
}

.wc-field-group {
  margin-bottom: 16px;
}

.wc-field-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #d1d5db;
}

#wcSkuSearch,
#wcCustomerSearch,
#wcPackageCount,
#wcClientDescription,
#wcLabelSize {
  width: 100%;
  max-width: 100%;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  background: #0b1220;
  color: #f9fafb;
}

.wc-label-size-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.wc-label-size-sticky {
  position: sticky;
  top: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: #0b1220;
  border: 1px solid #263244;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.wc-label-size-title {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.wc-label-size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wc-size-btn {
  min-width: 72px !important;
  border-radius: 6px !important;
  border-color: #475569 !important;
  background: #111827 !important;
  color: #f9fafb !important;
  font-weight: 900 !important;
}

.wc-size-btn.is-active {
  border-color: #22c55e !important;
  background: #14532d !important;
  color: #dcfce7 !important;
}

#wcSkuSearch::placeholder,
#wcCustomerSearch::placeholder,
#wcClientDescription::placeholder {
  color: #6b7280;
}

#wcSkuSearch:focus,
#wcCustomerSearch:focus,
#wcPackageCount:focus,
#wcClientDescription:focus,
#wcLabelSize:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.wc-client-label-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #263244;
}

.wc-client-label-box h3 {
  margin: 0 0 14px;
  color: #f9fafb;
  font-size: 18px;
}

.wc-client-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.wc-buttons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.wc-buttons .button {
  border-radius: 6px;
  border-color: #475569;
  background: #1f2937;
  color: #f9fafb;
}

.wc-buttons .button:hover,
.wc-buttons .button:focus {
  border-color: #38bdf8;
  background: #273449;
  color: #ffffff;
}

.wc-buttons .button-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.wc-buttons .button-primary:hover,
.wc-buttons .button-primary:focus {
  background: #0d9488;
  border-color: #0d9488;
}

.wc-print-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

.wc-print-btn:hover,
.wc-print-btn:focus {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
}

.wc-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #062e2a;
  border: 1px solid #0f766e;
  color: #99f6e4;
  font-size: 13px;
  display: none;
  line-height: 1.4;
}

.wc-status.show {
  display: block;
}

.wc-status.error {
  background: #3f1117;
  border-color: #be123c;
  color: #fecdd3;
}

.wc-status.warn {
  background: #3b2a08;
  border-color: #b45309;
  color: #fde68a;
}

.wc-suggestions {
  margin-top: 8px;
  border: 1px solid #374151;
  border-radius: 8px;
  overflow: hidden;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  background: #0b1220;
}

.wc-suggestions.show {
  display: block;
}

.wc-suggestion-item {
  padding: 10px 12px;
  border-bottom: 1px solid #263244;
  cursor: pointer;
  font-size: 14px;
}

.wc-suggestion-item:hover {
  background: #172033;
}

.wc-suggestion-item:last-child {
  border-bottom: none;
}

.wc-suggestion-sku {
  font-weight: 800;
  color: #f9fafb;
}

.wc-suggestion-name {
  color: #cbd5e1;
  margin-top: 2px;
}

.wc-suggestion-meta {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 3px;
}

.wc-option-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: #0b1220;
  border: 1px solid #263244;
  border-radius: 8px;
}

.wc-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  color: #e5e7eb;
}

.wc-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.wc-option-box p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #a7b0c0;
  line-height: 1.4;
}

.wc-note {
  font-size: 13px;
  color: #a7b0c0;
  margin-top: 12px;
  line-height: 1.45;
}

.wc-parsed-data {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #0b1220;
  border: 1px solid #263244;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wc-parsed-data strong {
  color: #f9fafb;
}

.wc-inventory-data {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #263244;
}

.wc-product-info {
  display: grid;
  gap: 9px;
}

.wc-product-info-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.wc-product-info-row span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.wc-product-info-row strong {
  color: #f9fafb;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.wc-product-info-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.wc-product-info-location {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
}

.wc-location-edit-btn {
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border-color: #38bdf8 !important;
  background: #082f49 !important;
  color: #e0f2fe !important;
  font-weight: 800 !important;
}

.wc-location-edit-btn:hover,
.wc-location-edit-btn:focus {
  background: #075985 !important;
  color: #ffffff !important;
}

.wc-inv-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  place-items: center;
}

.wc-inv-modal.show {
  display: grid;
}

.wc-inv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  animation: wcInvBackdropIn 120ms ease-out both;
}

.wc-inv-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0b1220;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform-origin: center center;
  animation: wcInvModalIn 145ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wc-inv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #263244;
}

.wc-inv-modal-header h2 {
  margin: 0;
  color: #f9fafb;
  font-size: 18px;
}

.wc-inv-modal-sku {
  margin-top: 3px;
  color: #a7b0c0;
  font-size: 13px;
}

.wc-inv-modal-sku strong {
  color: #f9fafb;
}

.wc-inv-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #475569;
  border-radius: 6px;
  background: #111827;
  color: #f9fafb;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.wc-inv-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 16px;
  border-bottom: 1px solid #263244;
  background: #111827;
}

#wcInventoryModalStatus {
  color: #cbd5e1;
  font-size: 13px;
}

#wcInventoryIframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #ffffff;
}

@keyframes wcInvModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wcInvBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.wc-preview-mode {
  margin-bottom: 12px;
  font-size: 13px;
  color: #cbd5e1;
  text-align: center;
  font-weight: 700;
}

.wc-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 290px;
  background: #0b1220;
  border: 1px dashed #475569;
  border-radius: 8px;
  padding: 20px;
  overflow: auto;
}

.wc-print-log {
  margin-top: 14px;
  border: 1px solid #263244;
  border-radius: 8px;
  background: #0b1220;
  overflow: hidden;
}

.wc-print-log summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #f9fafb;
  font-weight: 900;
}

.wc-print-log-toolbar {
  padding: 0 14px 12px;
}

.wc-print-log-toolbar .button {
  border-radius: 6px;
  border-color: #475569;
  background: #111827;
  color: #f9fafb;
}

.wc-print-log-body {
  max-height: 280px;
  overflow: auto;
  border-top: 1px solid #263244;
  padding: 12px 14px;
}

.wc-print-log-empty {
  color: #94a3b8;
  font-size: 13px;
}

.wc-print-log-entry {
  padding: 10px 0;
  border-bottom: 1px solid #263244;
}

.wc-print-log-entry:last-child {
  border-bottom: none;
}

.wc-print-log-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d1d5db;
  font-size: 12px;
  font-weight: 800;
}

.wc-print-log-entry-head span {
  color: #94a3b8;
  white-space: nowrap;
}

.wc-print-log-entry pre {
  margin: 8px 0 0;
  padding: 10px;
  max-height: 160px;
  overflow: auto;
  border-radius: 6px;
  background: #020617;
  color: #c4b5fd;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.wc-label-4x2 {
  width: 4in;
  height: 2in;
  background: #ffffff;
  border: 1px solid #111827;
  color: #000000;
  padding: 0.10in 0.14in;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.wc-label-4x2 *,
.wc-label-2x1 *,
.wc-client-label * {
  color: #000000 !important;
}

.wc-label-size-2x1 {
  width: 2in;
  height: 1in;
}

.wc-label-size-3x3 {
  width: 3in;
  height: 3in;
}

.wc-label-size-4x2 {
  width: 4in;
  height: 2in;
}

.wc-label-size-6x4 {
  width: 6in;
  height: 4in;
}

.wc-label-2x1 {
  width: 2in;
  height: 1in;
  background: #ffffff;
  border: 1px solid #111827;
  color: #000000;
  padding: 0.04in 0.07in;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.wc-product-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  min-height: 0.42in;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #000000;
}

.wc-info-row {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
  color: #000000;
}

.wc-barcode-box {
  text-align: center;
}

.wc-label-4x2 .wc-barcode-svg {
  width: 100%;
  max-height: 0.78in;
}

.wc-label-4x2 .wc-barcode-text {
  font-size: 10px;
  font-weight: 700;
  margin-top: -3px;
  letter-spacing: 0.5px;
  color: #000000;
}

.wc-sku-only-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  color: #000000;
}

.wc-label-2x1 .wc-barcode-svg {
  width: 100%;
  max-height: 0.44in;
}

.wc-label-2x1 .wc-barcode-text {
  font-size: 9px;
  font-weight: 900;
  margin-top: -1px;
  letter-spacing: 0;
  text-align: center;
  color: #000000;
}

.wc-label-size-2x1 .wc-product-name,
.wc-label-size-2x1 .wc-sku-only-title {
  font-size: 11px;
  white-space: normal;
}

.wc-label-size-2x1 .wc-info-row {
  flex-direction: column;
  gap: 2px;
  font-size: 8px;
  white-space: normal;
  text-align: center;
}

.wc-label-size-2x1.wc-client-label {
  padding: 0.06in 0.08in;
  gap: 0.04in;
}

.wc-label-size-2x1 .wc-client-label-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
}

.wc-label-size-2x1 .wc-client-label strong {
  font-size: 18px;
}

.wc-client-label {
  width: 4in;
  height: 2in;
  background: #ffffff;
  border: 1px solid #111827;
  color: #000000;
  padding: 0.14in;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12in;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
}

.wc-client-label.wc-label-size-2x1 {
  width: 2in;
  height: 1in;
}

.wc-client-label.wc-label-size-3x3 {
  width: 3in;
  height: 3in;
}

.wc-client-label.wc-label-size-4x2 {
  width: 4in;
  height: 2in;
}

.wc-client-label.wc-label-size-6x4 {
  width: 6in;
  height: 4in;
}

.wc-client-label-title {
  font-size: clamp(11px, 0.18in, 18px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.wc-client-label-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr);
  gap: 0.08in;
  align-items: stretch;
}

.wc-client-label-main div {
  border: 1px solid #000000;
  padding: 0.08in;
  min-width: 0;
}

.wc-client-label span {
  display: block;
  font-size: clamp(8px, 0.11in, 12px);
  font-weight: 900;
  line-height: 1;
}

.wc-client-label strong {
  display: block;
  margin-top: 0.04in;
  font-size: clamp(16px, 0.32in, 42px);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.wc-client-label-date {
  font-size: clamp(9px, 0.13in, 16px);
  font-weight: 800;
  line-height: 1.15;
}

.wc-client-label-description {
  border-top: 1px solid #000000;
  padding-top: 0.06in;
  font-size: clamp(9px, 0.12in, 14px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wc-label-size-6x4 {
  padding: 0.22in 0.28in;
}

.wc-label-size-6x4 .wc-product-name {
  font-size: 24px;
  min-height: 0.78in;
}

.wc-label-size-6x4 .wc-info-row {
  font-size: 18px;
}

.wc-label-size-6x4 .wc-barcode-svg {
  max-height: 1.6in;
}

.wc-label-size-6x4 .wc-barcode-text {
  font-size: 18px;
  margin-top: 0;
}

.wc-label-size-6x4.wc-client-label {
  gap: 0.24in;
  padding: 0.28in 0.36in;
}

.wc-label-size-6x4 .wc-client-label-title {
  font-size: 30px;
}

.wc-label-size-6x4 .wc-client-label-main {
  gap: 0.18in;
}

.wc-label-size-6x4 .wc-client-label-main div {
  padding: 0.18in;
  border-width: 2px;
}

.wc-label-size-6x4 .wc-client-label span {
  font-size: 18px;
}

.wc-label-size-6x4 .wc-client-label strong {
  font-size: 72px;
}

.wc-label-size-6x4 .wc-client-label-date {
  font-size: 24px;
}

.wc-label-size-6x4 .wc-client-label-description {
  font-size: 22px;
  border-top-width: 2px;
  padding-top: 0.12in;
}

@media (max-width: 960px) {
  .wc-etiquetas-app {
    grid-template-columns: 1fr;
  }

  .wc-label-size-sticky {
    top: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .wc-product-info-split {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .wc-client-grid {
    grid-template-columns: 1fr;
  }

  .wc-product-info-location {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .wc-location-edit-btn {
    grid-column: 2;
    justify-self: start;
  }

  .wc-inv-modal-dialog {
    width: min(520px, calc(100vw - 20px));
    height: min(720px, calc(100vh - 20px));
    max-height: calc(100vh - 20px);
  }
}
