/* ========================================
   FF EHBO CART
   Matches the card, field and CTA language used by checkout.css.
======================================== */
body.woocommerce-cart .woocommerce {
  color: #190d39;
}

/*
 * The cross-sells are deliberately rendered between the cart form and the
 * totals in the HTML. A grid keeps that accessible source order while placing
 * the totals at the top of the right-hand column.
 */
body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(290px, 2fr);
  grid-template-areas:
    "messages messages"
    "cart totals"
    "suggestions totals";
  column-gap: 16px;
  align-items: start;
}

body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form)::before,
body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form)::after {
  content: none;
  display: none;
}

body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > :not(.woocommerce-cart-form, .cross-sells, .cart-collaterals) {
  grid-area: messages;
}

body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > :is(.woocommerce-cart-form, .cross-sells, .cart-collaterals) {
  float: none;
  width: 100%;
  margin-right: 0;
}

body.woocommerce-cart .woocommerce-cart-form {
  grid-area: cart;
  float: left;
  width: calc(60% - 8px);
  margin: 0 16px 0 0;
  padding: 0;
  border: 1px solid #e7e9ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(25 13 57 / 5%);
  overflow: hidden;
}

body.woocommerce-cart .cart-collaterals {
  grid-area: totals;
  float: right;
  width: calc(40% - 8px);
}

/* Cross-sells sit beneath the product table and reuse the shop card design. */
body.woocommerce-cart .cross-sells {
  grid-area: suggestions;
  float: left;
  clear: left;
  width: calc(60% - 8px);
  margin: 50px 16px 0 0;
}

body.woocommerce-cart .cross-sells > h2 {
  margin: 0 0 20px;
  color: #190d39;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
}

body.woocommerce-cart .cross-sells > h2::before {
  content: "Aanbevolen voor jou";
  display: block;
  margin-bottom: 7px;
  color: #667394;
  font-family: var(--ffehbo-font-family);
  font-size: var(--ffehbo-font-size-meta);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.woocommerce-cart .cross-sells > h2::after {
  content: none;
  display: none;
}

body.woocommerce-cart .cross-sells ul.products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

body.woocommerce-cart .cross-sells ul.products li.product {
  min-width: 0;
}

body.woocommerce-cart .cross-sells ul.products li.product:hover,
body.woocommerce-cart .cross-sells ul.products li.product:focus-within {
  transform: translateY(-2px);
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  padding: 0 25px 25px;
  border: 1px solid #e7e9ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(25 13 57 / 5%);
  overflow: hidden;
}

body.woocommerce-cart .cart-collaterals .cart_totals > h2 {
  margin: 0 -25px;
  padding: 18px 25px;
  border-bottom: 1px solid #eceef3;
  background: #fff;
  color: #190d39;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

body.woocommerce-cart table.shop_table {
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
  padding: 16px 14px;
  border: 0;
  border-bottom: 1px solid #eceef3;
  color: #190d39;
  vertical-align: middle;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table thead {
  background: #f7f8fc;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.woocommerce-cart td.product-thumbnail {
  width: 92px;
}

body.woocommerce-cart td.product-thumbnail a {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  background: #f8f9fb;
  overflow: hidden;
}

body.woocommerce-cart td.product-thumbnail img {
  width: 60px;
  height: 60px;
  margin: 0;
  object-fit: contain;
}

body.woocommerce-cart td.product-name a {
  color: #190d39;
  font-weight: 600;
  text-decoration: none;
}

body.woocommerce-cart td.product-name a:hover,
body.woocommerce-cart td.product-name a:focus-visible {
  color: #087cf0;
  text-decoration: underline;
}

body.woocommerce-cart td.product-name dl.variation {
  margin: 7px 0 0;
  color: #676a7c;
  font-size: 13px;
}

body.woocommerce-cart td.product-name dl.variation dt,
body.woocommerce-cart td.product-name dl.variation dd {
  margin-bottom: 2px;
}

body.woocommerce-cart td.product-remove a.remove {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #e7e9ef;
  border-radius: 50%;
  background: #fff;
  color: #9299b8 !important;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

body.woocommerce-cart td.product-remove a.remove:hover,
body.woocommerce-cart td.product-remove a.remove:focus-visible {
  border-color: #b42318;
  background: #fff5f4;
  color: #b42318 !important;
  outline: none;
}

body.woocommerce-cart .woocommerce-cart-form td.actions {
  padding: 18px;
  border-bottom: 0;
}

body.woocommerce-cart .woocommerce-cart-form .coupon {
  display: none;
  gap: 10px;
}

body.woocommerce-cart .woocommerce-cart-form .coupon #coupon_code {
  width: 190px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d4d4d4 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #676a7c;
  box-shadow: none !important;
}

body.woocommerce-cart .woocommerce-cart-form .coupon #coupon_code:focus {
  border-color: #9abfd9 !important;
  box-shadow: 0 0 0 3px rgb(154 191 217 / 22%) !important;
  outline: none;
}

body.woocommerce-cart
  :is(.woocommerce-cart-form, .cart-collaterals, .return-to-shop)
  .button {
  min-height: 48px;
  padding: 12px 22px !important;
  border: 1px solid #190d39 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #190d39 !important;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: none !important;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

body.woocommerce-cart
  :is(.woocommerce-cart-form, .cart-collaterals, .return-to-shop)
  .button:hover,
body.woocommerce-cart
  :is(.woocommerce-cart-form, .cart-collaterals, .return-to-shop)
  .button:focus-visible {
  background: #f5c96f !important;
  color: #190d39 !important;
  transform: translateY(-1px);
  outline: 3px solid rgb(25 13 57 / 14%);
  outline-offset: 2px;
}

body.woocommerce-cart
  :is(.woocommerce-cart-form, .cart-collaterals, .return-to-shop)
  .button::before,
body.woocommerce-cart
  :is(.woocommerce-cart-form, .cart-collaterals, .return-to-shop)
  .button:before,
body.woocommerce-cart
  :is(.woocommerce-cart-form, .cart-collaterals, .return-to-shop)
  .button::after,
body.woocommerce-cart
  :is(.woocommerce-cart-form, .cart-collaterals, .return-to-shop)
  .button:after {
  content: none !important;
  display: none !important;
  background: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  padding: 20px 0 0;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  border: 0 !important;
  background: #fcda98 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:focus-visible {
  background: #f5c96f !important;
}

body.woocommerce-cart .cart-collaterals table.shop_table th,
body.woocommerce-cart .cart-collaterals table.shop_table td {
  padding: 15px 0;
}

body.woocommerce-cart .cart-collaterals table.shop_table td {
  text-align: right;
}

body.woocommerce-cart .cart-collaterals table.shop_table tr.order-total th,
body.woocommerce-cart .cart-collaterals table.shop_table tr.order-total td {
  border-bottom: 0;
  font-size: 18px;
}

body.woocommerce-cart .woocommerce-shipping-destination,
body.woocommerce-cart .woocommerce-shipping-calculator {
  margin-bottom: 0;
}

/* Shipping is selected and explained during checkout, not in this overview. */
body.woocommerce-cart .cart-collaterals tr.woocommerce-shipping-totals,
body.woocommerce-cart .cart-collaterals tr.shipping {
  display: none !important;
}

/* Course metadata follows the compact icon/label/value layout from checkout. */
body.woocommerce-cart td.product-name .ffehbo-cart-course-quantity {
  display: inline;
  margin-top: 0;
  color: #667394;
  font-size: 14px;
  font-weight: 400;
}

body.woocommerce-cart td.product-name dl.variation.ffehbo-course-details {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  color: #526184;
}

body.woocommerce-cart .ffehbo-course-details .ffehbo-course-detail {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  min-height: 21px;
  padding-left: 30px;
}

body.woocommerce-cart .ffehbo-course-details .ffehbo-course-detail--type {
  display: none;
}

body.woocommerce-cart .ffehbo-course-details .ffehbo-course-detail dt,
body.woocommerce-cart .ffehbo-course-details .ffehbo-course-detail dd {
  float: none;
  clear: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart .ffehbo-course-details .ffehbo-course-detail dt {
  color: #0b123f;
  font-weight: 700;
}

body.woocommerce-cart .ffehbo-course-details .ffehbo-course-detail dd,
body.woocommerce-cart .ffehbo-course-details .ffehbo-course-detail dd p {
  color: #526184;
  font-size: 14px;
  line-height: 1.45;
}

body.woocommerce-cart .ffehbo-course-detail--datum,
body.woocommerce-cart .ffehbo-course-detail--data,
body.woocommerce-cart .ffehbo-course-detail--cursusdata {
  --ffehbo-detail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
}

body.woocommerce-cart .ffehbo-course-detail--tijd,
body.woocommerce-cart .ffehbo-course-detail--tijden {
  --ffehbo-detail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
}

body.woocommerce-cart .ffehbo-course-detail--locatie {
  --ffehbo-detail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

body.woocommerce-cart .ffehbo-course-details :is(.ffehbo-course-detail--datum, .ffehbo-course-detail--data, .ffehbo-course-detail--cursusdata, .ffehbo-course-detail--tijd, .ffehbo-course-detail--tijden, .ffehbo-course-detail--locatie)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: #59698f;
  opacity: 0.5;
  -webkit-mask: var(--ffehbo-detail-icon) center / contain no-repeat;
  mask: var(--ffehbo-detail-icon) center / contain no-repeat;
}

/* Empty cart: a focused next step without WooCommerce's duplicate notice. */
body.woocommerce-cart:has(.ffehbo-empty-cart) .wc-empty-cart-message {
  display: none;
}

body.woocommerce-cart .ffehbo-empty-cart {
  position: relative;
  display: grid;
  box-sizing: border-box;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
  width: 100%;
  min-height: 360px;
  padding: clamp(38px, 5vw, 64px);
  border: 1px solid #e5e9f1;
  border-radius: 20px;
  background: linear-gradient(125deg, #fff 0%, #fbfcfe 55%, #f2f8fa 100%);
  box-shadow: 0 18px 50px rgb(25 13 57 / 8%);
  overflow: hidden;
}

body.woocommerce-cart .ffehbo-empty-cart::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #fcda98, #ffc357);
}

body.woocommerce-cart .ffehbo-empty-cart::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 220px;
  height: 220px;
  border: 38px solid rgb(154 191 217 / 12%);
  border-radius: 50%;
  pointer-events: none;
}

body.woocommerce-cart .ffehbo-empty-cart__visual {
  position: relative;
  z-index: 1;
  display: grid;
  width: 220px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #f4d798;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff8e9, #ffe0a3);
  box-shadow: 0 16px 34px rgb(25 13 57 / 10%);
  transform: rotate(-3deg);
}

body.woocommerce-cart .ffehbo-empty-cart__visual svg {
  width: 54%;
  fill: none;
  stroke: #190d39;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transform: rotate(3deg);
}

body.woocommerce-cart .ffehbo-empty-cart__visual svg circle {
  fill: #190d39;
}

body.woocommerce-cart .ffehbo-empty-cart__visual .ffehbo-empty-cart__spark {
  stroke: #087cf0;
}

body.woocommerce-cart .ffehbo-empty-cart__content {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

body.woocommerce-cart .ffehbo-empty-cart__eyebrow {
  display: block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e9f3fb;
  color: #1269b1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.woocommerce-cart .ffehbo-empty-cart h2 {
  margin: 0 0 12px;
  color: #190d39;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
}

body.woocommerce-cart .ffehbo-empty-cart__content > p:not(.return-to-shop) {
  max-width: 520px;
  margin: 0;
  color: #526184;
  font-size: 16px;
  line-height: 1.6;
}

body.woocommerce-cart .ffehbo-empty-cart__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 22px 0 0;
  padding: 0;
  color: #334268;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

body.woocommerce-cart .ffehbo-empty-cart__benefits li {
  position: relative;
  padding: 7px 12px 7px 34px;
  border: 1px solid #e4eaf0;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
}

body.woocommerce-cart .ffehbo-empty-cart__benefits li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 10px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #dff1e8;
  color: #237a50;
  font-size: 11px;
  line-height: 1;
  transform: translateY(-50%);
}

body.woocommerce-cart .ffehbo-empty-cart .return-to-shop {
  margin: 28px 0 0;
}

body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 26px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #fcda98 0%, #ffc357 100%) !important;
  box-shadow: 0 10px 22px rgb(25 13 57 / 13%) !important;
  gap: 10px;
}

body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 0.2s ease;
}

body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button:hover svg,
body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button:focus-visible svg {
  transform: translateX(3px);
}

body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button:hover,
body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button:focus-visible {
  background: linear-gradient(135deg, #f8cf80 0%, #f8b93d 100%) !important;
  box-shadow: 0 13px 26px rgb(25 13 57 / 18%) !important;
}

body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button::before,
body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button:before,
body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button::after,
body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button:after {
  content: none !important;
  display: none !important;
  background: none !important;
}

@media (max-width: 980px) {
  body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) {
    display: block;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-cart .cross-sells {
    float: none;
    width: 100%;
    margin-right: 0;
  }

  body.woocommerce-cart .cart-collaterals {
    margin-top: 24px;
  }

  body.woocommerce-cart .cross-sells {
    margin-top: 24px;
    padding: 22px;
  }
}

@media (max-width: 700px) {
  body.woocommerce-cart .ffehbo-empty-cart {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 32px 24px 36px;
    border-radius: 18px;
  }

  body.woocommerce-cart .ffehbo-empty-cart__visual {
    width: 132px;
    margin: 0 auto 28px;
    border-radius: 14px;
  }

  body.woocommerce-cart .ffehbo-empty-cart__content {
    padding: 0;
    text-align: center;
  }

  body.woocommerce-cart .ffehbo-empty-cart__eyebrow {
    margin-inline: auto;
  }

  body.woocommerce-cart .ffehbo-empty-cart__benefits {
    flex-direction: column;
    align-items: center;
  }

  body.woocommerce-cart .ffehbo-empty-cart .return-to-shop .button {
    width: 100%;
  }

  body.woocommerce-cart .woocommerce-cart-form {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table_responsive
    tr.cart_item {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e7e9ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgb(25 13 57 / 5%);
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table_responsive
    tr.cart_item
    td {
    min-height: 44px;
    padding: 10px 0;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table_responsive
    td.product-thumbnail {
    display: block;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table_responsive
    td.product-thumbnail::before {
    content: none;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table_responsive
    td.product-thumbnail
    a {
    margin-left: auto;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions {
    padding: 16px 0 0;
  }

  body.woocommerce-cart .woocommerce-cart-form .coupon {
    display: none;
  }

  body.woocommerce-cart .woocommerce-cart-form .coupon #coupon_code,
  body.woocommerce-cart .woocommerce-cart-form .coupon .button {
    width: 50%;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions > .button {
    width: 100%;
    margin-top: 10px;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    padding-right: 18px;
    padding-left: 18px;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals > h2 {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  body.woocommerce-cart .cross-sells ul.products {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart .cross-sells {
    padding: 18px;
  }

  body.woocommerce-cart .ffehbo-course-details .ffehbo-course-detail {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
  }
}
