.network-offer-dialog.wcd-offer-dialog {
  --wcd-border:hsl(var(--border));
  --wcd-surface:hsl(var(--card));
  --wcd-background:hsl(var(--background));
  --wcd-text:hsl(var(--foreground));
  --wcd-muted:hsl(var(--muted-foreground));
  width:min(740px,calc(100vw - 28px)) !important;
  max-width:min(740px,calc(100vw - 28px)) !important;
  max-height:90vh !important;
  padding:0 !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  border:1px solid var(--wcd-border) !important;
  border-radius:14px !important;
  background:var(--wcd-surface) !important;
  color:var(--wcd-text);
  box-shadow:0 18px 55px rgba(0,0,0,.18);
}

.network-offer-dialog.wcd-offer-dialog > div:first-child {
  min-height:62px;
  padding:14px 52px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  border-bottom:1px solid var(--wcd-border);
}

.network-offer-dialog.wcd-offer-dialog > div:first-child h2 {
  width:100%;
  text-align:center;
  font-size:17px !important;
  font-weight:750 !important;
}

.network-offer-dialog.wcd-offer-dialog > .wcd-body {
  display:flex !important;
  flex-direction:column;
  gap:13px !important;
  padding:17px !important;
  overflow-y:auto !important;
  background:var(--wcd-background);
}

.network-offer-dialog.wcd-offer-dialog .wcd-card {
  min-width:0;
  padding:16px !important;
  border:1px solid var(--wcd-border);
  border-radius:11px !important;
  background:var(--wcd-surface);
}

.network-offer-dialog.wcd-offer-dialog .wcd-summary {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between;
  gap:14px;
}

.network-offer-dialog.wcd-offer-dialog .wcd-summary > div:first-child {
  min-width:0;
  display:flex;
  align-items:center;
  gap:13px;
}

.network-offer-dialog.wcd-offer-dialog .wcd-summary img {
  width:58px !important;
  height:58px !important;
  flex-shrink:0;
  border-radius:10px !important;
  object-fit:cover;
}

.network-offer-dialog.wcd-offer-dialog .wcd-summary h3 {
  font-size:16px !important;
  font-weight:750 !important;
  line-height:1.4;
}

.network-offer-dialog.wcd-offer-dialog .wcd-summary p {
  margin-top:4px;
  font-size:11px !important;
}

.network-offer-dialog.wcd-offer-dialog .wcd-summary-metrics {
  display:flex;
  gap:9px;
  flex-shrink:0;
}

.network-offer-dialog.wcd-offer-dialog .wcd-summary-metric {
  min-width:100px;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  border:1px solid var(--wcd-border);
  border-radius:8px;
  background:var(--wcd-background);
}

.network-offer-dialog.wcd-offer-dialog .wcd-metric-label {
  color:var(--wcd-muted);
  font-size:9px;
  font-weight:750;
  letter-spacing:.06em;
}

.network-offer-dialog.wcd-offer-dialog .wcd-metric-value {
  color:var(--wcd-text);
  font-size:14px;
  font-weight:750;
}

.network-offer-dialog.wcd-offer-dialog .wcd-section-heading {
  margin:0 0 12px !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--wcd-text) !important;
  font-size:14px !important;
  font-weight:750 !important;
}

.network-offer-dialog.wcd-offer-dialog .wcd-info-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px !important;
  margin:0 !important;
  border:0 !important;
  overflow:visible !important;
}

.network-offer-dialog.wcd-offer-dialog .wcd-info-item {
  min-width:0;
  display:flex !important;
  flex-direction:column;
  border:1px solid var(--wcd-border) !important;
  border-radius:8px;
  overflow:hidden;
  background:var(--wcd-background);
}

.network-offer-dialog.wcd-offer-dialog .wcd-info-item > div:first-child {
  padding:9px 10px 2px !important;
  border:0 !important;
  background:transparent !important;
  color:var(--wcd-muted) !important;
  font-size:9px !important;
  font-weight:750;
  text-transform:uppercase;
}

.network-offer-dialog.wcd-offer-dialog .wcd-info-item > div:last-child {
  padding:3px 10px 10px !important;
  border:0 !important;
  background:transparent !important;
  color:var(--wcd-text) !important;
  font-size:12px !important;
  font-weight:600;
  overflow-wrap:anywhere;
}

.network-offer-dialog.wcd-offer-dialog .wcd-terms {
  border-color:rgba(220,38,38,.2);
}

.network-offer-dialog.wcd-offer-dialog .wcd-terms-count {
  padding:4px 9px;
  border-radius:20px;
  background:rgba(220,38,38,.08);
  color:#DC2626;
  font-size:10px;
  font-weight:700;
}

.network-offer-dialog.wcd-offer-dialog .wcd-terms-list {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.network-offer-dialog.wcd-offer-dialog .wcd-term-item {
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:#DC2626;
  font-size:12px;
  line-height:1.55;
}

.network-offer-dialog.wcd-offer-dialog .wcd-term-item svg {
  flex-shrink:0;
  margin-top:1px;
}

.network-offer-dialog.wcd-offer-dialog .wcd-term-item strong {
  color:#DC2626;
  font-weight:750;
}

.network-offer-dialog.wcd-offer-dialog .wcd-actions {
  display:grid !important;
  grid-template-columns:1fr 1fr;
  gap:13px !important;
  align-content:start;
  background:var(--wcd-surface) !important;
}

.network-offer-dialog.wcd-offer-dialog .wcd-action-group {
  min-width:0;
}

.network-offer-dialog.wcd-offer-dialog .wcd-placement,
.network-offer-dialog.wcd-offer-dialog .wcd-affiliate,
.network-offer-dialog.wcd-offer-dialog .wcd-buttons {
  grid-column:1/-1;
}

.network-offer-dialog.wcd-offer-dialog .wcd-actions input {
  min-width:0;
  font-size:12px !important;
}

.network-offer-dialog.wcd-offer-dialog .wcd-actions button {
  min-height:39px !important;
  border-radius:8px !important;
  font-size:12px !important;
  font-weight:650;
}

.network-offer-dialog.wcd-offer-dialog [hidden] {
  display:none !important;
}

@media(max-width:600px) {
  .network-offer-dialog.wcd-offer-dialog {
    width:calc(100vw - 18px) !important;
    max-width:calc(100vw - 18px) !important;
    max-height:92vh !important;
  }

  .network-offer-dialog.wcd-offer-dialog > .wcd-body {
    padding:11px !important;
    gap:10px !important;
  }

  .network-offer-dialog.wcd-offer-dialog .wcd-card {
    padding:12px !important;
  }

  .network-offer-dialog.wcd-offer-dialog .wcd-summary {
    align-items:flex-start !important;
    flex-direction:column;
  }

  .network-offer-dialog.wcd-offer-dialog .wcd-summary-metrics {
    width:100%;
  }

  .network-offer-dialog.wcd-offer-dialog .wcd-summary-metric {
    flex:1;
  }

  .network-offer-dialog.wcd-offer-dialog .wcd-info-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .network-offer-dialog.wcd-offer-dialog .wcd-actions {
    grid-template-columns:1fr;
  }

  .network-offer-dialog.wcd-offer-dialog .wcd-action-group {
    grid-column:1/-1;
  }
}

/* Move affiliate link builder above Terms & Conditions */
.network-offer-dialog.wcd-offer-dialog .wcd-actions {
  order: 4 !important;
}

.network-offer-dialog.wcd-offer-dialog .wcd-terms {
  order: 5 !important;
}
