/* === Preview Wrapper === */
#pj-ip-wrapper {
  margin: 10px 0;
  clear: both;
}

.pj-ip-label {
  color: var(--awb-color8, #747474);
  white-space: nowrap;
}

.pj-ip-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pj-ip-initials.pj-ip-input {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  height: 36px !important;
  text-align: center !important;
  text-transform: uppercase !important;
  font-family: 'Karla', Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  border: 1px solid #ccc !important;
  background: #fcfcfc !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  caret-color: #333 !important;
}

#pj-ip-initials.pj-ip-input::placeholder {
  color: #ccc !important;
  letter-spacing: 3px !important;
}

#pj-ip-initials.pj-ip-input:focus {
  border-color: #81d8d0 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(129, 216, 208, 0.3) !important;
}

/* === Preview Button — estilo botones blancos de la web === */
.pj-ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  background: #fff;
  color: var(--awb-color6);
  border: 1px solid var(--awb-color4);
  border-radius: 0;
  font-family: 'Karla', Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.pj-ip-btn:hover:not(:disabled) {
  background: #81d8d0;
  color: var(--awb-color8);
  border-color: #81d8d0;
}

.pj-ip-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* === Modal === */
.pj-ip-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pj-ip-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.pj-ip-modal-content {
  position: relative;
  background: #fff;
  border-radius: 0;
  padding: 24px;
  max-width: 560px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* === Close Button === */
.pj-ip-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #81d8d0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 0;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
  z-index: 10;
  padding: 0;
}

.pj-ip-modal-close:hover {
  background: #6cc8c0;
}

/* === Spinner === */
.pj-ip-spinner {
  padding: 40px 0 20px;
}

.pj-ip-spinner p {
  margin-top: 16px;
  color: var(--awb-color8, #747474);
  font-size: inherit;
  font-family: inherit;
}

.pj-ip-spinner .pj-ip-hint {
  margin-top: 8px;
  color: var(--awb-color8, #747474);
  font-size: 12px;
  font-style: italic;
}

/* === Progress Bar === */
.pj-ip-progress-wrap {
  margin: 20px auto 0;
  width: 80%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 0;
  overflow: hidden;
}

.pj-ip-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #81d8d0, #d2a76d);
  border-radius: 0;
  transition: width 0.5s ease;
}

/* === Result Image === */
#pj-ip-result {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

/* === Disclaimer === */
.pj-ip-disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: var(--awb-color8, #747474);
  font-style: italic;
  font-family: inherit;
}

/* === Error === */
.pj-ip-error {
  color: #c0392b;
  font-size: 14px;
  font-family: inherit;
  padding: 20px 0;
}

/* === Mobile === */
@media (max-width: 480px) {
  .pj-ip-modal-content {
    width: 95vw;
    padding: 16px;
  }

  .pj-ip-btn {
    font-size: 11px;
    padding: 0 12px;
  }
}
