/* G2.7 Custom request flow */

.page-id-616 .site-content > .col-full {
  margin: 0;
  max-width: none;
  padding: 0;
}

.page-id-616 .storefront-breadcrumb {
  display: none;
}

.bb-custom-main {
  background: var(--bb-paper);
}

.bb-custom-shell {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1180px;
  padding: 58px var(--bb-page-pad) 76px;
}

.bb-custom-hero {
  border-bottom: 1px solid var(--bb-line);
  padding-bottom: 34px;
}

.bb-custom-hero h1 {
  font-size: clamp(46px, 5vw, 68px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  max-width: 16ch;
}

.bb-custom-hero > p:not(.bb-eyebrow) {
  color: var(--bb-muted);
  font-size: 1rem;
  line-height: 1.62;
  margin: 22px 0 0;
  max-width: 70ch;
}

.bb-custom-paths {
  border-bottom: 1px solid var(--bb-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-custom-path {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px 30px 30px;
}

.bb-custom-path + .bb-custom-path {
  border-left: 1px solid var(--bb-line);
}

.bb-custom-path h3 {
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.08;
  margin: 0 0 14px;
}

.bb-custom-path p {
  color: var(--bb-muted);
  line-height: 1.58;
  margin: 0 0 24px;
}

.bb-custom-path .bb-button {
  margin-top: auto;
  width: 100%;
}

.bb-custom-how {
  border-bottom: 1px solid var(--bb-line);
  padding: 48px 0 50px;
}

.bb-custom-how-heading {
  margin-bottom: 28px;
}

.bb-custom-how-heading h2 {
  font-size: clamp(32px, 3.3vw, 45px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  max-width: 18ch;
}

.bb-custom-how-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-custom-how-grid > div {
  border-top: 1px solid var(--bb-line);
  padding: 20px 30px 0 0;
}

.bb-custom-how-grid > div + div {
  padding-left: 30px;
}

.bb-custom-how-grid strong {
  display: block;
  font-family: var(--bb-font-heading);
  font-size: 1.18rem;
  font-weight: 400;
  margin-bottom: 9px;
}

.bb-custom-how-grid p {
  color: var(--bb-muted);
  line-height: 1.58;
  margin: 0;
}

.bb-custom-request-section {
  padding-top: 54px;
}

.bb-custom-request-intro {
  margin-bottom: 28px;
}

.bb-custom-request-intro h2 {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 12px;
}

.bb-custom-request-intro p {
  color: var(--bb-muted);
  margin: 0;
  max-width: 68ch;
}

.bb-selected-request-product {
  align-items: center;
  background: var(--bb-surface);
  border: 1px solid var(--bb-line);
  display: grid;
  gap: 24px;
  grid-template-columns: 128px minmax(0, 1fr);
  margin-bottom: 24px;
  padding: 16px;
}

.bb-selected-request-product[hidden] {
  display: none !important;
}

.bb-selected-request-product-image {
  background: var(--bb-surface);
  display: block;
}

.bb-selected-request-product-image img {
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  width: 100%;
}

.bb-selected-request-product-copy h3 {
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0 0 9px;
}

.bb-selected-request-product-meta,
.bb-selected-request-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}

.bb-selected-request-product-meta {
  color: var(--bb-muted);
  font-size: .8rem;
}

.bb-selected-request-product-links {
  margin-top: 13px;
}

.bb-selected-request-product-links a {
  border-bottom: 1px solid currentColor;
  color: var(--bb-bluebird-dark);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding-bottom: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.bb-product-picker {
  background: var(--bb-soft);
  border: 1px solid var(--bb-line);
  margin: 0 0 22px;
  padding: 22px 24px;
}

.bb-product-picker[hidden],
.bb-product-picker-mode[hidden],
.bb-product-picker-error[hidden] {
  display: none !important;
}

.bb-product-picker.has-error {
  border-color: var(--bb-bluebird);
}

.bb-product-picker-error {
  color: var(--bb-bluebird-dark);
  font-weight: 700;
  margin: 0 0 14px;
}

.bb-product-picker-mode {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.bb-product-picker-mode p {
  color: var(--bb-muted);
  margin: 0;
}

.bb-product-picker-mode strong {
  color: var(--bb-ink);
  font-family: var(--bb-font-heading);
  font-size: 1.12rem;
  font-weight: 400;
}

.bb-custom-request-form-card {
  background: var(--bb-surface);
  border: 1px solid var(--bb-line);
  box-sizing: border-box;
  padding: 30px 34px 34px;
  width: 100%;
}

.bb-custom-request-form-card .wpforms-container,
.bb-custom-request-form-card form.wpforms-form {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.bb-custom-request-form-card .wpforms-field {
  padding: 10px 0 !important;
}

.bb-custom-request-form-card .wpforms-field-label {
  color: var(--bb-ink) !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  margin-bottom: 7px !important;
}

.bb-custom-request-form-card input[type="text"],
.bb-custom-request-form-card input[type="email"],
.bb-custom-request-form-card select,
.bb-custom-request-form-card textarea {
  border: 1px solid var(--bb-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
  width: 100% !important;
}

.bb-custom-request-form-card textarea {
  min-height: 150px;
}

.bb-custom-request-form-card .wpforms-submit {
  background: var(--bb-bluebird-dark) !important;
  border: 1px solid var(--bb-bluebird-dark) !important;
  border-radius: 0 !important;
  color: var(--bb-surface) !important;
  min-height: 46px;
  padding: 0 24px !important;
  text-transform: uppercase;
}

.bb-custom-request-form-card .wpforms-submit:hover,
.bb-custom-request-form-card .wpforms-submit:focus-visible {
  background: var(--bb-bluebird) !important;
  border-color: var(--bb-bluebird) !important;
}

.bb-request-selected-piece-field,
.bb-request-selected-product-id-field,
.bb-request-mode-code-field {
  display: none !important;
}

.bb-size-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.bb-size-guides details {
  background: var(--bb-surface);
  border: 1px solid var(--bb-line);
}

.bb-size-guides details + details {
  border-left: 0;
}

.bb-size-guides summary {
  cursor: pointer;
  font-family: var(--bb-font-heading);
  font-size: 1rem;
  list-style: none;
  padding: 17px 18px;
  position: relative;
}

.bb-size-guides summary::-webkit-details-marker {
  display: none;
}

.bb-size-guides summary::after {
  content: "+";
  font-family: var(--bb-font-body);
  position: absolute;
  right: 18px;
}

.bb-size-guides details[open] summary::after {
  content: "−";
}

.bb-size-guides details > div {
  color: var(--bb-muted);
  line-height: 1.6;
  padding: 0 18px 18px;
}

.bb-custom-request-reassurance {
  color: var(--bb-muted);
  font-size: .74rem;
  line-height: 1.55;
  margin: 15px 0 0;
}

/* Shop selection mode */
.bb-shop-selection-banner {
  align-items: center;
  border-bottom: 1px solid var(--bb-line);
  border-top: 1px solid var(--bb-line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1480px;
  padding: 24px var(--bb-page-pad);
}

.bb-shop-selection-banner .bb-eyebrow {
  margin-bottom: 7px;
}

.bb-shop-selection-banner h2 {
  font-size: clamp(25px, 2.7vw, 36px);
  margin: 0 0 7px;
}

.bb-shop-selection-banner p:not(.bb-eyebrow) {
  color: var(--bb-muted);
  margin: 0;
  max-width: 74ch;
}

/* Keep selection actions visually explicit. */
.bb-shop-main .bb-product-cta {
  min-width: max-content;
}

@media (max-width: 768px) {
  .bb-custom-shell {
    padding-top: 38px;
  }

  .bb-custom-paths,
  .bb-custom-how-grid,
  .bb-size-guides {
    grid-template-columns: 1fr;
  }

  .bb-custom-path {
    min-height: 0;
    padding: 24px 0;
  }

  .bb-custom-path + .bb-custom-path {
    border-left: 0;
    border-top: 1px solid var(--bb-line);
  }

  .bb-custom-path .bb-button {
    width: auto;
  }

  .bb-custom-how-grid > div {
    padding: 18px 0 0;
  }

  .bb-custom-how-grid > div + div {
    padding-left: 0;
  }

  .bb-selected-request-product {
    align-items: start;
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .bb-product-picker-mode,
  .bb-shop-selection-banner {
    grid-template-columns: 1fr;
  }

  .bb-size-guides details + details {
    border-left: 1px solid var(--bb-line);
    border-top: 0;
  }

  .bb-custom-request-form-card {
    padding: 22px 18px 24px;
  }
}

/* G2.7.1: keep the dynamic product-picker CTA legible after WPForms moves it inside the form. */
.bb-custom-request-form-card .bb-product-picker a.bb-button,
.bb-product-picker a.bb-button.bb-button--primary {
  background: var(--bb-bluebird-dark) !important;
  border-color: var(--bb-bluebird-dark) !important;
  color: var(--bb-surface) !important;
  -webkit-text-fill-color: var(--bb-surface);
}

.bb-custom-request-form-card .bb-product-picker a.bb-button:hover,
.bb-custom-request-form-card .bb-product-picker a.bb-button:focus-visible,
.bb-product-picker a.bb-button.bb-button--primary:hover,
.bb-product-picker a.bb-button.bb-button--primary:focus-visible {
  background: var(--bb-bluebird) !important;
  border-color: var(--bb-bluebird) !important;
  color: var(--bb-surface) !important;
  -webkit-text-fill-color: var(--bb-surface);
}


/* Gutenberg editable-content compatibility */
.bb-custom-path.bb-editor-layout > .wp-block-group__inner-container,
.bb-custom-how-grid.bb-editor-layout > .wp-block-group__inner-container,
.bb-size-guides.bb-editor-layout > .wp-block-group__inner-container {
  display: contents;
}

.bb-custom-path .wp-block-buttons {
  margin-top: auto;
  width: 100%;
}

.bb-custom-path .wp-block-button,
.bb-custom-path .wp-block-button__link {
  width: 100%;
}

.bb-custom-how-grid > .wp-block-group__inner-container > .wp-block-group {
  border-top: 1px solid var(--bb-line);
  padding: 20px 30px 0 0;
}

.bb-custom-how-grid > .wp-block-group__inner-container > .wp-block-group + .wp-block-group {
  padding-left: 30px;
}

@media (max-width: 768px) {
  .bb-custom-path .wp-block-buttons,
  .bb-custom-path .wp-block-button,
  .bb-custom-path .wp-block-button__link {
    width: auto;
  }

  .bb-custom-how-grid > .wp-block-group__inner-container > .wp-block-group {
    padding: 18px 0 0;
  }

  .bb-custom-how-grid > .wp-block-group__inner-container > .wp-block-group + .wp-block-group {
    padding-left: 0;
  }
}


/* Custom request privacy agreement */
.bb-custom-request-form-card .bb-custom-privacy-field {
  padding-top: 14px !important;
}

.bb-custom-request-form-card .bb-custom-privacy-field ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-custom-request-form-card .bb-custom-privacy-field li {
  margin: 0;
}

.bb-custom-request-form-card .bb-custom-privacy-field input[type="checkbox"] {
  height: 18px;
  margin: 2px 9px 0 0;
  min-height: 0;
  vertical-align: top;
  width: 18px;
}

.bb-custom-request-form-card .bb-custom-privacy-field .wpforms-field-label-inline {
  color: var(--bb-muted);
  display: inline;
  font-size: .76rem;
  line-height: 1.55;
}

.bb-custom-request-form-card .bb-custom-privacy-field a {
  color: var(--bb-bluebird-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
