/* Veton Charger Configurator — /chargers-extras/ step styling.
 * Sits on top of inquiry.css (shared step indicator, VAT toggle, line list).
 * Adds the accessory cards grid + sticky bottom bar (mirrors configure.css). */

/* The sticky bar parks at the bottom of .vcc-bar-region when released; the
 * help-line sits AFTER the region so it stays visible underneath the
 * parked bar. Padding reserves space at the bottom of the region so the
 * fixed bar doesn't overlap the last accessory card while scrolling.
 * Generous mobile value accounts for the bar's flex-column layout below
 * md (subtotal + price + CTA stack vertically → ~180px tall). */
.vcc-chargers-extras-page .vcc-bar-region {
  position: relative;
  padding-bottom: 110px;
}
@media (max-width: 767.98px) {
  .vcc-chargers-extras-page .vcc-bar-region { padding-bottom: 130px; }
}

/* Sticky bar — copy of configure.css's .vcc-current-state styling so /extras/
 * is visually identical without having to load all of configure.css. Fixed
 * to viewport bottom until JS toggles is-released; then parks above the
 * footer. Typography matches /configure/. */
.vcc-chargers-extras-page .vcc-current-state {
  background: rgba(249, 245, 238, 0.98);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  overflow: hidden;
  opacity: 1;
  transition: opacity 320ms ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.vcc-chargers-extras-page .vcc-current-state.is-released {
  position: absolute;
  bottom: 0;
}
.vcc-chargers-extras-page .vcc-current-state .vcc-selection {
  color: #2A2A2A;
  line-height: 1.4;
  font-weight: 500;
  font-size: 1.3rem;
}
/* The "Subtotal" label is wrapped in <strong> — pin to 700 so it's
 * predictable rather than relying on the browser-default `bolder`. */
.vcc-chargers-extras-page .vcc-current-state .vcc-selection strong {
  font-weight: 700;
}
.vcc-chargers-extras-page .vcc-current-state .vcc-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .vcc-chargers-extras-page .vcc-current-state .vcc-cta {
    margin-top: 0;
    justify-content: flex-end;
  }
}
.vcc-chargers-extras-page .vcc-current-state .vcc-cumulative {
  color: #656565;
  font-weight: 500;
  font-size: 1.3rem;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  text-align: right;
}
.vcc-chargers-extras-page .vcc-current-state .vcc-cumulative,
.vcc-chargers-extras-page .vcc-current-state .vcc-cumulative * {
  color: #a89c8a;
  font-weight: 500;
  font-size: 1.3rem;
}
.vcc-chargers-extras-page .vcc-current-state .vcc-price-text { display: inline-block; }

/* ----- Mobile (< md) ------------------------------------------------------- */
/* Sticky bar: the col-12 stops being flex below md, so .vcc-selection and
 * .vcc-cta naturally stack vertically. Inside .vcc-cta we also stack the
 * cumulative price and the Installation CTA so they don't run off the side
 * of narrow viewports. */
@media (max-width: 767.98px) {
  .vcc-chargers-extras-page .vcc-current-state .vcc-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 0;
    justify-content: flex-start;
  }
  .vcc-chargers-extras-page .vcc-current-state .vcc-cumulative,
  .vcc-chargers-extras-page .vcc-current-state .vcc-cumulative * {
    font-size: 1.1rem;
  }

}

/* Phone-only: accessory card footer rearranges so "Add …" label and the
 * price/included status sit stacked to the right of the checkbox, instead
 * of competing for one tight horizontal line. */
@media (max-width: 575.98px) {
  .vcc-chargers-extras-page .vcc-accessory-media { padding: 0; }
  .vcc-accessory-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 2px;
    align-items: center;
  }
  .vcc-accessory-checkbox-box {
    grid-row: 1 / span 2;
    align-self: center;
  }
  .vcc-accessory-label {
    grid-column: 2;
    grid-row: 1;
  }
  .vcc-accessory-price {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
  }
}

.vcc-accessories-heading {
  margin: 50px 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Two columns of cards on desktop; one on mobile. Each card itself is a
 * 2×2 grid: square image left, title+description right, footer strip
 * spanning both. */
.vcc-accessories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 992px) {
  .vcc-accessories-grid { grid-template-columns: 1fr 1fr; }
}

.vcc-accessory-card {
  display: grid;
  grid-template-columns: minmax(160px, 38%) 1fr;
  grid-template-areas:
    "media body"
    "footer footer";
  background: #fff;
  border: 1px solid #e6e6e6;
  overflow: hidden;
  transition: border-color 200ms ease;
}
.vcc-accessory-card.is-active { border-color: #C49E60; }

@media (max-width: 575px) {
  .vcc-accessory-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body"
      "footer";
  }
}

.vcc-accessory-media {
  grid-area: media;
  aspect-ratio: 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vcc-accessory-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.vcc-accessory-body {
  grid-area: body;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.vcc-accessory-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #2A2A2A;
}
.vcc-accessory-desc {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: #757575;
}

.vcc-accessory-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #F5F5F5;
  cursor: pointer;
  margin: 0;
}
.vcc-accessory-footer input { position: absolute; opacity: 0; pointer-events: none; }

/* Square "pearl" checkbox — same gold-fill construction as the radio dots
 * on /configure/ but with a small radius instead of fully round. Inset
 * shadow gives the carved-in look when unchecked; on check, the background
 * swaps to gold + cream border ring. */
.vcc-accessory-checkbox-box {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: background-color 320ms ease, border-color 320ms ease;
}
.vcc-accessory-card.is-active .vcc-accessory-checkbox-box {
  border-color: #ECE0CB;
  background-color: #C49E60;
}

.vcc-accessory-label {
  font-size: 1.1rem;
  color: #2A2A2A;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.vcc-accessory-price {
  margin-left: auto;
  color: #2A2A2A;
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.vcc-accessory-card.is-active .vcc-accessory-price { color: #2A2A2A; }
/* "Included" label stays muted so it visually reads as a state, not a value. */
.vcc-accessory-price.is-included {
  color: #888;
  font-style: normal;
}
.vcc-accessory-card.is-active .vcc-accessory-price.is-included { color: #888; }

