@charset "utf-8";

/* ============================================================
   ウェアかんたん見積（試作）
   ============================================================ */

.page-wear-estimate {
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wear-estimate {
  padding: 28px 0 40px;
  background: var(--color-bg-warm);
}

.wear-estimate__header {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.wear-estimate__header-text {
  min-width: 0;
}

.wear-estimate__badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-sub);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}

.wear-estimate__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-black);
  line-height: 1.45;
}

.wear-estimate__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-sub);
}

.wear-estimate__mood {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 280px;
}

.wear-estimate__mood img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border-light);
}

.wear-estimate__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.wear-estimate__step-item {
  padding: 12px 6px;
  text-align: center;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-border-light);
}

.wear-estimate__step-item--current {
  border-bottom-color: var(--color-black);
}

.wear-estimate__step-item--done {
  border-bottom-color: var(--color-border);
}

.wear-estimate__step-item--done .wear-estimate__step-label {
  color: var(--color-text-muted);
}

.wear-estimate__step-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.wear-estimate__step-item--current .wear-estimate__step-num {
  color: var(--color-black);
  font-weight: 600;
}

.wear-estimate__step-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-black);
}

.wear-estimate__error {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--color-black);
  background: var(--color-bg-sub);
  border-left: 2px solid var(--color-black);
}

.wear-estimate__panel {
  padding: 28px 20px;
  background: var(--color-bg);
  border: none;
  border-top: 1px solid var(--color-border-light);
}

.wear-estimate__panel-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.wear-estimate__panel-lead {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-sub);
}

.wear-estimate__choices {
  margin: 0 0 24px;
  padding: 0;
  border: none;
  display: grid;
  gap: 10px;
}

.wear-estimate__choice {
  display: block;
  cursor: pointer;
}

.wear-estimate__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wear-estimate__choice-body {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wear-estimate__choice input:checked + .wear-estimate__choice-body,
.wear-estimate__choice input:focus-visible + .wear-estimate__choice-body,
.wear-estimate__choice--product.is-selected .wear-estimate__choice-body,
.wear-estimate__choice--product:focus-visible .wear-estimate__choice-body {
  border-color: var(--color-black);
  background: var(--color-bg);
}

.wear-estimate__choice-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__choice-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.wear-estimate__choices--products {
  gap: 12px;
  align-items: stretch;
}

.wear-estimate__choice--product {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.wear-estimate__choice--product:hover .wear-estimate__choice-body {
  border-color: var(--color-black);
}

.wear-estimate__choice--product .wear-estimate__choice-body {
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: 100%;
  padding: 14px 16px;
  box-sizing: border-box;
}

.wear-estimate__choice-media {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.wear-estimate__choice-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wear-estimate__choice-media--placeholder {
  color: var(--color-text-muted);
}

.wear-estimate__choice-media-icon {
  display: block;
  width: 32px;
  height: 32px;
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  opacity: 0.55;
}

.wear-estimate__choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wear-estimate__choice--product .wear-estimate__choice-text {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.wear-estimate__choice--product .wear-estimate__choice-price,
.wear-estimate__choice--product .wear-estimate__choice-meta {
  margin-top: auto;
}

.wear-estimate__choice-maker {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.wear-estimate__choice-maker:empty {
  display: none;
}

.wear-estimate__choice-maker-logo {
  display: block;
  max-width: 120px;
  margin-bottom: 2px;
}

.wear-estimate__choice-maker-logo img {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
}

.wear-estimate__choice-code {
  font-size: 12px;
  color: var(--color-text-sub);
}

.wear-estimate__choice-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-sub);
}

.wear-estimate__choice-price {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__colors {
  margin: 0 0 24px;
  padding: 0;
  border: none;
  min-width: 0;
}

.wear-estimate__subheading {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__subheading--follow {
  margin-top: 4px;
}

.wear-estimate__helper {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--color-text-sub);
}

.wear-estimate__color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wear-estimate__color-grid--cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.wear-estimate__color-card {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.wear-estimate__color-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  inset: 0;
}

.wear-estimate__color-card-body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.wear-estimate__color-card-swatch {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  background: var(--color-bg-sub);
  overflow: hidden;
}

.wear-estimate__color-card-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wear-estimate__color-card-swatch--empty {
  background: var(--color-bg-sub);
}

.wear-estimate__color-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wear-estimate__color-card-code {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.wear-estimate__color-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-black);
  line-height: 1.35;
  word-break: break-word;
}

.wear-estimate__color-card input:checked + .wear-estimate__color-card-body,
.wear-estimate__color-card input:focus-visible + .wear-estimate__color-card-body {
  border-color: var(--color-black);
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px var(--color-black);
}

.wear-estimate__color-grid--groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.wear-estimate__color-card--group {
  height: 100%;
}

.wear-estimate__color-card--group .wear-estimate__color-card-body {
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.wear-estimate__color-group-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 132px;
  width: 100%;
  height: 132px;
  padding: 10px 12px;
  box-sizing: border-box;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.wear-estimate__color-group-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 112px;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.wear-estimate__color-group-image--empty {
  background: linear-gradient(135deg, #f3f3f3 0%, #e8e8e8 100%);
}

.wear-estimate__color-group-image-placeholder {
  font-size: 11px;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
}

.wear-estimate__color-card--group .wear-estimate__color-card-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  min-height: 96px;
  box-sizing: border-box;
}

.wear-estimate__color-card--group .wear-estimate__color-card-swatch {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.wear-estimate__color-card-desc {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--color-text-sub);
}

.wear-estimate__color-card-price {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__color-card--group .wear-estimate__color-card-name {
  font-size: 14px;
}

.wear-estimate__color-card--group .wear-estimate__color-card-price {
  margin-top: auto;
  padding-top: 4px;
}

.wear-estimate__color-choice {
  cursor: pointer;
}

.wear-estimate__color-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wear-estimate__color-label {
  display: inline-block;
  padding: 10px 14px;
  font-size: 13px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wear-estimate__color-choice input:checked + .wear-estimate__color-label,
.wear-estimate__color-choice input:focus-visible + .wear-estimate__color-label {
  border-color: var(--color-black);
  background: var(--color-bg);
}

.wear-estimate__qty-section {
  margin-bottom: 8px;
}

.wear-estimate__size-section {
  margin-bottom: 16px;
}

.wear-estimate__size-section-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-sub);
}

.wear-estimate__size-section--collapsible {
  padding: 12px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--color-bg-sub);
}

.wear-estimate__size-section--collapsible > summary {
  cursor: pointer;
  list-style: none;
}

.wear-estimate__size-section--collapsible > summary::-webkit-details-marker {
  display: none;
}

.wear-estimate__size-section--collapsible[open] > summary {
  margin-bottom: 10px;
}

.wear-estimate__result-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--color-text-sub);
}

.wear-estimate__qty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.wear-estimate__qty-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wear-estimate__qty-item.is-unavailable,
.wear-estimate__size-section.is-unavailable {
  display: none !important;
}

.wear-estimate__qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__qty-price {
  font-size: 12px;
  font-weight: 500;
  color: #5a717a;
}

.wear-estimate__qty-input,
.wear-estimate__select,
.wear-estimate__input,
.wear-estimate__textarea,
.wear-estimate__file-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.wear-estimate__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

.wear-estimate__form--other .wear-estimate__field {
  margin-bottom: 18px;
}

.wear-estimate__field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wear-estimate__input--qty {
  max-width: 140px;
}

.wear-estimate__field-suffix {
  font-size: 14px;
  color: var(--color-text-sub);
  white-space: nowrap;
}

.wear-estimate__file-input {
  padding: 9px 10px;
  font-size: 14px;
}

.wear-estimate__dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wear-estimate__dropzone:hover,
.wear-estimate__dropzone:focus-visible,
.wear-estimate__dropzone--dragover {
  border-color: var(--color-black);
  background: #fafafa;
  outline: none;
}

.wear-estimate__dropzone--invalid {
  border-color: var(--color-black);
  box-shadow: inset 0 0 0 1px var(--color-black);
}

.wear-estimate__dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wear-estimate__dropzone-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__dropzone-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-sub);
}

.wear-estimate__attachment-selected {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
}

.wear-estimate__attachment-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.wear-estimate__attachment-selected-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__attachment-clear {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-sub);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.wear-estimate__attachment-clear:hover {
  color: var(--color-black);
}

.wear-estimate__attachment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wear-estimate__attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--color-border-light);
  font-size: 13px;
  line-height: 1.5;
}

.wear-estimate__attachment-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.wear-estimate__attachment-name {
  min-width: 0;
  word-break: break-all;
  color: var(--color-black);
}

.wear-estimate__attachment-meta {
  color: var(--color-text-sub);
  white-space: nowrap;
}

.wear-estimate__attachment-remove {
  flex-shrink: 0;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.wear-estimate__attachment-remove:hover {
  border-color: var(--color-black);
  color: var(--color-black);
}

.wear-estimate__folder-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__input[aria-invalid="true"],
.wear-estimate__textarea[aria-invalid="true"],
.wear-estimate__file-input[aria-invalid="true"] {
  border-color: var(--color-black);
  box-shadow: inset 0 0 0 1px var(--color-black);
}

.wear-estimate__qty-total {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--color-text-sub);
}

.wear-estimate__select--print-method {
  font-weight: inherit;
}

.wear-estimate__field--compact {
  margin-bottom: 10px;
}

.wear-estimate__location {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--color-bg-sub);
}

.wear-estimate__location-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__location-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-black);
  border-radius: 50%;
}

.wear-estimate__print-method-advanced {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border-light);
}

.wear-estimate__print-method-summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-sub);
  list-style: none;
}

.wear-estimate__print-method-summary::-webkit-details-marker {
  display: none;
}

.wear-estimate__print-method-body {
  margin-top: 10px;
}

.wear-estimate__print-method-hints {
  margin: 0;
  padding: 0 0 0 1.1em;
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text-sub);
}

.wear-estimate__print-method-hints li + li {
  margin-top: 4px;
}

.wear-estimate__field {
  margin-bottom: 16px;
}

.wear-estimate__field--location-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}

.wear-estimate__field--location-count label {
  margin: 0;
  min-width: 4.5em;
}

.wear-estimate__select--count {
  width: auto;
  min-width: 140px;
  max-width: 200px;
  flex: 0 0 auto;
}

.wear-estimate__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wear-estimate__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.wear-estimate__check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.wear-estimate__check input {
  width: 18px;
  height: 18px;
}

.wear-estimate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wear-estimate__actions--split {
  flex-direction: row;
  flex-wrap: wrap;
}

.wear-estimate__actions--split .btn {
  flex: 1;
  min-width: 120px;
}

.wear-estimate__actions--stack .btn {
  width: 100%;
  min-height: 48px;
}

.wear-estimate__actions .btn {
  min-height: 48px;
}

.wear-estimate__actions .btn:disabled,
.wear-estimate__request-confirm-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.wear-estimate__request-heading {
  margin: 28px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.wear-estimate__request-step {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.wear-estimate__required,
.wear-estimate__optional {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 1px;
}

.wear-estimate__required {
  color: var(--color-bg);
  background: var(--color-black);
}

.wear-estimate__optional {
  color: var(--color-text-sub);
  background: var(--color-bg-sub);
}

.wear-estimate__reply {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.wear-estimate__reply legend {
  margin: 0 0 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__reply-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.wear-estimate__reply-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-black);
  cursor: pointer;
}

.wear-estimate__reply-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.wear-estimate__privacy {
  margin: 24px 0;
  padding: 4px 0 0;
}

.wear-estimate__privacy-policy {
  margin: 0 0 12px;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-sub);
}

.wear-estimate__privacy-policy summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-black);
}

.wear-estimate__privacy-policy summary::-webkit-details-marker {
  display: none;
}

.wear-estimate__privacy-policy summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  translate: 0 -2px;
}

.wear-estimate__privacy-policy[open] summary::after {
  transform: rotate(-135deg);
  translate: 0 2px;
}

.wear-estimate__privacy-policy-body {
  margin: 0;
  padding: 0 14px 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

.wear-estimate__privacy-policy-body p {
  margin: 0 0 12px;
}

.wear-estimate__privacy-policy-body p:last-child {
  margin-bottom: 0;
}

.wear-estimate__privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg-sub);
  cursor: pointer;
}

.wear-estimate__privacy-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.wear-estimate__request-existing-files {
  margin-top: 10px;
  padding: 12px;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border-light);
}

.wear-estimate__request-existing-files p {
  margin: 0 0 6px;
  font-size: 12px;
}

.wear-estimate__request-files {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wear-estimate__request-files li {
  overflow-wrap: anywhere;
}

.wear-estimate__request-files li + li {
  margin-top: 4px;
}

.wear-estimate__request-confirm {
  margin: 0 0 24px;
  border-top: 1px solid var(--color-border-light);
}

.wear-estimate__request-confirm > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.3fr) 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.wear-estimate__request-confirm dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-sub);
}

.wear-estimate__request-confirm dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--color-text);
}

.wear-estimate__request-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wear-estimate__request-confirm-actions form,
.wear-estimate__request-confirm-actions .btn {
  width: 100%;
}

.wear-estimate__request-complete {
  padding: 32px 0 8px;
  text-align: center;
}

.wear-estimate__request-complete-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  background: var(--color-black);
  border-radius: 50%;
}

.item-page__body .wear-estimate__request-complete-mark {
  margin: 0 auto 16px;
  color: #fff;
}

.wear-estimate__request-complete p {
  line-height: 1.8;
}

.wear-estimate__request-complete-id {
  margin: 20px 0;
  padding: 12px;
  background: var(--color-bg-sub);
}

.wear-estimate__prototype-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-sub);
  background: var(--color-bg-sub);
  border-left: 2px solid var(--color-border);
}

.wear-estimate__result-hero {
  margin: 0 0 20px;
  padding: 24px 20px;
  text-align: center;
  background: var(--color-bg-warm-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.wear-estimate__result-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--color-text-sub);
}

.wear-estimate__result-total {
  margin: 0 0 8px;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-black);
}

.wear-estimate__result-per {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.wear-estimate__recommend {
  margin-bottom: 20px;
  padding: 18px 16px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.wear-estimate__recommend-label {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.wear-estimate__recommend-value {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__recommend-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--color-text-sub);
}

.wear-estimate__input-summary {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}

.wear-estimate__input-summary-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
}

.wear-estimate__input-summary-list {
  margin: 0;
}

.wear-estimate__input-summary-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.35fr) 1fr;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
  line-height: 1.6;
}

.wear-estimate__input-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wear-estimate__input-summary-row dt {
  color: var(--color-text-muted);
}

.wear-estimate__input-summary-row dd {
  margin: 0;
  color: var(--color-text);
}

.wear-estimate__input-summary-locations {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wear-estimate__input-summary-locations li + li {
  margin-top: 6px;
}

.wear-estimate__result-product {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--color-text-sub);
}

.wear-estimate__reassure {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-sub);
}

.wear-estimate__amounts,
.wear-estimate__handoff {
  margin: 0 0 20px;
}

.wear-estimate__amount-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
  line-height: 1.5;
}

.wear-estimate__amount-row dt {
  color: var(--color-text-sub);
}

.wear-estimate__amount-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-black);
  text-align: right;
}

.wear-estimate__amount-row--sub {
  font-size: 13px;
}

.wear-estimate__amount-row--total {
  padding-top: 14px;
  border-bottom: none;
  font-size: 16px;
}

.wear-estimate__amount-row--total dt,
.wear-estimate__amount-row--total dd {
  color: var(--color-black);
  font-weight: 600;
}

.wear-estimate__amount-row--per {
  font-size: 13px;
  border-bottom: none;
}

.wear-estimate__details {
  margin-bottom: 20px;
  font-size: 13px;
}

.wear-estimate__details summary {
  cursor: pointer;
  color: var(--color-text-sub);
}

.wear-estimate__line-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.wear-estimate__line-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  line-height: 1.65;
  color: var(--color-text-sub);
}

.wear-estimate__inline-form {
  margin: 0;
  text-align: center;
}

.wear-estimate__text-btn {
  padding: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.wear-estimate__quote-id {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-text-sub);
}

.wear-estimate__quote-id code {
  font-size: 12px;
}

.wear-estimate__json {
  overflow-x: auto;
  margin: 12px 0 0;
  padding: 12px;
  font-size: 11px;
  line-height: 1.5;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border-light);
}

.wear-estimate__coming-soon {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-sub);
}

@media screen and (min-width: 390px) {
  .wear-estimate__qty-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wear-estimate__color-grid--groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 768px) {
  .wear-estimate {
    padding: 40px 0 56px;
  }

  .wear-estimate__header {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr);
    align-items: end;
    gap: 32px;
  }

  .wear-estimate__mood {
    max-width: none;
    justify-self: end;
  }

  .wear-estimate__panel {
    padding: 32px 8px 36px;
  }

  .wear-estimate__choices {
    grid-template-columns: repeat(2, 1fr);
  }

  .wear-estimate__qty-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .wear-estimate__color-grid--cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .wear-estimate__color-grid--groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wear-estimate__result-hero {
    padding: 32px 28px;
  }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  .wear-estimate__color-grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 700px) {
  .wear-estimate__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .wear-estimate__step-label {
    font-size: 11px;
  }

  .wear-estimate__mood {
    max-width: 100%;
  }

  .wear-estimate__field-row {
    grid-template-columns: 1fr;
  }

  .wear-estimate__request-confirm > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .wear-estimate__request-confirm-actions {
    grid-template-columns: 1fr;
  }

  .wear-estimate__actions--split {
    flex-direction: column;
  }

  .wear-estimate__actions--split .btn {
    width: 100%;
  }
}
