* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  background: #f1f4f7;
  color: #172a3a;
  margin: 0;
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
main {
  max-width: 448px;
  margin: auto;
  padding: 24px 14px 0;
}
article {
  background: white;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow:
    0 5px 18px #1b405810,
    0 0 0 1px #1b405810;
}
header,
#total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}
#sample {
  border-radius: 20px;
  background: #edf4fb;
  color: #11569a;
  padding: 3px 17px;
  font-weight: 600;
  font-size: 13px;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 16px 0 0;
}
p {
  margin: 0;
  color: #52697d;
}
#date {
  font-size: 14px;
}
#items:not(:empty) {
  margin-top: 16px;
}
.item {
  border-top: 1px solid #e4eaf0;
  padding: 17px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}
h2 {
  font-size: 18px;
  margin: 0 0 4px;
}
.picture {
  display: grid;
  place-items: center;
  flex: none;
  width: 36%;
  aspect-ratio: 1.25;
  background: #f7f7f6;
  border-radius: 12px;
  color: #52697d;
  font-size: 13px;
}
.picture img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: contain;
  padding: 8px;
}
#total {
  padding: 13px 14px;
  border-radius: 12px;
  background: #eff5fb;
}
#price {
  color: #11569a;
  font-size: 22px;
  letter-spacing: -0.5px;
}
#caption {
  text-align: center;
  font-size: 13px;
  margin-top: 16px;
}
footer {
  background: #f1f4f7;
  padding: 16px 0 max(16px, env(safe-area-inset-bottom));
  position: sticky;
  bottom: 0;
  text-align: center;
  font-size: 14px;
}
footer:has(details[open]) {
  position: static;
}
#note {
  color: #283b4c;
}
button {
  cursor: pointer;
  border: 0;
  color: white;
  background: #125fba;
  width: 100%;
  padding: 14px 8px;
  border-radius: 13px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:active {
  background: #104c91;
}
summary {
  cursor: pointer;
  color: #516777;
  margin-top: 10px;
}
details p {
  margin: 8px 0;
}
#png {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  -webkit-touch-callout: default;
}
@media (max-width: 360px) {
  main {
    padding: 14px 10px 0;
  }
  article {
    padding: 20px 15px;
  }
  .item {
    gap: 12px;
  }
  #price {
    font-size: 20px;
  }
}
@media (max-height: 450px) {
  footer {
    position: static;
  }
}
