/* Compact configuration controls. Other customer and seller views keep their layout. */
.configuration-view .accessory-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.configuration-view .accessory-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  min-height: 104px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  overflow: visible;
  cursor: pointer;
}

.configuration-view .accessory-card:hover {
  border-color: var(--border-strong);
}

.configuration-view .accessory-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.configuration-view .accessory-card:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.configuration-view .accessory-image {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
  padding: 12px;
  background: transparent;
}

.configuration-view .accessory-image img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: contain;
}

.configuration-view .accessory-content {
  min-width: 0;
  padding: 10px 14px 13px 4px;
}

.configuration-view .accessory-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}

.configuration-view .accessory-title strong {
  min-width: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* The 22px native checkbox has a 44px label target around it. */
.configuration-view .accessory-title input[type=checkbox] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 11px;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.configuration-view .accessory-price strong {
  display: block;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.configuration-view .accessory-price strong small {
  display: inline;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.configuration-view .accessory-price span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.configuration-view .accessory-info {
  margin-top: 6px;
  border: 0;
}

.configuration-view .accessory-info > summary,
.customer-cost-compact .cost-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.configuration-view .accessory-info > summary:focus-visible,
.configuration-view .wall-design-compact select:focus-visible,
.customer-cost-compact .cost-details > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.configuration-view .accessory-info > p {
  margin: 0;
  padding: 0 0 6px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.configuration-view .accessory-info > p strong {
  color: var(--text);
  font-weight: 400;
}

.configuration-view .wall-design-selection.wall-design-compact {
  margin: 20px 0;
  padding: 20px 0;
  border-color: var(--border);
}

.configuration-view .wall-design-compact h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
}

.configuration-view .wall-design-field {
  width: 100%;
  max-width: 440px;
}

.configuration-view .wall-design-field select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  font-size: 14px;
}

.configuration-view .wall-design-compact .wall-design-price {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  font-size: 14px;
}

.configuration-view .wall-design-price span {
  min-width: 0;
  color: var(--muted);
}

.configuration-view .wall-design-price strong {
  flex-shrink: 0;
  color: var(--text);
  font-weight: 400;
}

.configuration-view .wall-design-compact .wall-design-note {
  margin: 9px 0 0;
  padding: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.customer-cost-compact {
  min-width: 0;
  padding: 24px;
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.customer-cost-compact .cost-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 0;
}

.customer-cost-compact .cost-head h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.3;
}

.customer-cost-compact .cost-head small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.customer-cost-compact .cost-main {
  padding: 24px 0 18px;
}

.customer-cost-compact .cost-main > span,
.customer-cost-compact .cost-monthly > span {
  color: var(--muted);
  font-size: 13px;
}

.customer-cost-compact .cost-main > strong {
  margin: 5px 0 0;
  font-size: 32px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.customer-cost-compact .cost-monthly {
  margin-bottom: 20px;
}

.customer-cost-compact .cost-monthly strong {
  margin-top: 4px;
  font-size: 23px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.customer-cost-compact .cost-monthly strong small {
  white-space: nowrap;
  font-size: 13px;
}

.customer-cost-compact .cost-details {
  margin: 0 0 17px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.customer-cost-compact .cost-details[open] {
  padding-bottom: 7px;
}

.customer-cost-compact .cost-details .cost-lines {
  margin: 0 0 14px;
}

.customer-cost-compact .cost-details .cost-lines > div {
  align-items: baseline;
  gap: 14px;
  margin: 9px 0;
  font-size: 13px;
  line-height: 1.5;
}

.customer-cost-compact .cost-details .cost-lines dt {
  min-width: 0;
  color: var(--muted);
}

.customer-cost-compact .cost-details .cost-lines dd {
  max-width: 55%;
  text-align: right;
  color: var(--text);
  overflow-wrap: anywhere;
}

.customer-cost-compact .pricing-breakdown {
  margin: 14px 0;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.customer-cost-compact .cost-period {
  flex-wrap: wrap;
  gap: 6px 12px;
  border-color: var(--border);
  padding: 13px 0;
}

.customer-cost-compact .cost-period strong {
  margin-left: auto;
}

.customer-cost-compact .cost-explainer {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.6;
}

.customer-cost-compact .cost-delivery {
  margin-bottom: 16px;
}

.customer-cost-compact .cost-save {
  min-height: 44px;
  margin-top: 5px;
}

@media (max-width: 600px) {
  .configuration-view .accessory-card {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 96px;
  }

  .configuration-view .accessory-image {
    min-height: 0;
    padding: 9px;
  }

  .configuration-view .accessory-image img {
    height: 68px;
  }

  .configuration-view .accessory-content {
    padding: 8px 8px 12px 2px;
  }

  .configuration-view .accessory-title strong,
  .configuration-view .accessory-price strong {
    font-size: 16px;
  }

  .configuration-view .wall-design-field {
    max-width: none;
  }

  .customer-cost-compact {
    padding: 20px;
  }

  .customer-cost-compact .cost-main > strong {
    font-size: 30px;
  }
}

@media (max-width: 360px) {
  .configuration-view .accessory-title {
    gap: 2px;
  }

  .configuration-view .accessory-title strong {
    font-size: 15px;
  }

  .customer-cost-compact .cost-main > strong {
    font-size: 28px;
  }
}
