/* Shop filter desktop QA: prevent filter controls from colliding with product cards. */

.ct-shop-layout {
  align-items: start;
}

.ct-filter-panel {
  min-width: 0;
  overflow: hidden;
}

.ct-filter-form label, .ct-filter-form .ct-price-range {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.ct-filter-form label > span, .ct-price-range > span, .ct-filter-form legend {
  color: #07111f;
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ct-filter-form input, .ct-filter-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  background: #fff;
}

.ct-filter-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px 12px;
  border: 1px solid #dbe6f3;
  background: #f8fafc;
}

.ct-filter-form legend {
  padding: 0 6px;
}

.ct-check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.ct-check-row input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.ct-check-row span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: .92rem;
}

.ct-price-range-grid {
  min-width: 0;
}

.ct-price-range-grid label small, .ct-price-range > small {
  color: #64748b;
  font-size: .76rem;
}

.ct-shop-main {
  min-width: 0;
}

.ct-shop-toolbar {
  align-items: flex-start;
}

.ct-shop-toolbar > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ct-shop-toolbar > div:first-child span {
  color: #475569;
  line-height: 1.4;
}

.checkout-offline-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #f4b8bb;
  border-left: 6px solid var(--ct-red);
  background: #fff7f7;
  color: #07111f;
}

.checkout-offline-notice > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.checkout-offline-notice strong {
  color: #b91c1c;
  font-size: 1rem;
}

.checkout-offline-notice span, .checkout-offline-notice small {
  color: #475569;
  line-height: 1.45;
}

.checkout-offline-notice .ct-btn {
  white-space: nowrap;
}

@media (min-width: 901px) {
.ct-shop-layout {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 28px;
  }

  .ct-filter-panel {
    position: sticky;
    top: 132px;
    align-self: start;
    padding: 20px;
  }

  .ct-filter-toggle {
    display: none;
  }

  .ct-filter-form {
    display: grid;
    gap: 15px;
  }
}

@media (max-width: 900px) {
.ct-filter-panel {
    padding: 18px;
  }

  .checkout-offline-notice {
    grid-template-columns: 1fr;
  }

  .checkout-offline-notice .ct-btn {
    width: 100%;
  }
}
