:root {
  --mysto-template-primary-color: #541c1d;
  --mysto-template-font-heading: Arial, sans-serif;
  --mysto-template-font-body: Arial, sans-serif;
}

/* Apply fonts globally - no need for Tailwind classes */
body,
p,
span,
div,
a,
li,
td,
th {
  font-family: var(--mysto-template-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading {
  font-family: var(--mysto-template-font-heading);
}

/* body,html {
    scroll-behavior: smooth;
  } */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove number input arrows for Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Merchant-controlled storefront header logo size (medium keeps theme defaults). */
.mysto-logo-size-small {
  height: 1.5rem !important;
  width: auto !important;
  max-width: 7.5rem !important;
}

.mysto-logo-size-large {
  height: 2.5rem !important;
  width: auto !important;
  max-width: 12rem !important;
}

#productInfo .myst-pdp-customization {
  width: 100%;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#productInfo .myst-pdp-customization__field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#productInfo .myst-pdp-customization__field > label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

#productInfo .myst-pdp-customization__input:not([type="checkbox"]),
#productInfo .myst-pdp-customization select,
#productInfo .myst-pdp-customization__photo {
  min-height: 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

#productInfo .myst-pdp-customization__input:not([type="checkbox"]):focus,
#productInfo .myst-pdp-customization select:focus,
#productInfo .myst-pdp-customization__photo:focus {
  border-color: #111827;
  outline: none;
  box-shadow: none;
}

#productInfo .myst-pdp-customization__photo::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 0;
  background: #f9fafb;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111827;
  cursor: pointer;
}

#productInfo .myst-pdp-customization [data-field-type="multi"] > div {
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
}

#productInfo .myst-pdp-customization [data-field-type="multi"] > div > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
}

#productInfo .myst-pdp-customization__option {
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e5e7eb;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  column-gap: 0.75rem;
}

#productInfo .myst-pdp-customization__option:last-child {
  border-bottom: 0;
}

#productInfo .myst-pdp-customization__option:hover {
  background: #fafafa;
}

#productInfo .myst-pdp-customization__option-text {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#productInfo .myst-pdp-customization__option-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#productInfo .myst-pdp-customization__extra {
  margin-left: auto;
  flex: 0 0 auto;
  color: #6b7280;
  white-space: nowrap;
}

#productInfo .myst-pdp-customization input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  border-radius: 0;
  accent-color: #111827;
}
