/* ---------------------------
   PRODUCT TITLES & METADATA
---------------------------- */

/* Main product (eBike) titles */
.peb-is-ebike .wc-block-components-product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

/* Accessory titles */
.peb-is-accessory .wc-block-components-product-name {
  font-size: 1rem;
  font-weight: 500;
  color: #444;
}

/* "Accessory:" prefix for clarity */
.peb-is-accessory .wc-block-components-product-name::before {
  content: "Accessory: ";
  font-weight: bold;
  color: #888;
}

/* Sale badge styling */
.wc-block-components-product-badge {
  background: #e6f8e6;
  color: #1a7f37;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}


/* ---------------------------
   QUANTITY + PRICE SECTION
---------------------------- */

/* Highlight high-quantity warning */
.wc-block-components-quantity-selector__input[value="25"] {
  border: 2px solid #ff4d4f;
  background-color: #fff0f0;
}

/* Subtle separation between cart items */
.peb-cart-line-items .wc-block-cart-items__row + .wc-block-cart-items__row {
  border-top: 1px solid #ddd;
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Slightly tighter spacing between accessories */
.peb-is-accessory + .peb-is-accessory {
  margin-top: -0.5rem;
}


/* ---------------------------
   CHECKOUT CTA BUTTON
---------------------------- */

.wc-block-cart__submit-button {
  background-color: #000;
  color: #fff;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  width: 100%;
  text-align: center;
  transition: background 0.3s ease;
}

.wc-block-cart__submit-button:hover,
.wc-block-cart__submit-button:focus {
  background-color: #222;
}

/* Sticky bottom CTA container */
.wc-block-cart__submit-container {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 999;
}


/* ---------------------------
   RESPONSIVE & ACCESSIBILITY
---------------------------- */

/* Improve tap target area on quantity buttons */
.wc-block-components-quantity-selector__button {
  min-width: 36px;
  min-height: 36px;
}

/* Better text contrast inside product details */
.wc-block-components-product-details span {
  color: #333;
  font-size: 0.875rem;
}

.peb-section-header td {
  padding-top: 2rem;
}

.peb-section-label {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.peb-cart-line-items tr {
  opacity: 0;
  transform: translateY(10px);
  animation: peb-fadein 0.3s ease forwards;
}

@keyframes peb-fadein {
  to {
    opacity: 1;
    transform: none;
  }
}


/* Make the entire sidebar sticky */
.wc-block-cart__sidebar {
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  z-index: 100;
}

/* Add shadow above button section to separate visually */
.peb-cart-proceed-to-checkout {
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
  padding-top: 1rem;
  background: #fff;
  margin-top: 2rem;
}

/* Style for the container holding the button */
.wc-block-cart__submit-container {
  padding: 1rem 0;
}

/* Full-width CTA button styling */
.wc-block-cart__submit-button {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #000;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  display: block;
}

/* ---------------------------------------
   Mobile and Tablet (1023px and below)
------------------------------------------ */
@media only screen and (max-width: 1023px) {

  /* Adjust product title sizes for smaller screens */
  .peb-is-ebike .wc-block-components-product-name {
    font-size: 1.1rem;
  }

  .peb-is-accessory .wc-block-components-product-name {
    font-size: 0.95rem;
  }

  /* Accessory prefix spacing */
  .peb-is-accessory .wc-block-components-product-name::before {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  /* Reduce padding on quantity controls */
  .wc-block-components-quantity-selector__input {
    padding: 0.25rem;
    font-size: 0.875rem;
    max-width: 60px;
  }

  .wc-block-components-quantity-selector__button {
    min-width: 32px;
    min-height: 32px;
    font-size: 1rem;
  }

  /* Tighter spacing in accessory list */
  .peb-is-accessory + .peb-is-accessory {
    margin-top: 0;
    padding-top: 0.5rem;
  }

  /* Reduce section header padding */
  .peb-section-header td {
    padding-top: 1.25rem;
  }

  .peb-section-label {
    font-size: 1rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
  }

  /* CTA spacing and sticky tweaks for mobile */
  .peb-cart-proceed-to-checkout {
    padding-top: 0.5rem;
    margin-top: 1rem;
  }

  .wc-block-cart__submit-container {
    padding: 0.75rem 0.5rem;
  }

  .wc-block-cart__submit-button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  /* Make sidebar content full-width stacked */
  .wc-block-cart__sidebar {
    position: relative;
    top: auto;
    padding-top: 2rem;
  }

  /* Hide coupon toggle if not critical on mobile */
  .wc-block-components-panel__button {
    font-size: 0.9rem;
  }

  /* Accessibility tweaks */
  .wc-block-components-product-details span {
    font-size: 0.8rem;
  }

  /* Hide hover effect since it's not usable on touch */
  .wc-block-cart__submit-button:hover {
    background-color: #000;
  }

}
