/* EcommerceFull3: opt-in mobile purchase details, scoped to product pages. */
@media (max-width: 767px) {
  html.ecf-mp-enabled .product-info .button-group-page.ecf-mp-toolbar {
    position: fixed !important;
    z-index: 999 !important;
    inset-inline: 0 !important;
    bottom: calc(var(--bottom-menu-display, 0px) + var(--bottom-menu-margin-display, 0px)) !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 0 max(env(safe-area-inset-bottom), 0px) !important;
    transform: none !important;
    border-radius: 16px 16px 0 0;
    background: var(--ecf-mp-bg, #fff);
    box-shadow: 0 -5px 24px rgba(20, 35, 60, .14);
    border-top: 1px solid #e6e9ed;
    transition: none !important;
  }
  html.ecf-mp-enabled body {
    padding-bottom: calc(var(--ecf-mp-height, 80px) + var(--bottom-menu-display, 0px) + var(--bottom-menu-margin-display, 0px)) !important;
  }
  .ecf-mp-toolbar .ecf-mp-shell {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 6px 14px 0;
    color: #1c2734;
    font-size: 14px;
    line-height: 1.35;
    background: transparent;
  }
  .ecf-mp-toolbar .ecf-mp-shell::before {
    content: '';
    display: block;
    width: 34px;
    height: 4px;
    border-radius: 10px;
    margin: 0 auto 6px;
    background: #d9dde2;
  }
  .ecf-mp-toolbar .ecf-mp-details { width: 100%; min-width: 0; }
  .ecf-mp-toolbar .ecf-mp-part {
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 180ms ease, opacity 140ms ease, margin 180ms ease;
  }
  .ecf-mp-toolbar .ecf-mp-part.ecf-mp-visible {
    max-height: 120px;
    opacity: 1;
    pointer-events: auto;
  }
  .ecf-mp-toolbar .ecf-mp-name-part.ecf-mp-visible { margin: 1px 0 5px; }
  .ecf-mp-toolbar .ecf-mp-price-part.ecf-mp-visible { margin: 0 0 6px; }
  .ecf-mp-toolbar .ecf-mp-options-part.ecf-mp-visible { margin: 0 0 6px; }
  .ecf-mp-toolbar .ecf-mp-name {
    display: -webkit-box;
    width: 100%;
    padding: 0;
    border: none;
    color: inherit;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    background: none;
    cursor: pointer;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  .ecf-mp-toolbar .ecf-mp-name.ecf-mp-name-full {
    display: block;
    max-height: 120px;
    overflow-y: auto;
    -webkit-line-clamp: unset;
  }
  .ecf-mp-toolbar .ecf-mp-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.2;
  }
  .ecf-mp-toolbar .ecf-mp-price .product-price,
  .ecf-mp-toolbar .ecf-mp-price .product-price-new { font-size: inherit !important; font-weight: 750 !important; }
  .ecf-mp-toolbar .ecf-mp-price .product-price-old {
    font-size: 13px !important;
    color: #7b8590 !important;
    text-decoration: line-through !important;
    text-decoration-line: line-through !important;
  }
  .ecf-mp-toolbar .ecf-mp-required-error {
    display: block;
    margin: 7px 0 0;
    padding: 9px 10px;
    border: 1px solid #de6b68;
    border-radius: 7px;
    color: #9e2626;
    background: #fff1f0;
    font-size: 13px;
    font-weight: 600;
  }
  .ecf-mp-toolbar .ecf-mp-missing select,
  .ecf-mp-toolbar .ecf-mp-missing .options-image-picker {
    outline: 2px solid #d74c49;
    outline-offset: 2px;
  }
  .ecf-mp-toolbar .ecf-mp-options-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    border: 1px solid #d9e0e7;
    border-radius: 9px;
    padding: 8px 11px;
    color: #26475f;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    background: #f7f9fb;
    cursor: pointer;
  }
  .ecf-mp-toolbar .ecf-mp-option-summary {
    display: block;
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ecf-mp-toolbar .ecf-mp-chevron {
    flex: 0 0 auto;
    font-size: 18px;
    transform: rotate(180deg);
    transition: transform 150ms ease;
  }
  .ecf-mp-toolbar .ecf-mp-expanded .ecf-mp-chevron { transform: rotate(0deg); }
  .ecf-mp-toolbar .ecf-mp-option-fields[hidden] { display: none !important; }
  .ecf-mp-toolbar .ecf-mp-option-fields {
    max-height: min(45vh, 345px);
    overflow: auto;
    overscroll-behavior: contain;
    border-top: 1px solid #edf0f3;
    padding: 10px 4px 5px;
    margin: 4px 0 4px;
    -webkit-overflow-scrolling: touch;
  }
  .ecf-mp-toolbar .ecf-mp-option-fields .product-options {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .ecf-mp-toolbar .ecf-mp-option-fields .product-options .form-group {
    margin-bottom: 12px;
  }
  .ecf-mp-toolbar .buttons-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto !important;
    padding: 5px 12px 9px;
    box-sizing: border-box;
  }
  .ecf-mp-toolbar .buttons-wrapper .btn-cart {
    min-width: 0;
  }
  html.ecf-mp-exclusive #product .product-right-wrapper > .product-details > .page-title,
  html.ecf-mp-exclusive #product .product-right-wrapper > .product-details > .product-price-group,
  html.ecf-mp-exclusive #content > h1.page-title,
  html.ecf-mp-exclusive .site-wrapper > h1.page-title { display: none !important; }
}
@media (max-width: 360px) {
  .ecf-mp-toolbar .ecf-mp-shell { padding-inline: 10px; }
  .ecf-mp-toolbar .ecf-mp-name { font-size: 14px; }
  .ecf-mp-toolbar .ecf-mp-price { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .ecf-mp-toolbar .ecf-mp-part,
  .ecf-mp-toolbar .ecf-mp-chevron { transition: none !important; }
}
