/* SHOPFUMOT CART UX V2.7 */

.sf-cart-entry-v27 {
  position: fixed;
  z-index: 900;
  top: 108px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid #D7F352;
  border-radius: 999px;
  background: #151A1E;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
}

.sf-cart-entry-v27:hover {
  background: #26302A;
  color: #FFFFFF !important;
}

.sf-cart-entry-v27-icon {
  font-size: 19px;
  line-height: 1;
}

.sf-cart-entry-v27-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 50px;
  background: #D7F352;
  color: #151A1E;
  font-size: 12px;
  font-weight: 850;
}

.sf-cart-feedback-v27 {
  margin-bottom: 12px;
}

.sf-cart-feedback-v27 .woocommerce-message {
  position: fixed !important;
  z-index: 99999;
  top: 112px;
  right: 20px;
  width: min(390px, calc(100vw - 32px));
  margin: 0 !important;
  padding: 20px 18px 16px !important;
  border: 1px solid #DCE8D3 !important;
  border-top: 4px solid #8AB42B !important;
  border-radius: 13px !important;
  background: #FFFFFF !important;
  color: #1E3023 !important;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 12px 38px rgba(0,0,0,.19);
}

.sf-cart-feedback-v27 .woocommerce-message::before {
  position: static !important;
  content: "✓ " !important;
  color: #638D21 !important;
  font-weight: 900;
}

.sf-cart-feedback-v27 .woocommerce-message .button {
  display: none !important;
}

.sf-cart-toast-link-v27 {
  display: block;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #D7F352;
  color: #151A1E !important;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
}

.sf-cart-toast-close-v27 {
  float: right;
  margin: -8px -7px 5px 8px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: #EDF2E8;
  color: #1E3023;
  cursor: pointer;
  font-size: 20px;
}

.sf-cart-feedback-v27 .woocommerce-error,
.sf-cart-feedback-v27 .woocommerce-info {
  margin: 0 0 12px !important;
  padding: 14px 18px !important;
  border-radius: 9px;
  background: #FFF8ED;
  color: #5B3D21;
}

@media (max-width: 760px) {
  .sf-cart-entry-v27 {
    top: auto;
    right: 15px;
    bottom: 17px;
    min-height: 48px;
    padding: 10px 13px;
    font-size: 12px;
  }

  .sf-cart-feedback-v27 .woocommerce-message {
    top: 75px;
    right: 12px;
    width: calc(100vw - 24px);
  }
}

/* SHOPFUMOT CART UX V2.7 END */

/* V10.23B: shared controls belong to document flow, never over reading text.
 * The original cart anchor is placed after the product form by the shared JS.
 * Without JS it remains an accessible footer link in normal flow.
 */
  .sf-cart-entry-v27 {
    position: static;
    z-index: auto;
    top: auto;
    right: auto;
    bottom: auto;
    margin: 16px max(0px, env(safe-area-inset-right, 0px)) 16px max(0px, env(safe-area-inset-left, 0px));
    max-width: 100%;
    box-sizing: border-box;
    vertical-align: middle;
  }

  /* Keep the existing settings button and dialog behavior; only its
   * resting position changes, so neither footer control can cover content.
   */
  #fumot-cookie-settings {
    position: static !important;
    z-index: auto;
    left: auto;
    bottom: auto;
    display: inline-block;
    margin: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    white-space: normal;
  }

/* The existing guide table already has a focusable scroll region. Contain its
 * intrinsic width at narrow viewports without changing cells or page content. */
.fumot-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
