.sf-ring-size {
  margin-block: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #dbc9b7;
  border-radius: 13px;
  background: #faf4ea;
  color: #342624;
}

.sf-ring-size-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .25rem 1rem;
}

.sf-ring-size h2,
.sf-ring-size h3 {
  margin: 0;
  color: #491f28;
  font-size: .98rem;
  line-height: 1.7;
}

.sf-ring-size .sf-ring-size-value {
  margin: .18rem 0;
  font-size: 1.13rem;
  font-weight: 700;
  color: #491f28;
}

.sf-ring-size-value span { font-size: .82rem; font-weight: 400; }

.sf-ring-size-code {
  color: #684d41;
  font: 600 .78rem/1.4 system-ui, sans-serif;
  letter-spacing: .035em;
}

.sf-ring-size-guide { margin-block-start: .55rem; border-block-start: 1px solid #e5d7c9; }

.sf-ring-size summary {
  align-content: center;
  min-height: 44px;
  color: #491f28;
  font-weight: 650;
  font-size: .9rem;
  cursor: pointer;
}

.sf-ring-size-steps {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  padding: .55rem 0;
}

.sf-ring-size-steps p,
.sf-ring-size .sf-ring-size-help {
  margin: .25rem 0 .5rem;
  color: #614c43;
  font-size: .86rem;
  line-height: 1.9;
}

.sf-ring-diagram {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  border: 5px solid #96754f;
  border-radius: 50%;
  color: #491f28;
}

.sf-ring-diagram span {
  position: relative;
  width: 90%;
  height: 2px;
  background: currentColor;
}

.sf-ring-diagram span::before,
.sf-ring-diagram span::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 6px;
  height: 6px;
  border-block-end: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
}

.sf-ring-diagram span::before { left: 1px; transform: rotate(45deg); }
.sf-ring-diagram span::after { right: 1px; transform: rotate(225deg); }

.sf-ring-size-table {
  max-height: 11rem;
  margin-block-end: .55rem;
  overflow: auto;
  border: 1px solid #dccbbc;
  border-radius: 7px;
  background: #fffaf4;
}

.sf-ring-size-table table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.sf-ring-size-table :is(th, td) { text-align: start; padding: .28rem .5rem; }
.sf-ring-size-table th { position: sticky; top: 0; color: #491f28; background: #f1e3d3; }
.sf-ring-size-table td { border-block-start: 1px solid #eadfd3; }

.sf-ring-size-inquiry {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding-inline: .75rem;
  border: 1px solid #85644d;
  border-radius: 7px;
  font-size: .87rem;
  font-weight: 700;
  color: #491f28;
  background: #fffaf4;
  text-decoration: none;
}

.sf-ring-size-inquiry:hover { background: #f0e3d4; }
.sf-ring-size :is(summary, a, [tabindex]):focus-visible { outline: 2px solid #712c43; outline-offset: 2px; }

.sf-contact-bar.is-sizing-visible { display: none; }

@media (max-width: 400px) {
  .sf-ring-size { padding-inline: .72rem; }
  .sf-ring-size-inquiry { justify-content: center; width: 100%; }
}
