/**
 * Wellspring CBD — Modern Dedicated Cart Page Stylesheet (v1.0.0)
 * Responsive 2-column CRO architecture for /cart/.
 */

/* ==========================================================================
   1. RESET & PAGE CONTAINER
   ========================================================================== */
.wsc_cart_page_wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 80px;
  padding: 10px 20px 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: #192c27;
}

/* Hide legacy Blocksy/WooCommerce cart headings & empty containers */
.woocommerce-cart .entry-header {
  display: none !important;
}

/* Ensure WooCommerce notice alerts look clean and integrated */
.wsc_cart_page_wrap .woocommerce-notices-wrapper {
  margin-bottom: 24px;
}
.wsc_cart_page_wrap .woocommerce-message,
.wsc_cart_page_wrap .woocommerce-info,
.wsc_cart_page_wrap .woocommerce-error {
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 0 20px !important;
  padding: 16px 22px !important;
  border: none !important;
}
.wsc_cart_page_wrap .woocommerce-message {
  background: #f2f8ed !important;
  color: #2e600a !important;
  border-left: 4px solid #62b414 !important;
}
.wsc_cart_page_wrap .woocommerce-error {
  background: #fdf2f2 !important;
  color: #991b1b !important;
  border-left: 4px solid #dc2626 !important;
}

/* ==========================================================================
   2. HEADER & REASSURANCE BANNER
   ========================================================================== */
.wsc_cart_head {
  margin-bottom: 24px;
}
.wsc_cart_title_row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.wsc_cart_title {
  font-family: Georgia, serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #192c27 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}
.wsc_cart_count_badge {
  font-size: 14px;
  font-weight: 600;
  color: #5c6b66;
}

/* Top 3-Pillar Reassurance Row */
.wsc_cart_usp_row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #fbfaf7;
  border: 1px solid #ece4d4;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 16px;
}
.wsc_cart_usp_item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wsc_cart_usp_icon {
  font-size: 20px;
  flex-shrink: 0;
}
.wsc_cart_usp_text {
  display: flex;
  flex-direction: column;
}
.wsc_cart_usp_title {
  font-size: 13.5px;
  font-weight: 700;
  color: #192c27;
  line-height: 1.2;
}
.wsc_cart_usp_sub {
  font-size: 11.5px;
  color: #5c6b66;
  margin-top: 2px;
}

/* Dynamic Free Shipping Bar */
.wsc_cart_shipbar {
  background: #ffffff;
  border: 1px solid #e7ece9;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.wsc_cart_shipbar_msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #192c27;
  margin: 0 0 10px 0;
}
.wsc_cart_shipbar_msg strong {
  color: #62b414;
}
.wsc_cart_shipbar_track {
  width: 100%;
  height: 8px;
  background: #eef2f0;
  border-radius: 6px;
  overflow: hidden;
}
.wsc_cart_shipbar_fill {
  height: 100%;
  background: #62b414;
  border-radius: 6px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. TWO-COLUMN LAYOUT
   ========================================================================== */
.wsc_cart_grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.wsc_cart_main_col {
  flex: 1;
  min-width: 0;
}
.wsc_cart_side_col {
  width: 380px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

/* ==========================================================================
   4. ITEM CARDS LIST
   ========================================================================== */
.wsc_cart_items_wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.wsc_cart_card {
  display: flex;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e7ece9;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.wsc_cart_card:hover {
  border-color: #d1ded7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.wsc_cart_img_wrap {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fbfaf7;
  overflow: hidden;
  border: 1px solid #e7ece9;
}
.wsc_cart_img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wsc_cart_info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wsc_cart_info_top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.wsc_cart_item_title {
  font-family: Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #192c27 !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
.wsc_cart_item_title:hover {
  color: #62b414 !important;
}

.wsc_cart_meta {
  font-size: 13px;
  color: #5c6b66;
  margin-bottom: 12px;
}
.wsc_cart_meta p {
  margin: 0 0 4px 0;
}
.wsc_cart_meta .wsc_sub_badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f2f8ed;
  color: #2e600a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.wsc_cart_controls_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Interactive Stepper */
.wsc_cart_stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #d1ded7;
  border-radius: 8px;
  background: #ffffff;
  height: 38px;
  overflow: hidden;
}
.wsc_cart_step_btn {
  width: 36px;
  height: 100%;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: #192c27;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}
.wsc_cart_step_btn:hover {
  background: #f2f7f4;
  color: #62b414;
}
.wsc_cart_step_input {
  width: 44px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #192c27;
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
}
.wsc_cart_step_input::-webkit-outer-spin-button,
.wsc_cart_step_input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Prices & Remove Link */
.wsc_cart_price_group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.wsc_cart_unit_price {
  font-size: 13px;
  color: #5c6b66;
}
.wsc_cart_line_total {
  font-size: 18px;
  font-weight: 800;
  color: #192c27;
}

.wsc_cart_remove_link {
  font-size: 12.5px;
  color: #828d89;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.wsc_cart_remove_link:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* ==========================================================================
   5. COUPON & UTILITY BAR
   ========================================================================== */
.wsc_cart_actions_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e7ece9;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.wsc_coupon_wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 420px;
}
.wsc_coupon_input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid #d1ded7;
  border-radius: 8px;
  font-size: 14px;
  color: #192c27;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wsc_coupon_input:focus {
  border-color: #62b414;
  box-shadow: 0 0 0 3px rgba(98, 180, 20, 0.15);
}
.wsc_coupon_btn {
  height: 44px;
  padding: 0 20px;
  background: #192c27 !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  white-space: nowrap;
}
.wsc_coupon_btn:hover {
  background: #62b414 !important;
  transform: translateY(-1px);
}

.wsc_continue_shopping_link {
  font-size: 13.5px;
  font-weight: 600;
  color: #5c6b66;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.wsc_continue_shopping_link:hover {
  color: #192c27;
}

/* ==========================================================================
   6. IN-CART CROSS-SELL ("COMPLETE YOUR ROUTINE")
   ========================================================================== */
.wsc_cart_upsell_sec {
  background: linear-gradient(145deg, #192c27 0%, #0e1a17 100%);
  border: 1px solid rgba(98, 180, 20, 0.28);
  border-radius: 18px;
  padding: 24px;
  margin-top: 12px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 28, 24, 0.2);
}
.wsc_cart_upsell_hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.wsc_cart_upsell_title {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.wsc_cart_upsell_sub {
  font-size: 12.5px;
  color: #b7c7c0;
}

.wsc_cart_upsell_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.wsc_cart_up_card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease, transform 0.2s ease;
}
.wsc_cart_up_card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}
.wsc_cart_up_imgbox {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 10px;
}
.wsc_cart_up_imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wsc_cart_up_name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wsc_cart_up_bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.wsc_cart_up_price {
  font-size: 14.5px;
  font-weight: 800;
  color: #62b414;
}
.wsc_cart_up_btn {
  background: #62b414;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.wsc_cart_up_btn:hover {
  background: #529910;
  transform: scale(1.04);
}

/* ==========================================================================
   7. STICKY ORDER SUMMARY SIDEBAR
   ========================================================================== */
.wsc_cart_summary {
  background: #ffffff;
  border: 1px solid #e7ece9;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.wsc_summary_title {
  font-family: Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #192c27 !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #e7ece9;
}

.wsc_summary_rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.wsc_summary_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  color: #434f58;
}
.wsc_summary_row.discount {
  color: #2e600a;
  font-weight: 600;
}
.wsc_summary_row.total {
  font-size: 20px;
  font-weight: 800;
  color: #192c27;
  padding-top: 16px;
  border-top: 1.5px solid #e7ece9;
  margin-top: 4px;
}

.wsc_cart_checkout_cta {
  width: 100% !important;
  height: 52px !important;
  background: #62b414 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 16px rgba(98, 180, 20, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-bottom: 20px !important;
}
.wsc_cart_checkout_cta:hover {
  background: #529910 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(98, 180, 20, 0.45) !important;
}
.wsc_cart_checkout_cta:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Pay Marks Row Under CTA */
.wsc_cart_paymarks_row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wsc_cart_ssl_lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #5c6b66;
  text-align: center;
  margin-bottom: 20px;
}

.wsc_cart_perks_list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #e7ece9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wsc_cart_perk_item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #5c6b66;
  line-height: 1.4;
}
.wsc_cart_perk_icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: -1px;
}

/* ==========================================================================
   8. EMPTY CART STATE
   ========================================================================== */
.wsc_cart_empty_wrap {
  text-align: center;
  max-width: 820px;
  margin: 40px auto 80px;
  background: #ffffff;
  border: 1px solid #ece4d4;
  border-radius: 20px;
  padding: 48px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.wsc_cart_empty_icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}
.wsc_cart_empty_title {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #192c27;
  margin: 0 0 10px;
}
.wsc_cart_empty_desc {
  font-size: 15px;
  color: #5c6b66;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.wsc_cart_empty_ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.wsc_cart_empty_quiz_btn {
  background: #192c27 !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.wsc_cart_empty_quiz_btn:hover {
  background: #62b414 !important;
  transform: translateY(-2px);
}
.wsc_cart_empty_shop_btn {
  background: transparent !important;
  color: #192c27 !important;
  border: 1.5px solid #192c27 !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 11px 24px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.wsc_cart_empty_shop_btn:hover {
  background: #192c27 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 920px) {
  .wsc_cart_grid {
    flex-direction: column;
  }
  .wsc_cart_side_col {
    width: 100%;
    position: static;
  }
  .wsc_cart_upsell_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wsc_cart_page_wrap {
    padding: 10px 14px 40px;
  }
  .wsc_cart_title {
    font-size: 26px !important;
  }
  .wsc_cart_usp_row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
  }
  .wsc_cart_card {
    padding: 14px;
    gap: 14px;
  }
  .wsc_cart_img_wrap {
    width: 70px;
    height: 70px;
  }
  .wsc_cart_item_title {
    font-size: 16px !important;
  }
  .wsc_cart_actions_row {
    flex-direction: column;
    align-items: stretch;
  }
  .wsc_coupon_wrap {
    max-width: 100%;
  }
  .wsc_cart_upsell_grid {
    grid-template-columns: 1fr;
  }
}
