/* C inherits A's warm paper, forest green and original logo. */
.brand-header {
  padding: 12px 0;
}
.brand-logo img {
  width: min(140px, 40vw);
}
.campaign-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.campaign-intro h1 {
  font-size: clamp(30px, 3.1vw, 38px);
}
.campaign-intro > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.form-wrap {
  padding-top: 18px;
}
.progress-head {
  margin-bottom: 12px;
}
#productsStep > .step-title {
  margin-bottom: 12px;
}
.catalog-price-note {
  margin-bottom: 16px;
  max-width: none;
  font-size: 12px;
}
.product-grid {
  display: block;
}
.c-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.c-overview-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
#cOverviewButton {
  display: none;
}
.c-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.c-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 116px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--slate);
  text-align: center;
  font-size: 12px;
}
.c-thumbnail img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  margin-bottom: 4px;
}
.c-thumbnail-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 29px;
  line-height: 1.2;
}
.c-thumbnail-state {
  display: block;
  min-height: 16px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  color: var(--h2-green);
  font-size: 11px;
  line-height: 1.4;
}
.c-thumbnail:hover {
  border-color: var(--line-strong);
}
.c-thumbnail.is-current {
  border-color: var(--h2-green);
  background: var(--h2-green-soft);
}
.c-thumbnail.is-chosen .c-thumbnail-name {
  font-weight: 700;
}
.c-stage-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 10px;
}
.c-stage-heading p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}
.c-stage-heading > span {
  color: var(--slate-soft);
  font-size: 11px;
}
.c-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.c-visual {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  background: var(--paper);
  padding: 20px 10px;
  border-radius: 3px;
}
.c-product-image {
  position: static;
  width: 100%;
  height: 330px;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--h2-green);
  cursor: zoom-in;
  touch-action: pan-y;
}
.c-product-image img {
  display: block;
  height: calc(100% - 30px);
  width: 100%;
  object-fit: contain;
}
.c-product-image > span {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.4;
}
.c-product-image:hover > span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.c-neighbour {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 180px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--slate-soft);
  font-size: 11px;
}
.c-neighbour img {
  display: block;
  width: 100%;
  height: 94px;
  object-fit: contain;
  opacity: 0.72;
}
.c-neighbour:hover img {
  opacity: 1;
}
.c-neighbour svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--h2-green);
  stroke-width: 1.8;
}
.c-neighbour-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.c-panels {
  min-width: 0;
}
.c-product-panel {
  margin: 0;
  padding: 0;
  border: 0;
  min-height: 375px;
}
.c-product-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.c-product-panel .product-description {
  margin: 0;
  min-height: 64px;
  font-size: 13px;
}
.c-details-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  min-height: 44px;
  margin: 4px 0 12px;
  border: 0;
  background: transparent;
  color: var(--h2-green);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.c-details-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.c-details-trigger:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.c-add-choice {
  align-items: center;
  padding: 8px 0;
  margin: 2px 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.c-add-choice input {
  margin-top: 0;
}
.c-product-panel .quantity-control {
  justify-content: space-between;
}
.c-product-panel .line-total {
  margin-top: 12px;
  font-size: 14px;
  min-height: 22px;
}
.c-product-panel .price-table caption {
  text-align: left;
}
.c-details-content {
  line-height: 1.75;
  color: var(--slate-soft);
}
.c-details-content h3 {
  color: var(--slate);
  font-size: 17px;
  margin: 26px 0 10px;
}
.c-details-content h3:first-child {
  margin-top: 0;
}
.c-details-content p {
  font-size: 14px;
  margin: 0;
}
.c-overview-dialog {
  width: min(900px, calc(100vw - 32px));
}
.c-overview-dialog .c-thumbnail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.c-selection-dialog {
  width: min(680px, calc(100vw - 32px));
}
.c-selected-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.c-selected-item img {
  width: 48px;
  height: 64px;
  object-fit: contain;
}
.c-selected-item strong {
  font-size: 14px;
}
.c-selected-item p {
  margin: 6px 0;
  color: var(--slate-soft);
  font-size: 13px;
}
.c-selected-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.c-selected-tools button {
  border: 0;
  padding: 6px 0;
  min-height: 32px;
  background: transparent;
  color: var(--h2-green);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.c-selected-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}
#cSelectionContinue {
  margin-top: 22px;
}
.c-selection-button {
  font-size: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .c-product-image img {
    animation: c-reveal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes c-reveal {
    from {
      opacity: 0.85;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (max-width: 1000px) {
  .c-stage {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
  }
  .c-visual {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 6px;
    padding: 16px 6px;
  }
  .c-product-image {
    height: 295px;
  }
  .c-neighbour {
    font-size: 11px;
  }
  .c-product-title {
    font-size: 23px;
  }
}
@media (max-width: 740px) {
  .brand-header {
    padding-block: 12px;
  }
  .campaign-intro {
    display: block;
    padding-block: 16px;
  }
  .campaign-intro h1 {
    font-size: clamp(24px, 7.4vw, 32px);
  }
  .campaign-intro > p {
    margin-top: 10px;
    font-size: 14px;
  }
  .c-desktop-overview {
    display: none;
  }
  #cOverviewButton {
    display: inline-flex;
    padding: 10px 12px;
    font-size: 12px;
  }
  .c-overview-head h3 {
    font-size: 14px;
  }
  .c-stage-heading {
    padding-top: 4px;
  }
  .c-stage-heading > span {
    display: none;
  }
  .c-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 12px;
  }
  .c-visual {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 16px 6px;
  }
  .c-product-image {
    height: 245px;
  }
  .c-neighbour-name {
    display: none;
  }
  .c-neighbour img {
    height: 70px;
  }
  .c-product-panel {
    min-height: 0;
  }
  .c-product-title {
    font-size: 24px;
  }
  .c-product-panel .product-description {
    min-height: 0;
    font-size: 13px;
  }
  .c-product-panel .quantity-control input {
    font-size: 16px;
  }
  .c-overview-dialog .c-thumbnail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .c-selection-button {
    flex: 0 1 auto;
    padding-inline: 10px;
  }
  .form-actions .action-summary {
    margin-bottom: 2px;
  }
  #nextButton {
    font-size: 12px;
  }
}
@media (max-width: 390px) {
  .c-stage {
    gap: 20px;
  }
  .c-visual {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
  .c-product-image {
    height: 230px;
  }
  .c-overview-head {
    align-items: flex-start;
    gap: 8px;
  }
  .c-overview-head h3 {
    padding-top: 10px;
  }
}

#productsStep > .step-title p {
  display: block;
}
@media (min-width: 741px) {
  .c-overview-head {
    margin-bottom: 0;
  }
  .c-overview-head h3 {
    display: none;
  }
}

@media (min-width: 741px) {
  .c-desktop-overview {
    position: sticky;
    top: 12px;
    z-index: 1;
    background: var(--canvas);
  }
}
@media (max-width: 740px) {
  .c-overview-button,
  .c-selection-button {
    padding-inline: 10px;
    font-size: 12px;
  }
  .c-selection-button {
    flex: 0 1 auto;
  }
  #cOverviewButton {
    padding: 10px;
  }
}
