/* KSD Environmental - Custom Styles */

/* Cart page - back button */
.bws-back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: inherit;
    text-decoration: none;
    font-size: 0.9em;
}
.bws-back-btn:hover {
    text-decoration: underline;
}

/* Product Archive Page */

/* Products Wrapper */
#shop-products {
  .shop_bar {
    display: none;
  }
}

#delivery_date_field {
  label {
    cursor: pointer;
  }
  .input-text {
    font-size: 1em;
    line-height: 1.6;
    outline: 0;
    padding: 0.75rem;
    height: calc(2.15em + 0.975rem + 4px);
    color: #282828;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #ddd;
    transition:
      border-color 0.15s ease-in-out,
      box-shadow 0.15s ease-in-out;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -webkit-appearance: none;
    border-radius: 0 !important;
    cursor: pointer;
  }
}

#place_order.button {
  background-color: #1d3161 !important;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  height: 54px;
}

.back-to-site {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 20px;
  svg {
    width: 20px;
    height: 20px;
  }
}

.shop_table.cart tbody tr td.product-thumbnail {
  display: none;
}

.shop_table tbody .et-product-thumbnail {
  display: none;
}

.woocommerce-checkout {
  #delivery_date_field {
    margin-top: 0;
  }
}

.woocommerce-checkout {
  .country_to_state {
    height: 54px !important;
    border-radius: 0 !important;
  }
}

.woocommerce-shipping-totals .woocommerce-Price-amount {
  display: none;
}

.woocommerce-shipping-totals .et-shipping-th-title {
  padding: 0 !important;
}

/* Postcode Lookup Widget */
.ksd-postcode-lookup {
  margin-bottom: 24px;
}

.ksd-postcode-lookup__label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
  font-weight: 500;
}

.ksd-postcode-lookup__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

#ksd-postcode-input {
  flex: 1;
  font-size: 1em;
  line-height: 1.6;
  outline: 0;
  padding: 0.75rem;
  height: calc(2.15em + 0.975rem + 4px);
  color: #282828;
  background-color: #fff;
  background-clip: padding-box;
  border: 2px solid #ddd;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -webkit-appearance: none;
  border-radius: 0;
}

#ksd-postcode-input:focus {
  border-color: #1d3161;
  background: #fff;
}

#ksd-postcode-find {
  height: 54px;
  background: #1d3161;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  padding: 9px 20px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

#ksd-postcode-find:hover {
  background: #1d3161;
}

#ksd-postcode-find:disabled {
  background: #1d3161;
  cursor: default;
  opacity: .75;
}

.ksd-postcode-lookup__dropdown {
  margin-top: 8px;
}

.ksd-postcode-lookup__dropdown select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #f0f2f7;
  border: 1px solid #e0e3eb;
  border-radius: 6px;
  font-size: 1rem;
  color: #333;
  appearance: auto;
  cursor: pointer;
  border-radius: 0 !important;
}

.ksd-postcode-lookup__error {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #c0392b;
}


/* =============================================
   BULKY WASTE ITEM SELECTOR
   ============================================= */

#bws-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 120px; /* bottom padding for sticky bar */
}

/* Header */
.bws-header {
  margin-bottom: 24px;
}
.bws-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 4px;
}
.bws-subtitle {
  color: #666;
  margin: 0;
}

/* Search */
.bws-search-wrap {
  margin-bottom: 28px;
}
.bws-search-label {
  font-size: 0.95em;
  margin-bottom: 8px;
  color: #333;
}
.bws-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95em;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.bws-search:focus {
  border-color: #2c2c2c;
}

/* Grid */
.bws-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .bws-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .bws-grid {
    grid-template-columns: 1fr;
  }
}

/* Product card */
.bws-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.bws-card.is-selected {
  border-color: #2c2c2c;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.bws-card__image {
  width: 100%;
  height: 160px;
  display: none;
}
.bws-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bws-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.bws-card__name {
  font-size: 0.95em;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.bws-card__price {
  color: #2c7be5;
  font-size: 1em;
  margin: 0 0 16px;
}

/* Quantity stepper */
.bws-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.bws-stepper__btn {
  background: #f5f5f5;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.1em;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
  color: #333;
}
.bws-stepper__btn:hover:not(:disabled) {
  background: #e0e0e0;
}
.bws-stepper__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.bws-stepper__val {
  min-width: 36px;
  text-align: center;
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
  padding: 0 4px;
}

/* No results message */
.bws-no-results {
  text-align: center;
  color: #888;
  margin-top: 40px;
  font-size: 1em;
}

/* Sticky bottom bar */
.bws-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c2c2c;
  color: #fff;
  padding: 14px 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.bws-bar.is-visible {
  transform: translateY(0);
}
.bws-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bws-bar__summary {
  font-size: 1em;
  font-weight: 500;
}
.bws-bar__btn {
  background: #fff;
  color: #2c2c2c;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95em;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.bws-bar__btn:hover:not(:disabled) {
  background: #f0f0f0;
}
.bws-bar__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.bws-bar__error {
  text-align: center;
  color: #ff8080;
  font-size: 0.85em;
  margin: 6px 0 0;
}
@media (max-width: 575px) {
  .bws-bar__inner {
    flex-direction: column;
    gap: 10px;
  }
  .bws-bar__btn {
    width: 100%;
    text-align: center;
  }
}
