@charset "UTF-8";
/*
 * Cart page.
 *
 * Loaded only on the cart, via inc/enqueue.php. Every selector is kf-cart-
 * prefixed. WooCommerce's own classes appear only where its markup is being
 * restyled — the form fields and hooks are untouched.
 */
.kf-cart {
  padding: 64px 0 64px;
}

.kf-cart__masthead {
  margin-bottom: 32px;
}

/*
 * inline-block so the box shrinks to the words and the rule below can be
 * measured from the title rather than from the column.
 */
.kf-cart__title {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 20px;
  font-size: 28px;
  line-height: 1.2;
  color: #1f2933;
}
.kf-cart__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 14px);
  height: 2px;
  background: #0f9d78;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 157, 120, 0.35);
}

/* -------------------------------------------------------------------------
 * Layout
 * ---------------------------------------------------------------------- */
.kf-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 32px;
}

.kf-cart__main {
  min-width: 0;
}

/* -------------------------------------------------------------------------
 * Items
 * ---------------------------------------------------------------------- */
.kf-cart__items {
  background: #ffffff;
  border: 1px solid #e2e8e6;
  border-radius: 12px;
  overflow: hidden;
}

/* The five columns every row shares — the last is the remove action. */
.kf-cart__head,
.kf-cart__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 130px 110px 28px;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

.kf-cart__head {
  background: #f3f9f7;
  border-bottom: 1px solid #e2e8e6;
  font-size: 13px;
  font-weight: 600;
  color: #5c6b73;
}
.kf-cart__head span:not(:first-child) {
  text-align: right;
}

.kf-cart__item {
  border-bottom: 1px solid #e2e8e6;
}

.kf-cart__product {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.kf-cart__thumb {
  flex-shrink: 0;
  width: 72px;
}
.kf-cart__thumb img {
  display: block;
  width: 100%;
  height: auto;
  background: #f3f9f7;
  border-radius: 8px;
  /* Product renders are shot on white; multiply drops that onto the tint. */
  mix-blend-mode: multiply;
}

.kf-cart__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kf-cart__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2933;
}
.kf-cart__name a {
  color: inherit;
}
.kf-cart__name a:hover {
  color: #0c7d5f;
}
.kf-cart__name dl,
.kf-cart__name p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #5c6b73;
}

/*
 * Woo renders this as a 1.5em red round × via `.woocommerce a.remove`, and its
 * colour carries !important — hence the matching !important here, which is the
 * one place in this theme it is unavoidable. The rest is beaten on specificity.
 */
.kf-cart .kf-cart__remove.remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #5c6b73 !important;
  transition: color 0.15s ease, background 0.15s ease;
}
.kf-cart .kf-cart__remove.remove svg {
  flex-shrink: 0;
}
.kf-cart .kf-cart__remove.remove:hover {
  color: #0f9d78 !important;
  background: #f3f9f7;
}

.kf-cart__price,
.kf-cart__subtotal {
  text-align: right;
  font-size: 15px;
  color: #5c6b73;
}

/*
 * The discount plugin (Advanced Woo Discount Rules) injects its own
 * strikethrough markup into the cart price cell — unstyled by default, so it
 * needs the same del/ins treatment the product cards already use.
 */
/*
 * Only the final price is shown — the struck-through original just doubled up
 * with the saving already visible on the subtotal, so it read as clutter
 * rather than useful information.
 */
.kf-cart__price .awdr_cart_strikeout_line del {
  display: none;
}
.kf-cart__price .awdr_cart_strikeout_line ins {
  font-size: 15px;
  font-weight: 400;
  color: #5c6b73;
  text-decoration: none;
}

.kf-cart__subtotal {
  font-weight: 700;
  color: #0c7d5f;
}

.kf-cart__qty {
  justify-self: end;
}
.kf-cart__qty .quantity input.qty {
  width: 84px;
  height: 42px;
  padding: 0 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #1f2933;
  background: #ffffff;
  border: 1px solid #e2e8e6;
  border-radius: 999px;
}

/* -------------------------------------------------------------------------
 * Coupon and update
 * ---------------------------------------------------------------------- */
/*
 * Same tint as the header row above the items, so the panel is bookended by
 * two tinted bands. `.kf-cart__items` clips to its 12px radius, so this picks
 * up rounded bottom corners the way the head picks up rounded top ones. The
 * last item's border-bottom already draws the divider above it.
 */
.kf-cart__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: #f3f9f7;
}

.kf-cart__coupon {
  display: flex;
  gap: 8px;
}
.kf-cart__coupon input.input-text {
  width: 190px;
  height: 44px;
  padding: 0 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #1f2933;
  background: #ffffff;
  border: 1px solid #e2e8e6;
  border-radius: 999px;
}

/* Woo's `.woocommerce button.button` is (0,2,1); these carry two classes each
   so they win without !important. */
.kf-cart .kf-cart__coupon-btn.button,
.kf-cart .kf-cart__update.button {
  height: 44px;
  padding: 0 24px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #0c7d5f;
  /* White on the tinted row, the same way the coupon field stays white. */
  background: #ffffff;
  border: 1px solid #e2e8e6;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.kf-cart .kf-cart__coupon-btn.button:hover,
.kf-cart .kf-cart__update.button:hover {
  background: #ffffff;
  border-color: #0f9d78;
}

/* Disabled until a quantity actually changes — Woo toggles this. */
.kf-cart .kf-cart__update.button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------
 * Totals panel
 * ---------------------------------------------------------------------- */
.kf-cart__aside {
  min-width: 0;
}

.kf-cart__totals {
  padding: 28px;
  background: #f3f9f7;
  border-radius: 12px;
}

.kf-cart__totals-title {
  margin: 0 0 18px;
  font-size: 20px;
  color: #1f2933;
}

.kf-cart__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 15px;
  color: #5c6b73;
  border-bottom: 1px solid #e2e8e6;
}
.kf-cart__row > span:last-child {
  text-align: right;
  font-weight: 600;
  color: #1f2933;
}

.kf-cart__row--total {
  border-bottom: 0;
  padding-top: 18px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2933;
}
.kf-cart__row--total > span:last-child {
  font-size: 20px;
  color: #0c7d5f;
}

/* Woo renders the shipping rows itself, as a table row. */
.kf-cart__totals tr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid #e2e8e6;
}

.kf-cart__totals th {
  font-weight: 400;
  color: #5c6b73;
  text-align: left;
}

.kf-cart__totals td {
  text-align: right;
  color: #1f2933;
}

.kf-cart__checkout {
  margin-top: 22px;
  /* Beats `.woocommerce a.button.alt` (0,3,1), which is purple by default. */
}
.kf-cart__checkout a.checkout-button.button.alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #0f9d78;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 157, 120, 0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.kf-cart__checkout a.checkout-button.button.alt:hover {
  background: #0c7d5f;
  box-shadow: 0 4px 10px rgba(15, 157, 120, 0.35);
}

/* The arrow sits left of the label and the pair slides left on hover. */
.kf-cart__continue {
  position: relative;
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #0c7d5f;
  transition: color 0.15s ease, transform 0.15s ease;
}
.kf-cart__continue::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: 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='M19 12H5'/%3E%3Cpath d='M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: 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='M19 12H5'/%3E%3Cpath d='M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: translateY(-50%);
}
.kf-cart__continue:hover {
  color: #0f9d78;
  transform: translateX(-4px);
}

/* -------------------------------------------------------------------------
 * Empty state
 * ---------------------------------------------------------------------- */
.kf-cart__empty {
  padding: 56px 24px;
  text-align: center;
  background: #f3f9f7;
  border-radius: 12px;
}
.kf-cart__empty p {
  margin: 0 0 22px;
  font-size: 16px;
  color: #5c6b73;
}

.kf-cart__empty-icon {
  display: inline-flex;
  color: #0f9d78;
  opacity: 0.55;
}

.kf-cart__empty-title {
  margin: 14px 0 8px;
  font-size: 22px;
  color: #1f2933;
}

/* -------------------------------------------------------------------------
 * Notices
 * ---------------------------------------------------------------------- */
.kf-cart .woocommerce-message,
.kf-cart .woocommerce-error,
.kf-cart .woocommerce-info {
  /*
   * Woo draws its glyph with ::before, absolutely positioned at left: 1.5em.
   * The text has to clear it — at the tighter padding used here the message
   * ran straight over the tick. Icon at 18px, text from 46px.
   */
  position: relative;
  margin: 0 0 24px;
  padding: 14px 18px 14px 46px;
  font-size: 14px;
  list-style: none;
  background: #f3f9f7;
  /*
   * Woo ships `border-top: 3px solid` in its own colour per notice type —
   * blue on `.woocommerce-info`, olive on `.woocommerce-message`. Only the
   * left border was being replaced here, so every notice wore a stray
   * coloured line across its top. Clear the box first, then draw ours.
   */
  border: 0;
  border-left: 3px solid #0f9d78;
  border-radius: 8px;
}
.kf-cart .woocommerce-message::before,
.kf-cart .woocommerce-error::before,
.kf-cart .woocommerce-info::before {
  top: 15px;
  left: 18px;
}

/*
 * Woo moves focus to the first notice after the add-to-cart redirect so it is
 * announced; Chrome then paints its own ring, a hard black rectangle around a
 * soft green panel. The ring stays — it is doing a job — in the theme's colour.
 */
.kf-cart .woocommerce-message:focus,
.kf-cart .woocommerce-error:focus,
.kf-cart .woocommerce-info:focus {
  outline: 2px solid rgba(15, 157, 120, 0.45);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .kf-cart__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  /* The head row is meaningless once the columns stack. */
  .kf-cart__head {
    display: none;
  }
  .kf-cart__item {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    /* Room for the remove button, pinned to the corner instead of stacked
       as its own unlabelled row. */
    padding-right: 44px;
  }
  .kf-cart__remove-col {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  /*
   * Each cell labels itself from the data-title the template already carries,
   * so the stacked rows still read as price / quantity / subtotal.
   */
  .kf-cart__price,
  .kf-cart__qty,
  .kf-cart__subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-self: stretch;
    text-align: left;
  }
  .kf-cart__price::before,
  .kf-cart__qty::before,
  .kf-cart__subtotal::before {
    content: attr(data-title);
    font-size: 13px;
    font-weight: 600;
    color: #5c6b73;
  }
  .kf-cart__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .kf-cart__coupon input.input-text {
    width: 100%;
  }
}
@media (max-width: 560px) {
  /*
   * Woo floats "Bekijk winkelwagen" right inside the notice. At 360 the
   * notice's text column is 178px wide and the button takes 160 of it, so the
   * message broke into three lines against a button pinned to the corner.
   * Below the text, full width, it reads as the action it is.
   */
  .kf-cart .woocommerce-message a.button,
  .kf-cart .woocommerce-error a.button,
  .kf-cart .woocommerce-info a.button {
    float: none;
    display: block;
    width: 100%;
    margin: 10px 0 0;
    text-align: center;
  }
}
@media (max-width: 400px) {
  /*
   * The coupon field and its button share a row that is only 192px wide at
   * 320 — the field came out at 62px and the placeholder was clipped to
   * "Kortingsc". Stacked, each gets the full row.
   */
  .kf-cart__coupon {
    flex-direction: column;
  }
  .kf-cart .kf-cart__coupon-btn.button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kf-cart *,
  .kf-cart *::before,
  .kf-cart *::after {
    transition-duration: 0.01ms !important;
  }
}
