/* KSD Environmental - Custom Styles */
/* 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;
  }
}

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

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

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

/* 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;
}

/* =============================================
   SKIP HIRE SELECTOR
   ============================================= */

#sks-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Header */
.sks-header {
  margin-bottom: 24px;
  p {
    margin-bottom: 16px;
  }
}
.sks-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Question banner */
.sks-banner {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}
.sks-banner__question {
  font-size: 1.1em;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 16px;
}
.sks-banner__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sks-banner__btn {
  background: transparent;
  color: #282828;
  border: 1px solid #282828;
  padding: 9px 20px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.sks-banner__btn:hover {
  border-color: #999;
  color: #333;
}
.sks-banner__btn.is-active {
  background: #1d3161;
  color: #fff;
  border-color: #1d3161;
  padding: 11px 20px;
}

/* Blocked / call-us message */
.sks-blocked-msg {
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: #721c24;
  font-size: 1em;
  line-height: 1.6;
}
.sks-blocked-msg a {
  color: #721c24;
  font-weight: 700;
}

/* Permit toggle row */
.sks-permit-row {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sks-permit-row__label {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1 1 auto;
}
.sks-permit-row__btns {
  display: flex;
  gap: 8px;
}
.sks-permit-btn {
  background: transparent;
  color: #282828;
  border: 1px solid #282828;
  padding: 9px 20px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.sks-permit-btn:hover {
  border-color: #999;
  color: #333;
}
.sks-permit-btn.is-active {
  background: #1d3161;
  color: #fff;
  border-color: #1d3161;
  padding: 11px 20px;
}

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

/* Product card */
.sks-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
}
.sks-card--locked {
  opacity: 0.45;
}
.sks-card--locked .sks-book-btn,
.sks-card--locked .sks-call-btn {
  pointer-events: none;
  cursor: not-allowed;
}
/* Info button stays clickable even when card is locked */
.sks-card--locked .sks-info-btn {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
}
.sks-card__image {
  width: 100%;
  height: 160px;
}
.sks-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sks-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.sks-card__name {
  font-size: 0.95em;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.sks-card__price {
  color: #2c7be5;
  font-size: 1em;
  margin: 0 0 16px;
}

/* Card actions row */
.sks-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

/* Book Now button */
.sks-book-btn {
  width: 100%;
  background: #1d3161;
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background 0.15s;
}
.sks-book-btn:hover:not(:disabled) {
  background: #444;
}
.sks-book-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Call Us button (CTB products) */
.sks-call-btn {
  display: block;
  width: 100%;
  background: transparent;
  color: #1d3161;
  border: 2px solid #1d3161;
  padding: 9px 20px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition:
    background 0.15s,
    color 0.15s;
  box-sizing: border-box;
}
.sks-call-btn:hover {
  background: #2c2c2c;
  color: #fff;
}

/* More Information button */
.sks-info-btn {
  width: 100%;
  background: transparent;
  color: #282828;
  border: 1px solid #282828;
  padding: 9px 20px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.sks-info-btn:hover {
  border-color: #999;
  color: #333;
}

/* Inline error below Book Now */
.sks-book-error {
  color: #c0392b;
  font-size: 0.82em;
  margin: 8px 0 0;
  text-align: center;
}

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

/* ── Permit product selection ── */
.sks-permit-products {
  margin-bottom: 24px;
}
.sks-permit-products__label {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
}
.sks-permit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.sks-permit-card {
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  padding: 16px 20px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
  position: relative;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .sks-permit-card {
    flex: 1 1 calc(50% - 7px);
    max-width: calc(50% - 7px);
  }
}
@media (max-width: 560px) {
  .sks-permit-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.sks-permit-card:hover {
  border-color: #aaa;
}
.sks-permit-card.is-selected {
  border-color: #1d3161;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.sks-permit-card__body {
  flex: 1;
}
.sks-permit-card__name {
  font-size: 0.95em;
  font-weight: 700;
  margin: 0 0 4px;
  color: #2c2c2c;
}
.sks-permit-card__price {
  color: #2c7be5;
  font-size: 0.95em;
  font-weight: 600;
  margin: 0 0 6px;
}
.sks-permit-card__desc {
  font-size: 0.82em;
  color: #666;
  line-height: 1.5;
}
.sks-permit-card__desc p {
  margin: 0;
}
.sks-permit-card__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.sks-permit-card.is-selected .sks-permit-card__check {
  background: #1d3161;
  border-color: #1d3161;
  color: #fff;
}

/* ── Modal ── */
.sks-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.sks-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}
.sks-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6em;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0 4px;
  z-index: 1;
  transition: color 0.15s;
}
.sks-modal__close:hover {
  color: #111;
}
.sks-modal__inner {
  display: flex;
  gap: 32px;
  padding: 36px;
  align-items: center;
}
.sks-modal__image {
  flex: 0 0 260px;
  max-width: 260px;
}
.sks-modal__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.sks-modal__content {
  flex: 1;
}
.sks-modal__name {
  font-size: 1.5em;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
  line-height: 1.2;
}
.sks-modal__price {
  font-size: 1.25em;
  font-weight: 600;
  color: #2c7be5;
  margin: 0 0 20px;
}
.sks-modal__desc {
  font-size: 0.95em;
  color: #444;
  line-height: 1.7;
}
.sks-modal__desc p {
  margin: 0 0 10px;
}

/* Prevent body scroll when modal open */
body.sks-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .sks-modal__inner {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .sks-modal__image {
    flex: none;
    max-width: 100%;
  }
  .sks-modal__name {
    font-size: 1.2em;
  }
}

@media (max-width: 575px) {
  .sks-permit-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
