.pro-form {
  --tpd-active-primary: var(--pro-form-primary, #2563eb);
  --tpd-active-accent: var(--pro-form-accent, #eff6ff);
  --tpd-active-text: #172033;
  --tpd-active-muted: #64748b;
  --tpd-active-line: #d9e1eb;
  max-width: 920px;
  margin: 24px auto;
  color: var(--tpd-active-text);
  font-family: inherit;
}
.pro-form * {
  box-sizing: border-box;
}
.tpd-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.pro-form-element {
  position: relative;
  background: #fff;
  border: 1px solid var(--tpd-active-line);
  border-radius: calc(var(--pro-form-radius) + 4px);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}
.tpd-honeypot,
.tpd-drive-submit-proxy {
  position: absolute !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
}
.pro-form-progress {
  display: flex;
  padding: 20px 24px;
  border-bottom: 1px solid var(--tpd-active-line);
  background: #f8fafc;
  overflow: auto;
}
.tpd-progress-item[hidden] {
  display: none !important;
}
.tpd-progress-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 145px;
  color: var(--tpd-active-muted);
}
.tpd-progress-item:not(:last-child):after {
  content: "";
  height: 2px;
  flex: 1;
  min-width: 28px;
  margin: 0 12px;
  background: #dbe3ed;
}
.tpd-progress-item span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
}
.tpd-progress-item em {
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.tpd-progress-item.is-active span {
  background: var(--tpd-active-primary);
  color: #fff;
  box-shadow: 0 0 0 5px
    color-mix(in srgb, var(--tpd-active-primary) 15%, transparent);
}
.tpd-progress-item.is-active em {
  color: var(--tpd-active-text);
}
.tpd-progress-item.is-complete span {
  background: #10b981;
  color: #fff;
}
.tpd-progress-item.is-complete:not(:last-child):after {
  background: #6ee7b7;
}
.pro-form-messages {
  margin: 0 28px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: 0.2s;
}
.pro-form-messages.is-error,
.pro-form-messages.is-success {
  max-height: 120px;
  opacity: 1;
  margin-top: 20px;
  padding: 11px 13px;
  border-radius: 9px;
}
.pro-form-messages.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.pro-form-messages.is-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.pro-form-step {
  padding: 30px;
}
.pro-form-step[hidden] {
  display: none !important;
}
.pro-form-step.is-active {
  animation: tpdStepIn 0.25s ease-out;
}
.tpd-step-header {
  display: none !important;
}
.tpd-step-kicker {
  margin: 0 0 4px;
  color: var(--tpd-active-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tpd-step-header h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.12;
  color: var(--tpd-active-text);
}
.tpd-step-description {
  margin-top: 10px;
  color: var(--tpd-active-muted);
  font-size: 16px;
}
.pro-form-section {
  padding: 21px;
  margin: 0 0 18px;
  border: 1px solid var(--tpd-active-line);
  border-radius: var(--pro-form-radius);
  background: #fff;
}
.pro-form-section.is-condition-hidden,
.tpd-field.is-condition-hidden {
  display: none !important;
}
.tpd-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.tpd-section-heading h3 {
  margin: 0 0 4px;
  color: var(--tpd-active-text);
  font-size: 20px;
}
.tpd-section-heading div div {
  color: var(--tpd-active-muted);
}
.tpd-fields-grid {
  display: grid;
  grid-template-columns: repeat(var(--tpd-section-columns, 2), minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  align-items: start;
}
.tpd-layout-row + .tpd-layout-row {
  margin-top: 18px;
}
.tpd-field {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  grid-column: span var(--tpd-field-span, 1);
}
.tpd-field-section-header {
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--tpd-active-line);
}
.tpd-field-section-header h3 {
  margin: 0;
  color: var(--tpd-active-text);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.tpd-section-header-content {
  margin-top: 7px;
  color: var(--tpd-active-muted);
  line-height: 1.55;
}
.tpd-section-header-content > :first-child { margin-top: 0; }
.tpd-section-header-content > :last-child { margin-bottom: 0; }
.tpd-field-label {
  display: block;
  margin: 0 0 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}
.tpd-field-label span {
  color: #dc2626;
  margin-left: 3px;
}
.tpd-field input[type="text"],
.tpd-field input[type="email"],
.tpd-field input[type="url"],
.tpd-field input[type="password"],
.tpd-field input[type="search"],
.tpd-field input[type="tel"],
.tpd-field input[type="number"],
.tpd-field input[type="date"],
.tpd-field input[type="time"],
.tpd-field textarea,
.tpd-field select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: calc(var(--pro-form-radius) * 0.72);
  background: #fff;
  color: #172033;
  font: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.tpd-field textarea {
  min-height: 120px;
  resize: vertical;
}
.tpd-field input:focus,
.tpd-field textarea:focus,
.tpd-field select:focus {
  outline: 0;
  border-color: var(--tpd-active-primary);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--tpd-active-primary) 15%, transparent);
}
.tpd-field input.is-invalid,
.tpd-field textarea.is-invalid,
.tpd-field select.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px #fee2e2;
}
.tpd-font-picker {
  position: relative;
}
.tpd-font-search-control {
  position: relative;
}
.tpd-font-search-control input {
  padding-right: 42px !important;
}
.tpd-font-search-control > span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--tpd-active-muted);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-55%);
}
.tpd-font-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 280px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: calc(var(--pro-form-radius) * 0.72);
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}
.tpd-font-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #172033;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tpd-font-option:hover,
.tpd-font-option:focus {
  outline: 0;
  background: var(--tpd-active-accent);
  color: var(--tpd-active-primary);
}
.tpd-font-empty {
  margin: 0;
  padding: 12px;
  color: var(--tpd-active-muted);
  text-align: center;
}
.tpd-field-help {
  margin-top: 6px;
  color: var(--tpd-active-muted);
  font-size: 12px;
}
.tpd-field-error {
  min-height: 0;
  margin-top: 5px;
  color: #b91c1c;
  font-size: 12px;
}
.tpd-field-error:not(:empty) {
  min-height: 17px;
}
.tpd-choice-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tpd-choice {
  position: relative;
}
.tpd-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tpd-choice > .tpd-choice-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: calc(var(--pro-form-radius) * 0.72);
  background: #fff;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}
.tpd-choice input:focus-visible + .tpd-choice-card {
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--tpd-active-primary) 18%, transparent);
}
.tpd-choice input:checked + .tpd-choice-card {
  border-color: var(--tpd-active-primary);
  background: var(--tpd-active-accent);
  color: var(--tpd-active-primary);
  box-shadow: inset 0 0 0 1px var(--tpd-active-primary);
}
.tpd-choice-group:not(.is-image-style) .tpd-choice input[type="checkbox"]:checked + .tpd-choice-card:before {
  content: "✓";
  margin-right: 7px;
  font-weight: 900;
}

.tpd-choice-group.is-image-style {
  display: grid;
  grid-template-columns: repeat(var(--tpd-choice-columns, 3), minmax(0, 1fr));
  gap: 14px;
}
.tpd-choice-group.is-image-style .tpd-choice {
  min-width: 0;
}
.tpd-choice-group.is-image-style .tpd-choice > .tpd-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  text-align: center;
}
.tpd-choice-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}
.tpd-choice-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tpd-choice-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}
.tpd-choice-group.is-image-style .tpd-choice-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
}
.tpd-choice-group.is-image-style .tpd-choice input:checked + .tpd-choice-card:after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--tpd-active-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.25);
}
@media (max-width: 780px) {
  .tpd-choice-group.is-image-style {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .tpd-choice-group.is-image-style {
    grid-template-columns: 1fr;
  }
}

.tpd-color-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid #cbd5e1;
  border-radius: calc(var(--pro-form-radius) * 0.72);
}
.tpd-color-control input[type="color"] {
  width: 46px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
}
.tpd-color-control .tpd-color-hex {
  width: 112px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #475569;
  text-transform: uppercase;
}
.tpd-color-control .tpd-color-hex:focus {
  border-color: var(--tpd-active-primary);
  outline: 2px solid color-mix(in srgb, var(--tpd-active-primary) 20%, transparent);
  outline-offset: 1px;
}
.tpd-secure-input {
  position: relative;
}
.tpd-secure-credential-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tpd-secure-credential-pair > label > span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}
.tpd-secure-input > .dashicons {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #059669;
}
.tpd-secure-input input {
  padding-left: 40px !important;
  border-color: #a7f3d0 !important;
  background: #f7fffb !important;
}
.tpd-secure-note {
  display: block;
  margin-top: 5px;
  color: #047857;
}
@media (max-width: 620px) {
  .tpd-secure-credential-pair {
    grid-template-columns: 1fr;
  }
}
.tpd-external-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 17px;
  border: 2px solid var(--tpd-active-primary);
  border-radius: calc(var(--pro-form-radius) * 0.72);
  color: var(--tpd-active-primary);
  font-weight: 800;
  text-decoration: none;
}
.tpd-external-button:hover {
  background: var(--tpd-active-primary);
  color: #fff;
}
.tpd-field-image {
  margin: 0;
}
.tpd-field-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--pro-form-radius) * 0.72);
}
.tpd-field-image figcaption {
  margin-top: 7px;
  color: var(--tpd-active-muted);
  font-size: 13px;
}
.tpd-drive-upload-module,
.tpd-drive-upload-module > .wpcp-container {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.tpd-add-section-row,
.tpd-add-field-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: var(--tpd-active-accent);
  color: var(--tpd-active-primary);
  font-weight: 750;
  cursor: pointer;
}
.tpd-add-section-row span,
.tpd-add-field-row span {
  font-size: 18px;
}
.tpd-repeat-section-row {
  position: relative;
  padding: 18px;
  margin-bottom: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: calc(var(--pro-form-radius) * 0.8);
  background: #f8fafc;
}
.tpd-remove-section-row {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 19px;
  cursor: pointer;
}
.tpd-repeat-section-rows
  > .tpd-repeat-section-row:only-child
  > .tpd-remove-section-row {
  display: none;
}
.tpd-repeat-field-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.tpd-repeat-field-row input,
.tpd-repeat-field-row textarea {
  flex: 1;
}
.tpd-remove-field-row {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 19px;
  cursor: pointer;
}
.pro-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid var(--tpd-active-line);
}
.tpd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: calc(var(--pro-form-radius) * 0.78);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.tpd-button-primary {
  background: var(--tpd-active-primary);
  color: var(--pro-form-button-text, #fff);
  box-shadow: 0 8px 18px
    color-mix(in srgb, var(--tpd-active-primary) 25%, transparent);
}
.tpd-button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px
    color-mix(in srgb, var(--tpd-active-primary) 32%, transparent);
}
.tpd-button-secondary {
  background: #f1f5f9;
  color: #475569;
}
.tpd-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.tpd-button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tpdSpin 0.75s linear infinite;
}
.tpd-button.is-working .tpd-button-spinner {
  display: block;
}
.pro-form-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 38px;
  color: #065f46;
  background: #f0fdf4;
}
.pro-form-success > span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}
.pro-form-notice {
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.pro-form-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
@keyframes tpdSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes tpdStepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .pro-form-progress {
    padding: 14px 16px;
  }
  .tpd-progress-item {
    min-width: auto;
  }
  .tpd-progress-item em {
    display: none;
  }
  .tpd-progress-item:not(:last-child):after {
    min-width: 22px;
  }
  .pro-form-step {
    padding: 21px 16px;
  }
  .tpd-fields-grid {
    grid-template-columns: 1fr;
  }
  .tpd-field {
    grid-column: 1 !important;
  }
  .pro-form-section {
    padding: 16px;
  }
  .tpd-choice-group {
    display: grid;
    grid-template-columns: 1fr;
  }
  .tpd-choice > .tpd-choice-card {
    width: 100%;
  }
  .pro-form-actions {
    justify-content: stretch;
  }
  .tpd-button {
    flex: 1;
  }
  .tpd-step-header h2 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pro-form * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}


.tpd-profile-photo-control{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px;border:1px solid rgba(15,23,42,.12);border-radius:14px;background:rgba(248,250,252,.75)}
.tpd-profile-photo-preview{width:76px;height:76px;min-width:76px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e9edf5;color:#6b7280}.tpd-profile-photo-preview .dashicons{font-size:34px;width:34px;height:34px}.tpd-profile-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}.tpd-profile-photo-button{position:relative;display:inline-flex!important;align-items:center;justify-content:center;padding:10px 15px;border-radius:10px;background:var(--tpd-primary,#2563eb);color:var(--tpd-button-text,#fff);font-weight:700;cursor:pointer}.tpd-profile-photo-button input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none}.tpd-profile-photo-control small{flex-basis:100%;color:#64748b;line-height:1.45}


/* 1–5 range field */
.tpd-range-control{display:grid;grid-template-columns:auto minmax(180px,1fr);column-gap:18px;row-gap:6px;align-items:center;padding:14px 16px;border:1px solid rgba(15,23,42,.10);border-radius:14px;background:rgba(248,250,252,.72)}
.tpd-range-value{grid-row:1 / span 2;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:58px;min-height:58px;border-radius:12px;background:var(--tpd-primary,#2563eb);color:var(--tpd-button-text,#fff);font-weight:800;line-height:1}
.tpd-range-value span{font-size:26px}.tpd-range-value small{margin-top:4px;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;opacity:.82}
.tpd-range-input{width:100%!important;height:24px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;accent-color:var(--tpd-primary,#2563eb);cursor:pointer}
.tpd-range-labels{display:flex;justify-content:space-between;padding:0 2px;color:#64748b;font-size:12px;font-weight:700}
@media(max-width:600px){.tpd-range-control{grid-template-columns:52px minmax(0,1fr);column-gap:12px;padding:12px}.tpd-range-value{min-width:52px;min-height:52px}.tpd-range-value span{font-size:23px}}

/* WooCommerce product quantity field */
.tpd-product-quantity-field{display:flex;align-items:center;gap:16px;max-width:100%;flex-wrap:wrap}
.tpd-product-quantity-image-wrap{display:flex;align-items:center;justify-content:center;flex:0 1 150px;width:auto;max-width:150px;min-width:72px;max-height:120px;padding:0;background:transparent;overflow:visible}
.tpd-product-quantity-image-wrap .tpd-product-quantity-image{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:120px!important;margin:0!important;border:0!important;border-radius:0!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;clip-path:none!important;box-shadow:none!important}
.tpd-product-quantity-control{display:inline-grid;grid-template-columns:46px minmax(72px,110px) 46px;align-items:stretch;border:1px solid #cbd5e1;border-radius:calc(var(--pro-form-radius) * .72);overflow:hidden;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.tpd-product-quantity-control .tpd-product-quantity-input{width:100%!important;min-height:46px!important;margin:0!important;padding:8px!important;border:0!important;border-left:1px solid #e2e8f0!important;border-right:1px solid #e2e8f0!important;border-radius:0!important;text-align:center;font-weight:750;box-shadow:none!important;-moz-appearance:textfield}
.tpd-product-quantity-input::-webkit-inner-spin-button,.tpd-product-quantity-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.tpd-quantity-change{display:grid;place-items:center;min-width:46px;min-height:46px;margin:0;padding:0;border:0;background:#f8fafc;color:#172033;font-size:23px;font-weight:700;line-height:1;cursor:pointer}
.tpd-quantity-change:hover,.tpd-quantity-change:focus-visible{background:var(--tpd-primary,#2563eb);color:var(--tpd-button-text,#fff);outline:0}
.tpd-quantity-change:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){.tpd-product-quantity-field{gap:12px}.tpd-product-quantity-image-wrap{flex-basis:120px;max-width:120px;max-height:96px}.tpd-product-quantity-image-wrap .tpd-product-quantity-image{max-height:96px!important}}
.tpd-cart-warning{margin-top:10px;padding:10px 12px;border:1px solid #f59e0b;border-radius:10px;background:#fffbeb;color:#92400e;font-size:14px;font-weight:650}

/* Native file uploads */
.tpd-native-drive-upload{width:100%}
.tpd-drive-account-destination{display:flex;flex-direction:column;gap:4px;margin-bottom:14px;padding:14px 16px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc;color:#172033}
.tpd-drive-account-destination>strong{font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
.tpd-drive-account-destination>span{font-weight:800}
.tpd-drive-account-destination>small{color:#64748b;line-height:1.45}
.tpd-drive-popup-open{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:0;border-radius:10px;background:var(--tpd-drive-button-bg,var(--pro-form-primary,#2563eb));color:var(--tpd-drive-button-text,#fff);font-weight:800;cursor:pointer}
.tpd-drive-popup-overlay{position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:22px;background:rgba(15,23,42,.68);overflow:auto}
.tpd-drive-popup-overlay[hidden]{display:none!important}
.tpd-drive-popup-dialog{position:relative;width:min(760px,100%);max-height:calc(100vh - 44px);padding:24px;border-radius:18px;background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.34);overflow:auto}
.tpd-drive-popup-close{position:absolute;z-index:2;top:12px;right:12px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#eef2f7;color:#334155;font-size:25px;line-height:1;cursor:pointer}
.tpd-drive-popup-close:hover,.tpd-drive-popup-close:focus-visible{background:#e2e8f0;outline:2px solid var(--pro-form-primary,#2563eb)}
.tpd-drive-popup-heading{padding:0 45px 16px 0;font-size:1.2rem}
html.tpd-drive-popup-is-open,html.tpd-drive-completion-is-open{overflow:hidden}
.tpd-drive-destination-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
.tpd-drive-destination-fields label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#172033}
.tpd-drive-destination-fields input,.tpd-drive-subfolder-row input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#172033;box-sizing:border-box}
.tpd-drive-destination-fields input:focus,.tpd-drive-subfolder-row input:focus{border-color:var(--pro-form-primary,#2563eb);outline:2px solid color-mix(in srgb,var(--pro-form-primary,#2563eb) 20%,transparent);outline-offset:1px}
.tpd-drive-destination-fields input[readonly],.tpd-drive-subfolder-row input[readonly]{background:#f8fafc;color:#64748b}
.tpd-drive-subfolder-builder{margin:0 0 14px;padding:14px;border:1px solid #dfe3e8;border-radius:12px;background:#fafbfc}
.tpd-drive-subfolder-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.tpd-drive-add-subfolder{padding:7px 11px;border:1px solid #cbd5e1;border-radius:8px;background:var(--tpd-drive-secondary-bg,#fff);color:var(--tpd-drive-secondary-text,#172033);font-weight:700;cursor:pointer}
.tpd-drive-subfolder-list{display:flex;flex-direction:column;gap:8px}
.tpd-drive-subfolder-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:8px}
.tpd-drive-subfolder-remove{display:grid;place-items:center;border:0;border-radius:8px;background:#eef2f7;color:#475569;font-size:22px;cursor:pointer}
.tpd-drive-subfolder-builder>small{display:block;margin-top:8px;color:#64748b}
.tpd-drive-dropzone{position:relative;display:flex;align-items:center;justify-content:center;min-height:150px;padding:24px;border:2px dashed #c7ccd4;border-radius:var(--pro-form-radius,12px);background:#fafbfc;text-align:center;transition:border-color .18s ease,background .18s ease,transform .18s ease;cursor:pointer}
.tpd-drive-dropzone:hover,.tpd-drive-dropzone.is-dragging{border-color:var(--pro-form-primary,#2563eb);background:#f4f7ff}
.tpd-drive-dropzone.is-dragging{transform:scale(1.005)}
.tpd-drive-file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.tpd-drive-dropzone>div{display:flex;flex-direction:column;gap:5px;pointer-events:none}
.tpd-drive-dropzone strong{font-size:1rem}
.tpd-drive-dropzone span{font-size:.95rem}
.tpd-drive-dropzone small{opacity:.72}
.tpd-drive-preview-panel{margin-top:10px;border:1px solid #dfe3e8;border-radius:10px;background:#fafbfc;overflow:hidden}
.tpd-drive-preview-panel[hidden]{display:none!important}
.tpd-drive-preview-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto 22px;align-items:center;gap:8px;width:100%;padding:9px 11px;border:0;background:#f8fafc;color:#172033;text-align:left;font:inherit;font-weight:750;cursor:pointer}
.tpd-drive-preview-toggle:hover,.tpd-drive-preview-toggle:focus-visible{background:#f1f5f9;outline:0}
.tpd-drive-preview-count{color:#64748b;font-size:.72rem;font-weight:700}
.tpd-drive-preview-chevron{font-size:18px;line-height:1;text-align:center;transition:transform .18s ease}
.tpd-drive-preview-panel.is-collapsed .tpd-drive-preview-chevron{transform:rotate(180deg)}
.tpd-drive-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:7px;padding:8px;border-top:1px solid #e5e7eb}
.tpd-drive-previews[hidden]{display:none!important}
.tpd-drive-preview-card{position:relative;display:flex;align-items:center;gap:7px;min-width:0;padding:7px;border:1px solid #dfe3e8;border-radius:8px;background:#fff}
.tpd-drive-preview-card.is-uploading{opacity:.7}
.tpd-drive-preview-visual{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:6px;overflow:hidden;background:#f0f2f5}
.tpd-drive-preview-visual img{width:100%;height:100%;object-fit:cover}
.tpd-drive-preview-visual .dashicons{width:auto;height:auto;font-size:21px}
.tpd-drive-preview-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;font-size:.82rem}
.tpd-drive-preview-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;line-height:1.2}
.tpd-drive-preview-info small{opacity:.7;font-size:.72rem;line-height:1.15}
.tpd-drive-card-progress,.tpd-drive-progress-track{height:6px;overflow:hidden;border-radius:999px;background:#e5e7eb}
.tpd-drive-card-progress span,.tpd-drive-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:var(--pro-form-primary,#2563eb);transition:width .16s ease}
.tpd-drive-overall-progress{margin-top:14px;padding:12px 14px;border:1px solid #dfe3e8;border-radius:12px;background:#fff}
.tpd-drive-overall-progress[hidden],.tpd-drive-complete-actions[hidden]{display:none!important}
.tpd-drive-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px;color:#334155;font-size:.9rem}
.tpd-drive-complete-actions{position:fixed;z-index:1000001;inset:0;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.7)}
.tpd-drive-complete-dialog{width:min(430px,100%);padding:28px;border-radius:18px;background:#fff;color:#172033;text-align:center;box-shadow:0 24px 80px rgba(15,23,42,.38)}
.tpd-drive-complete-check{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 13px;border-radius:50%;background:color-mix(in srgb,var(--pro-form-primary,#2563eb) 13%,#fff);color:var(--pro-form-primary,#2563eb);font-size:28px;font-weight:900}
.tpd-drive-complete-dialog h3{margin:0 0 8px;font-size:1.25rem}
.tpd-drive-complete-dialog p{margin:0 0 11px;line-height:1.5}
.tpd-drive-notification-status{display:block;margin:0 0 14px;color:#475569;font-weight:700}
.tpd-drive-complete-buttons{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}
.tpd-drive-continue,.tpd-drive-reset,.tpd-drive-done,.tpd-drive-upload-trigger{padding:10px 15px;border:0;border-radius:9px;background:var(--tpd-drive-button-bg,var(--pro-form-primary,#2563eb));color:var(--tpd-drive-button-text,#fff);font-weight:750;cursor:pointer}
.tpd-drive-reset{border:1px solid #cbd5e1;background:var(--tpd-drive-secondary-bg,#fff);color:var(--tpd-drive-secondary-text,#172033)}
.tpd-drive-continue:disabled,.tpd-drive-reset:disabled,.tpd-drive-done:disabled,.tpd-drive-upload-trigger:disabled,.tpd-drive-add-subfolder:disabled,.tpd-drive-subfolder-remove:disabled{opacity:.55;cursor:not-allowed}
.tpd-drive-remove{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;font-size:19px;line-height:1;cursor:pointer}
.tpd-drive-remove:hover{background:#f1f2f4}
.tpd-drive-error:not(:empty){margin-top:8px}
.tpd-drive-file-icon{font-size:.68rem;font-weight:700;letter-spacing:.08em;opacity:.65}

.tpd-drive-upload-trigger{margin-top:12px}
@media(max-width:600px){.tpd-drive-destination-fields{grid-template-columns:1fr}.tpd-drive-complete-buttons{display:grid;grid-template-columns:1fr}.tpd-drive-continue,.tpd-drive-reset,.tpd-drive-done{width:100%}.tpd-drive-complete-actions{padding:12px}.tpd-drive-complete-dialog{padding:24px 18px;border-radius:15px}.tpd-drive-popup-overlay{padding:10px}.tpd-drive-popup-dialog{max-height:calc(100vh - 20px);padding:20px 16px;border-radius:14px}}

/* WooCommerce product checkbox field */
.tpd-product-checkbox-choice{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:calc(var(--pro-form-radius) * .72);background:#fff;cursor:pointer;box-sizing:border-box}
.tpd-product-checkbox-choice input[type="checkbox"]{width:20px!important;height:20px!important;min-width:20px;margin:0!important;accent-color:var(--pro-form-primary);cursor:pointer}
.tpd-product-checkbox-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.tpd-product-checkbox-copy strong{font-size:14px;line-height:1.3;color:#0f172a}
.tpd-product-checkbox-copy small{font-size:12px;line-height:1.35;color:#64748b}
