.avw-size-card,
.avw-notes-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  padding: 22px 24px;
  margin: 0 0 18px;
  width: 100%;
  box-sizing: border-box;
}

.avw-size-card__heading {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #374151;
  margin-bottom: 16px;
}

.avw-size-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.avw-size-option {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: #3f4654;
  cursor: pointer;
  text-align: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
  appearance: none;
  -webkit-appearance: none;
}

.avw-size-option:hover {
  transform: translateY(-2px);
}

.avw-size-option__image-wrap {
  display: block;
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
  border-radius: 13px;
  overflow: hidden;
  background: #f3f4f6;
  border: 2px solid transparent;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.avw-size-option__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avw-size-option__label {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.avw-size-option.is-selected .avw-size-option__image-wrap {
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08), 0 10px 24px rgba(15, 23, 42, 0.18);
}

.avw-size-option.is-selected .avw-size-option__label {
  color: #111827;
}

.avw-size-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(0.65);
}

.avw-size-option.is-disabled:hover {
  transform: none;
}

.avw-size-card__guide-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.avw-size-card__guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #3f4654;
  border: 1px solid rgba(17, 24, 39, 0.10);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none !important;
}

.avw-size-card__guide:hover {
  color: #111827;
  border-color: rgba(17, 24, 39, 0.25);
}

form.variations_form .variations tr.avw-hidden-variation-row {
  display: none !important;
}

form.variations_form .variations.avw-all-hidden {
  display: none !important;
}

.avw-notes-card {
  margin-top: 14px;
}

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

.avw-notes-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #1f2937;
}

.avw-notes-card__icon {
  font-size: 16px;
  line-height: 1;
}

.avw-notes-card__count,
.avw-notes-card__section-head span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  background: #f4f5f7;
  color: #6b7280;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.avw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avw-chip-row--meta {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  margin-bottom: 14px;
}

.avw-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 9px;
  background: #ffffff;
  color: #374151;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(17, 24, 39, 0.04);
}

.avw-chip--meta {
  color: #4b5563;
  font-size: 13px;
}

.avw-chip--meta strong {
  color: #6b7280;
  font-weight: 800;
}

.avw-chip__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cbd5e1;
}

.avw-notes-card__section {
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.avw-notes-card__section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.avw-notes-card__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.avw-notes-card__section-head h4 {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #4b5563;
}

@media (max-width: 900px) {
  .avw-size-card__grid {
    gap: 14px;
  }

  .avw-size-option__image-wrap {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 560px) {
  .avw-size-card,
  .avw-notes-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .avw-size-card__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .avw-size-option__image-wrap {
    width: 58px;
    height: 58px;
    border-radius: 11px;
  }

  .avw-size-option__label {
    font-size: 12px;
  }

  .avw-notes-card__head,
  .avw-notes-card__section-head {
    align-items: flex-start;
  }

  .avw-chip {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
  }
}
