

/* cart.html */
:root {
  --bg: #233d3d;
  --panel: #274444;
  --text: #f3fff6;
  --accent: #55705d;
  --field-bg: #f3fff6;
  --field-text: #183030;
  --line: rgba(255, 255, 255, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: grid;
  place-items: start center;
  padding: 24px 12px;
}

.wrap {
  width: min(720px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 16px;
}

h1,
h2 {
  margin: 0 0 12px;
  line-height: 1.2;
}

h1 {
  font-size: 1.45rem;
}

h2 {
  margin-top: 22px;
  font-size: 1.12rem;
}

p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.usage-options,
.summary {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.usage-option {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.usage-option input {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
}

label.usage-option {
  padding: 6px 8px;
  border-radius: 6px;
}

label.usage-option:has(input:checked) {
  color: #000;
  background: white;
}

.cart-list {
  margin: 0 0 16px 1.2rem;
  padding: 0;
}

.cart-list li {
  margin: 0 0 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-thumbnail {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid white;
  border-radius: 8px;
  background: #1c3131;
}

.cart-figure {
  margin: 0;
  width: 240px;
  max-width: 100%;
}

.cart-caption {
  margin-top: 8px;
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.number-row,
.summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-row {
  justify-content: space-between;
}

.usage-required {
  border: 2px solid #ffdf00;
  border-radius: 6px;
  padding: 8px;
}

#usageReminder,
#usageRequiredLabel {
  color: #ffdf00;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label.field {
  display: grid;
  gap: 5px;
  font-weight: 700;
}

.full {
  grid-column: 1 / -1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  color: var(--field-text);
  background: var(--field-bg);
}

textarea {
  min-height: 105px;
  resize: vertical;
}

button,
.link-button,
.contact-button {
  border: 1px solid white;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.remove-button {
  padding: 3px 8px;
  font-size: 0.8rem;
}

.contact-button {
  padding: 4px 9px;
  font-size: 0.85rem;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.top-actions h1 {
  margin: 0;
}

.top-actions .link-button {
  display: inline-block;
}

.note {
  opacity: 0.9;
}

a {
  color: var(--text);
}

@media (max-width: 620px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}







