.mars-upload-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mars-upload-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 7px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
}

.mars-upload-picker__button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #174a32;
  border-radius: 7px;
  background: #174a32;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.mars-upload-picker__button:focus-visible {
  outline: 3px solid #a15112;
  outline-offset: 3px;
}

.mars-upload-picker__filename {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  line-height: 1.4;
}

.mars-photo {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dbe5df;
  border-radius: 14px;
  background: #f7faf8;
  color: #213b31;
}

.mars-photo [hidden],
.mars-photo[hidden] {
  display: none !important;
}

.mars-photo h3,
.mars-photo h4 {
  margin: 0 0 8px;
  color: #163d2d;
  font-size: 1rem;
  line-height: 1.4;
}

.mars-photo p,
.mars-photo a,
.mars-photo figcaption,
.mars-photo__consent {
  font-size: 0.875rem;
  line-height: 1.55;
}

.mars-photo p {
  margin: 8px 0;
}

.mars-photo [data-mars-photo="options"] {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dbe5df;
}

.mars-photo__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mars-photo button {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #718f7d;
  border-radius: 8px;
  background: #fff;
  color: #173c2b;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  white-space: normal;
}

.mars-photo button[aria-pressed="true"] {
  border-color: #174a32;
  background: #174a32;
  color: #fff;
}

.mars-photo button:disabled {
  opacity: 0.55;
  cursor: default;
}

.mars-photo button:focus-visible,
.mars-photo input:focus-visible,
.mars-photo select:focus-visible,
.mars-photo a:focus-visible {
  outline: 3px solid #a15112;
  outline-offset: 3px;
}

.mars-photo__account {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dbe5df;
  border-radius: 8px;
  background: #fff;
}

.mars-photo__account > p:first-child {
  margin-top: 0;
  font-weight: 600;
}

.mars-photo__account a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #174a32;
  font-weight: 600;
  text-decoration: underline;
}

.mars-photo [data-mars-photo="accountMessage"]:empty {
  display: none;
}

.mars-photo__mode {
  display: block;
  margin: 14px 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.mars-photo__mode select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid #718f7d;
  border-radius: 8px;
  background-color: #fff;
  color: #173c2b;
  font: inherit;
}

.mars-photo__mode select:disabled {
  color: #52635a;
  background-color: #edf3ef;
}

.mars-photo__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  padding: 8px 0;
  cursor: pointer;
}

.mars-photo__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #174a32;
}

.mars-photo__notice,
.mars-photo [data-mars-photo="status"] {
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf3ef;
}

.mars-photo [data-mars-photo="status"]:empty {
  display: none;
}

.mars-photo__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.mars-photo__compare figure {
  min-width: 0;
  margin: 0;
}

.mars-photo__compare img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #dbe5df;
  border-radius: 8px;
  background: #fff;
}

.mars-photo__compare figcaption {
  margin-top: 5px;
  text-align: center;
}

.mars-photo .mars-photo__delete {
  margin-top: 8px;
  background: transparent;
  font-weight: 400;
}

.mars-photo .mars-photo__fine {
  color: #52635a;
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  .mars-photo {
    padding: 14px;
  }

  .mars-photo__choices button {
    flex: 1 1 100%;
  }

  .mars-photo [data-mars-photo="enhance"],
  .mars-photo [data-mars-photo="check"] {
    width: 100%;
  }
}
