.tdcc-root {
  --tdcc-navy: #0f3a66;
  --tdcc-navy-dark: #081a2d;
  --tdcc-gold: #d6a344;
  --tdcc-ink: #111827;
  --tdcc-muted: #64748b;
  --tdcc-line: #dbe4ee;
  --tdcc-soft: #f6f8fb;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 20px 0;
  color: var(--tdcc-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tdcc-root,
.tdcc-root * {
  box-sizing: border-box;
}

.tdcc-launch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  width: 100%;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--tdcc-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #f7faff 100%);
  box-shadow: 0 12px 30px rgba(15, 58, 102, .09);
}

.tdcc-launch-copy {
  min-width: 0;
}

.tdcc-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--tdcc-navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tdcc-launch-card h3 {
  margin: 0;
  color: var(--tdcc-ink);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.15;
}

.tdcc-launch-card p {
  margin: 7px 0 0;
  color: var(--tdcc-muted);
  line-height: 1.45;
}

.tdcc-open {
  align-self: center;
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--tdcc-gold);
  color: #111827;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(214, 163, 68, .28);
}

.tdcc-inline-price {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--tdcc-line);
  color: var(--tdcc-navy);
  font-size: 14px;
  font-weight: 800;
}

.tdcc-current-variation {
  display: inline-flex;
  max-width: 100%;
  margin-top: 10px;
  padding: 7px 10px;
  overflow-wrap: anywhere;
  border: 1px solid #cbd9e8;
  border-radius: 999px;
  background: #eef5fc;
  color: #24445f;
  font-size: 12px;
  font-weight: 800;
}

.tdcc-current-variation[hidden] {
  display: none;
}

.tdcc-modal {
  position: fixed !important;
  z-index: 2147483000 !important;
  inset: 0 !important;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 20px;
  background: rgba(4, 12, 24, .68);
  backdrop-filter: blur(7px);
}

.tdcc-modal.is-open {
  display: flex;
}

.tdcc-dialog {
  width: min(1180px, 100%);
  max-width: 1180px;
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .4);
  overscroll-behavior: contain;
}

.tdcc-modal-head {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--tdcc-navy-dark), var(--tdcc-navy));
  color: #fff;
}

.tdcc-modal-head span,
.tdcc-modal-head strong {
  display: block;
}

.tdcc-modal-head span {
  margin-bottom: 2px;
  color: #d5e6f7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tdcc-modal-head strong {
  font-size: 20px;
}

.tdcc-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.tdcc-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 18px;
}

.tdcc-form {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.tdcc-card,
.tdcc-summary-panel {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--tdcc-line);
  border-radius: 18px;
  background: #fff;
}

.tdcc-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.tdcc-step > span {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tdcc-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.tdcc-step h4 {
  margin: 0;
  color: var(--tdcc-ink);
  font-size: 18px;
  line-height: 1.25;
}

.tdcc-step p {
  margin: 4px 0 0;
  color: var(--tdcc-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tdcc-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.tdcc-field label,
.tdcc-upload > label {
  color: #243449;
  font-size: 13px;
  font-weight: 850;
}

.tdcc-field input,
.tdcc-field select,
.tdcc-field textarea,
.tdcc-upload input[type="file"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #cfd9e5;
  border-radius: 12px;
  background: #fff;
  color: var(--tdcc-ink);
  font: inherit;
  line-height: 1.3;
}

.tdcc-field textarea {
  min-height: 94px;
  resize: vertical;
}

.tdcc-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tdcc-product-details,
.tdcc-info,
.tdcc-variation-preview {
  margin-top: 2px;
  padding: 13px;
  border: 1px solid #d6e2ef;
  border-radius: 13px;
  background: #f7faff;
  color: #405166;
  font-size: 13px;
  line-height: 1.45;
}

.tdcc-product-details strong,
.tdcc-info strong {
  display: block;
  margin-bottom: 5px;
  color: #203247;
}

.tdcc-product-details ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.tdcc-product-details li {
  margin: 3px 0;
}

.tdcc-variation-block[hidden] {
  display: none;
}

.tdcc-variation-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e4cf9c;
  border-radius: 14px;
  background: #fffaf0;
}

.tdcc-variation-preview {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  background: #fff;
}

.tdcc-variation-preview.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.tdcc-variation-preview img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.tdcc-variation-preview strong,
.tdcc-variation-preview span {
  display: block;
  overflow-wrap: anywhere;
}

.tdcc-variation-preview span {
  margin-top: 3px;
  color: var(--tdcc-muted);
  font-size: 12px;
}

.tdcc-palette-preview {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 13px;
  padding: 14px;
  border: 1px solid var(--tdcc-line);
  border-radius: 14px;
  background: var(--tdcc-soft);
}

.tdcc-palette-preview strong {
  display: block;
  color: #1f3349;
}

.tdcc-palette-preview p {
  margin: 4px 0 0;
  color: var(--tdcc-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tdcc-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 68px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .14);
}

.tdcc-swatches i {
  display: block;
  min-width: 0;
}

.tdcc-upload {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px dashed #a9bbce;
  border-radius: 14px;
  background: #fafcff;
}

.tdcc-upload span {
  color: var(--tdcc-navy);
  font-size: 13px;
  font-weight: 800;
}

.tdcc-upload small {
  color: var(--tdcc-muted);
  line-height: 1.4;
}

.tdcc-quantity {
  display: grid;
  grid-template-columns: 48px minmax(80px, 130px) 48px;
  width: fit-content;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #cdd8e4;
  border-radius: 13px;
}

.tdcc-quantity button,
.tdcc-quantity input {
  min-height: 48px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 850;
}

.tdcc-quantity button {
  background: #edf3f8;
  cursor: pointer;
}

.tdcc-moq {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fff8e1;
  color: #4a4233;
  font-size: 13px;
  line-height: 1.45;
}

.tdcc-summary-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  background: #f9fbfe;
}

.tdcc-summary {
  min-height: 180px;
  padding: 14px;
  border-radius: 14px;
  background: #0b1728;
  color: #f8fafc;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.58;
}

.tdcc-price {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #e1cc9a;
  border-radius: 14px;
  background: #fff9eb;
  color: #5c4210;
}

.tdcc-price strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.tdcc-price span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.tdcc-discount {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.tdcc-discount.is-visible {
  display: block;
}

.tdcc-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.tdcc-btn,
.tdcc-external-quote {
  min-height: 48px;
  padding: 11px 14px;
  border: 0;
  border-radius: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.tdcc-btn.primary {
  background: var(--tdcc-navy);
  color: #fff;
}

.tdcc-btn.gold {
  background: var(--tdcc-gold);
  color: #111827;
}

.tdcc-btn.secondary {
  background: #e9eef4;
  color: #1f2937;
}

.tdcc-btn.outline {
  grid-column: 1 / -1;
  border: 1px solid var(--tdcc-navy);
  background: #fff;
  color: var(--tdcc-navy);
}

.tdcc-btn:disabled,
.tdcc-external-quote:disabled {
  cursor: wait;
  opacity: .65;
}

.tdcc-status {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.tdcc-status.is-error,
.tdcc-status.is-success {
  display: block;
}

.tdcc-status.is-error {
  background: #fef2f2;
  color: #991b1b;
}

.tdcc-status.is-success {
  background: #ecfdf5;
  color: #065f46;
}

.tdcc-external-quote {
  margin-left: 10px !important;
  background: #0f3a66 !important;
  color: #fff !important;
}

.tdcc-toast {
  position: fixed;
  z-index: 2147483600;
  right: 18px;
  bottom: 18px;
  display: none;
  width: min(370px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 13px;
  background: #0b1728;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.tdcc-toast.is-visible {
  display: block;
  animation: tdcc-toast-in .22s ease-out;
}

@keyframes tdcc-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

html.tdcc-modal-open,
body.tdcc-modal-open {
  overflow: hidden !important;
}

@media (max-width: 820px) {
  .tdcc-root {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  .tdcc-launch-card {
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px;
  }

  .tdcc-open {
    width: 100%;
  }

  .tdcc-modal {
    align-items: stretch !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
  }

  .tdcc-dialog {
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .tdcc-modal-head {
    min-height: 72px;
    padding: 13px 15px;
  }

  .tdcc-modal-head strong {
    font-size: 18px;
  }

  .tdcc-modal-body {
    display: block;
    padding: 12px;
  }

  .tdcc-form {
    gap: 11px;
  }

  .tdcc-card {
    padding: 14px;
    border-radius: 15px;
  }

  .tdcc-summary-panel {
    position: static;
    margin-top: 12px;
    padding: 14px;
  }

  .tdcc-actions {
    position: sticky;
    z-index: 12;
    bottom: -1px;
    margin: 12px -14px -14px;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .1);
  }

  .tdcc-two {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .tdcc-palette-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .tdcc-swatches {
    height: 78px;
  }

  .woocommerce div.product form.cart .tdcc-root {
    grid-column: 1 / -1 !important;
    float: none !important;
    clear: both !important;
  }

  .woocommerce div.product form.cart .tdcc-external-quote {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 50px;
    margin: 10px 0 0 !important;
  }
}

@media (max-width: 410px) {
  .tdcc-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .tdcc-btn.outline {
    grid-column: auto;
  }

  .tdcc-step h4 {
    font-size: 16px;
  }
}
