.etsy-image-ratio {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}

.etsy-image-ratio__title {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.etsy-image-ratio__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.etsy-image-ratio__button {
  display: grid;
  gap: 0.1rem;
  min-height: 3.2rem;
  padding: 0.45rem 0.3rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: 160ms ease;
}

.etsy-image-ratio__button strong {
  font-size: 0.76rem;
}

.etsy-image-ratio__button span {
  font-size: 0.58rem;
  color: #94a3b8;
}

.etsy-image-ratio__button:hover:not(:disabled) {
  border-color: #6366f1;
  color: #4f46e5;
}

.etsy-image-ratio__button--active {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 5px 14px rgb(79 70 229 / 20%);
}

.etsy-image-ratio__button--active span {
  color: #c7d2fe;
}

.etsy-image-ratio__button--disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.etsy-image-ratio__note {
  margin: 0;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .etsy-image-ratio__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.etsy-image-ratio--global {
  width: calc(100% - 2rem);
  max-width: 1280px;
  margin: 1rem auto 1.5rem;
  padding: 1rem 1.25rem;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
}

.etsy-image-ratio__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.etsy-image-ratio__module {
  color: #6366f1;
  font-size: 0.72rem;
  font-weight: 800;
}

.etsy-image-ratio[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .etsy-image-ratio__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }
}
