.w2i-sizepricing-panel {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--w2i-border, #d8dee6);
  border-radius: 8px;
  background: #fff;
}
.w2i-sizepricing-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}
.w2i-sizepricing-field {
  margin: 0 0 10px;
}
.w2i-sizepricing-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}
.w2i-sizepricing-field select {
  width: 100%;
  max-width: 100%;
}
.w2i-sizepricing-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.w2i-sizepricing-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.w2i-sizepricing-check input {
  margin-top: 3px;
}
.w2i-sizepricing-fee {
  color: #64748b;
  white-space: nowrap;
}
.w2i-sizepricing-quote {
  margin-top: 12px;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
}
.w2i-sizepricing-quote p {
  margin: 0 0 10px;
}
.w2i-sizepricing-quote-btn {
  display: inline-block;
}
.w2i-sizepricing-panel.is-oversized .w2i-sizepricing-checks {
  opacity: 0.55;
  pointer-events: none;
}
#w2i-sizepricing-template {
  display: none !important;
}

/* Design Now — options sit inside the item edit widget ("Update your text / art") */
#web2inkdesigner .w2i-sizepricing-designer-host {
  width: 100%;
  margin-top: 12px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] {
  margin: 0;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-fee {
  white-space: normal;
}

/* Auto mode: tier is detected from the artwork, so the manual size controls are hidden. */
.w2i-sizepricing-panel.is-auto .w2i-sizepricing-manual {
  display: none !important;
}
.w2i-sizepricing-panel.is-auto .w2i-sizepricing-auto {
  display: block !important;
  margin: 0 0 10px;
}
.w2i-sizepricing-panel .w2i-sizepricing-auto-title {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}
.w2i-sizepricing-auto-empty {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* All size options, the detected one(s) checked */
.w2i-sizepricing-tiers {
  margin: 0;
  padding: 0;
  list-style: none;
}
.w2i-sizepricing-tier {
  margin: 0 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  font-size: 0.85rem;
  line-height: 1.35;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.w2i-sizepricing-tier.is-current {
  border-color: #0ea5e9;
  background: #f0f9ff;
}
.w2i-sizepricing-tier-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  font-weight: 400;
  /* the box only shows the detected size; it is not clickable */
  pointer-events: none;
  cursor: default;
}
.w2i-sizepricing-tier-check {
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #0ea5e9;
}
.w2i-sizepricing-tier-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.w2i-sizepricing-tier-name {
  color: #334155;
}
.w2i-sizepricing-tier.is-current .w2i-sizepricing-tier-name {
  font-weight: 600;
  color: #0f172a;
}
.w2i-sizepricing-tier-price {
  color: #64748b;
  font-size: 0.8rem;
}
.w2i-sizepricing-tier-where {
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 500;
}
.w2i-sizepricing-tier-where:empty {
  display: none;
}

/* Repeat design picker (previous orders) */
.w2i-sizepricing-repeat-box {
  margin: 0 0 4px 24px;
}
.w2i-sizepricing-repeat-msg {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: #64748b;
}
.w2i-sizepricing-repeat-msg:empty {
  display: none;
}
.w2i-sizepricing-repeat-list {
  max-height: 240px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.w2i-sizepricing-repeat-item {
  margin: 0 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}
.w2i-sizepricing-repeat-item.is-selected {
  border-color: #0ea5e9;
  background: #f0f9ff;
}
.w2i-sizepricing-repeat-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 8px;
  font-weight: 400;
  cursor: pointer;
}
.w2i-sizepricing-repeat-item input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: #0ea5e9;
}
.w2i-sizepricing-repeat-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
}
.w2i-sizepricing-repeat-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.3;
}
.w2i-sizepricing-repeat-title {
  font-weight: 600;
  color: #0f172a;
}
.w2i-sizepricing-repeat-meta {
  color: #64748b;
}
.w2i-sizepricing-repeat-note.is-ok {
  color: #15803d;
}
.w2i-sizepricing-repeat-note.is-partial {
  color: #b45309;
}
.w2i-sizepricing-repeat-note.is-no {
  color: #b91c1c;
}

/* Design Now footer — "Design price" loading state while the price is being recalculated */
#web2inkdesigner > footer .w2i-design-price .w2i-design-price-value {
  position: relative;
  transition: color 0.15s ease;
}
#web2inkdesigner > footer .w2i-design-price.w2i-price-loading .w2i-design-price-value {
  color: rgba(100, 116, 139, 0.35);
  pointer-events: none;
  user-select: none;
}
#web2inkdesigner > footer .w2i-design-price.w2i-price-loading .w2i-design-price-value::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  box-sizing: border-box;
  border: 2px solid rgba(100, 116, 139, 0.3);
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: w2i-sizepricing-spin 0.7s linear infinite;
}
@keyframes w2i-sizepricing-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #web2inkdesigner > footer .w2i-design-price.w2i-price-loading .w2i-design-price-value::after {
    animation-duration: 2s;
  }
}

/* ------------------------------------------------------------------
   Design Now widget theme: match the native edit-widget rows
   (#ededed rows, 10px radius, 14px/500 type, #03a7f2 accent)
   ------------------------------------------------------------------ */
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] > * + * {
  margin-top: 10px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-auto {
  margin-bottom: 0;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-title {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-auto-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(15, 23, 42, 0.64);
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-auto-empty {
  margin: 0;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.64);
}

/* size tiers */
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-tier {
  margin: 0;
  border: 1px solid #ededed;
  border-radius: 10px;
  background: #ededed;
  font-size: 14px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-tier.is-current {
  border-color: #03a7f2;
  background: #eff6ff;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-tier-label {
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-tier-name {
  font-weight: 500;
  color: rgba(15, 23, 42, 0.64);
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-tier.is-current .w2i-sizepricing-tier-name {
  color: #0f172a;
  font-weight: 600;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-tier-price {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-tier-where {
  font-size: 12px;
  font-weight: 600;
  color: #03a7f2;
}

/* option rows (repeat / second location / specialty) */
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-checks {
  gap: 6px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-check {
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ededed;
  border-radius: 10px;
  background: #ededed;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-check:has(input:checked) {
  border-color: #03a7f2;
  background: #eff6ff;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-check input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: #03a7f2;
}
.w2i-sizepricing-check-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-fee {
  font-size: 12px;
  font-weight: 400;
  color: rgba(15, 23, 42, 0.64);
  white-space: normal;
}

/* repeat picker */
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-repeat-box {
  margin: 0;
  padding: 0 0 2px 12px;
  border-left: 2px solid #03a7f2;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-repeat-msg {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.64);
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-repeat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  padding-right: 2px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-repeat-item {
  margin: 0;
  border: 1px solid #ededed;
  border-radius: 10px;
  background: #fff;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-repeat-item.is-selected {
  border-color: #03a7f2;
  background: #eff6ff;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-repeat-item label {
  padding: 8px 10px;
  gap: 10px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-repeat-thumb {
  width: 44px;
  height: 44px;
  border-color: #ededed;
  border-radius: 8px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-repeat-text {
  font-size: 12px;
}
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-repeat-title {
  font-size: 13px;
}

/* quote notice */
#web2inkdesigner .w2i-sizepricing-panel[data-context="designer"] .w2i-sizepricing-quote {
  margin: 0;
  border-radius: 10px;
  font-size: 13px;
}
