.tydal-dual-selection {
  background: #f7fafb;
  border: 1px solid #d6e1e5;
  border-radius: 12px;
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 13px;
  width: 100%;
}

.tydal-dual-heading { align-items: center; display: flex; flex-wrap: wrap; justify-content: space-between; }
.tydal-selection-help { position: relative; }
.tydal-selection-help summary {
  align-items: center;
  background: #0b3558;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  list-style: none;
  width: 22px;
}
.tydal-selection-help summary::-webkit-details-marker { display: none; }
.tydal-selection-help p {
  background: #fff;
  border: 1px solid #cddbe0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 53, 88, .16);
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  margin: 7px 0 0;
  padding: 10px;
  position: static;
  width: 100%;
}
.tydal-selection-help[open] { flex: 0 0 100%; margin-top: -22px; }
.tydal-selection-help[open] summary { margin-left: auto; }

.tydal-selection-grid { display: grid; gap: 9px; }
.tydal-selection-option {
  background: #fff;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
}
.tydal-selection-option label { display: grid; gap: 2px; }
.tydal-selection-option label span,
.tydal-selection-option small,
.tydal-availability-note { color: #526671; font-size: 12px; line-height: 1.35; }
.tydal-selection-controls {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(74px, 1fr) minmax(118px, auto);
}
.tydal-selection-controls input {
  border: 1px solid #b9cbd2;
  border-radius: 7px;
  box-sizing: border-box;
  min-width: 0;
  padding: 9px;
  width: 100%;
}
.tydal-selection-controls button {
  background: #0b5f8f;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 9px;
  white-space: normal;
}
.tydal-selection-controls button:hover { background: #08496f; }
.tydal-roll-base-price { font-weight: 700; }
.tydal-availability-note { margin: 0; }
.tydal-selection-unavailable { background: #f5f5f5; border-radius: 6px; color: #667; font-size: 12px; padding: 9px; }

.tydal-card-quote { box-sizing: border-box; margin-top: auto; width: 100%; }
.wc-block-product > .tydal-card-quote {
  margin-left: 14px;
  margin-right: 14px;
  width: calc(100% - 28px);
}
.products.tydal-has-open-quote,
.wc-block-product-template.tydal-has-open-quote { align-items: start !important; }
.products.tydal-has-open-quote > li,
.wc-block-product-template.tydal-has-open-quote > li { align-self: start !important; height: auto !important; }
.tydal-card-quote > summary {
  align-items: center;
  background: #0b3558;
  border: 1px solid #0b3558;
  border-radius: 10px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: 2px 12px;
  grid-template-columns: minmax(0, 1fr) 28px;
  list-style: none;
  min-height: 58px;
  padding: 9px 11px 9px 13px;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, border-radius .18s ease;
}
.tydal-card-quote > summary::-webkit-details-marker { display: none; }
.tydal-card-quote > summary span { font-size: 13px; font-weight: 800; line-height: 1.2; min-width: 0; }
.tydal-card-quote > summary small { color: #cfe4ef; font-size: 10px; font-weight: 500; grid-column: 1; line-height: 1.25; }
.tydal-card-quote > summary b {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  font-size: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 28px;
  justify-content: center;
  justify-self: end;
  line-height: 1;
  transition: background .18s ease, transform .18s ease;
  width: 28px;
}
.tydal-card-quote > summary b::before {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 7px;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
  width: 7px;
}
.tydal-card-quote > summary:hover { background: #0b5f8f; border-color: #0b5f8f; }
.tydal-card-quote > summary:hover b { background: rgba(255, 255, 255, .2); }
.tydal-card-quote[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tydal-card-quote[open] > summary b::before { transform: translateY(2px) rotate(225deg); }
.tydal-card-quote-body {
  animation: tydal-card-open .18s ease-out;
  background: #f7fafb;
  border: 1px solid #c8d9e0;
  border-radius: 0 0 10px 10px;
  border-top: 0;
  padding: 11px;
}
@keyframes tydal-card-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tydal-dual-selection--card {
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 9px;
  margin: 0;
  padding: 0;
  text-align: left;
}
.tydal-mode-picker { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tydal-mode-picker button {
  background: #fff;
  border: 1px solid #b9cbd2;
  border-radius: 8px;
  color: #183f58;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  padding: 9px 6px;
}
.tydal-mode-picker button:hover,
.tydal-mode-picker button.is-active { background: #e5f2f7; border-color: #0b5f8f; color: #073d5e; }
.tydal-mode-prompt { color: #526671; font-size: 11px; margin: 0; text-align: center; }
.tydal-mode-controlled .tydal-selection-option { display: none; }
.tydal-mode-controlled .tydal-selection-option.is-active { display: grid; }
.tydal-dual-selection--card .tydal-selection-controls { grid-template-columns: minmax(62px, 1fr) minmax(112px, auto); }
.tydal-dual-selection--card .tydal-selection-controls button { width: 100%; }
.tydal-dual-selection--card .tydal-availability-note { font-size: 10px; }
.tydal-unit-selection { display: grid; gap: 10px; margin: 0; }
.tydal-unit-selection label { display: grid; gap: 3px; text-align: left; }
.tydal-unit-selection label span { color: #526671; font-size: 11px; line-height: 1.35; }
.tydal-unit-selection + .tydal-availability-note { font-size: 10px; margin-top: 9px; text-align: left; }

.single-product form.cart.tydal-mt-form > .quantity,
.single-product form.cart.tydal-mt-form > .single_add_to_cart_button { display: none !important; }
.single-product form.cart.tydal-mt-form { align-items: stretch !important; display: block !important; }
.single-product .tydal-selection-grid { grid-template-columns: minmax(0, 1fr); }
.single-product .tydal-selection-option {
  gap: 12px;
  min-width: 0;
  padding: 14px;
}
.single-product .tydal-selection-option label strong { font-size: 18px; line-height: 1.25; }
.single-product .tydal-selection-option label span { font-size: 14px; line-height: 1.45; }
.single-product .tydal-selection-controls {
  align-items: stretch;
  grid-template-columns: minmax(100px, .75fr) minmax(170px, 1.25fr);
}
.single-product .tydal-selection-controls input,
.single-product .tydal-selection-controls button { min-height: 52px; }
.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product .wp-block-button__link {
  box-sizing: border-box;
  margin-top: auto;
  text-align: center;
  width: 100%;
}

.tydal-cart-roll-quantity,
.tydal-cart-metre-quantity { display: grid; gap: 4px; }
.tydal-cart-roll-quantity label { align-items: center; display: flex; gap: 7px; }
.tydal-cart-roll-quantity input,
.tydal-cart-metre-quantity input { max-width: 78px; }
.tydal-cart-roll-quantity small,
.tydal-cart-metre-quantity small,
.tydal-cart-roll-price { display: block; font-size: 11px; line-height: 1.35; margin-top: 4px; }
.tydal-cart-mode-help {
  background: #eef6fb;
  border: 1px solid #c9dde9;
  border-radius: 10px;
  margin: 0 0 18px;
  padding: 11px 14px;
}
.tydal-cart-mode-help summary { color: #0b3558; cursor: pointer; font-weight: 750; }
.tydal-cart-mode-help summary span {
  align-items: center;
  background: #0b3558;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  margin-right: 6px;
  width: 20px;
}
.tydal-cart-mode-help p { color: #4c626d; margin: 9px 0 1px; }

@media (max-width: 720px) {
  .single-product .tydal-selection-grid { grid-template-columns: 1fr; }
  .single-product .tydal-selection-controls,
  .tydal-selection-controls,
  .tydal-dual-selection--card .tydal-selection-controls,
  .tydal-unit-selection .tydal-selection-controls { grid-template-columns: 1fr; }
  .tydal-selection-help p { max-width: none; }
  .tydal-dual-selection { padding: 11px; }
  .tydal-card-quote > summary { min-height: 58px; }
  .tydal-card-quote-body { padding: 10px; }
  .single-product .tydal-selection-option { padding: 12px; }
  .single-product .tydal-selection-option label strong { font-size: 17px; }
  .single-product .tydal-dual-heading {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 22px;
    width: 100%;
  }
  .single-product .tydal-dual-heading > strong {
    font-size: 18px;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .single-product .tydal-selection-help { min-width: 0; width: 22px; }
  .single-product .tydal-selection-help[open] {
    grid-column: 1 / -1;
    margin-top: 0;
    width: 100%;
  }
  .single-product .tydal-selection-help[open] > summary { margin-left: auto; }
  .single-product .tydal-mode-picker button { font-size: 13px; min-height: 44px; }
  .single-product .tydal-mode-prompt { font-size: 12px; }
}
