/* MPP Shop Customer Utilities v1.0.0 */
.mpp-customer-tools {
  --mpp-cu-ink: #0f172a;
  --mpp-cu-muted: #64748b;
  --mpp-cu-teal: #0f8f86;
  --mpp-cu-teal-dark: #08786f;
  --mpp-cu-border: #cfdde5;
  --mpp-cu-focus: rgba(20, 184, 166, .22);
  width: 100%;
  max-width: 1180px;
  margin: 20px auto 10px;
  padding: 0 12px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  align-items: center;
  gap: 22px;
  color: var(--mpp-cu-ink);
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.mpp-customer-tools *,
.mpp-customer-tools *::before,
.mpp-customer-tools *::after {
  box-sizing: border-box;
}

.mpp-customer-tools__title {
  min-width: 0;
}

.mpp-customer-tools .mpp-grid-title {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mpp-customer-tools__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.mpp-customer-tools__helper {
  margin: 0 !important;
  max-width: 300px;
  color: var(--mpp-cu-muted) !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  text-align: right;
}

.mpp-customer-tools__divider {
  display: block;
  width: 1px;
  height: 38px;
  flex: 0 0 1px;
  background: #d8e1e8;
}

.mpp-customer-tools__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(176px, auto));
  gap: 10px;
  align-items: stretch;
}

.mpp-customer-tools__button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .055);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.mpp-customer-tools__button:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.mpp-customer-tools__button:active {
  transform: translateY(0);
}

.mpp-customer-tools__button:focus-visible {
  outline: 3px solid var(--mpp-cu-focus);
  outline-offset: 3px;
}

.mpp-customer-tools__button--track {
  color: #fff !important;
  border: 1px solid rgba(8, 145, 178, .55);
  background: linear-gradient(135deg, #119c93 0%, #0b8279 100%);
  box-shadow: 0 8px 20px rgba(13, 148, 136, .18);
}

.mpp-customer-tools__button--track:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #0e8f87 0%, #08766f 100%);
  box-shadow: 0 10px 24px rgba(13, 148, 136, .23);
}

.mpp-customer-tools__button--account {
  color: var(--mpp-cu-ink) !important;
  border: 1px solid #13a89e;
  background: #fff;
}

.mpp-customer-tools__button--account:hover {
  color: #0f5f5a !important;
  border-color: #0f8f86;
  background: #f4fffd;
  box-shadow: 0 9px 20px rgba(15, 118, 110, .11);
}

.mpp-customer-tools__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
}

.mpp-customer-tools__icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tablet: preserve the title/button hierarchy but reduce copy pressure. */
@media (max-width: 1020px) {
  .mpp-customer-tools {
    grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr);
    gap: 16px;
  }

  .mpp-customer-tools__right {
    gap: 12px;
  }

  .mpp-customer-tools__helper {
    max-width: 215px;
    font-size: 12px !important;
  }

  .mpp-customer-tools__actions {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .mpp-customer-tools__button {
    padding: 0 13px;
    font-size: 12px;
  }
}

/* Mobile: one clear path per tap, matching the storefront's compact design. */
@media (max-width: 760px) {
  .mpp-customer-tools {
    padding: 0 10px;
    margin: 17px auto 13px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .mpp-customer-tools__right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mpp-customer-tools__helper {
    max-width: none;
    text-align: left;
    font-size: 12px !important;
    padding-top: 1px;
  }

  .mpp-customer-tools__divider {
    display: none;
  }

  .mpp-customer-tools__actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .mpp-customer-tools__button {
    width: 100%;
    min-height: 50px;
    border-radius: 13px;
    padding: 0 16px;
    font-size: 13px;
  }

  .mpp-customer-tools__button--track {
    min-height: 52px;
  }
}

@media (max-width: 380px) {
  .mpp-customer-tools__button {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mpp-customer-tools__button {
    transition: none;
  }
}
