/* Size picker: shared modal for "add to cart" on multi-size products
   (bestsellers + catalog cards). Also reused (classes .sp-sizes/.sp-size)
   inside the quick-order form so both flows share one visual language. */

.sp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(43, 23, 26, 0.45);
  padding: 16px;
}

.sp-overlay.is-open {
  display: flex;
}

.sp-dialog {
  position: relative;
  background: #fffdfb;
  border-radius: 20px;
  padding: 24px 20px 20px;
  width: 100%;
  max-width: 21.25rem;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(60, 30, 36, 0.25);
  outline: none;
}

.sp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff5f6;
  color: #8a5560;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sp-kicker {
  margin: 0 0 2px;
  font-size: 12px;
  color: #a9777f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-name {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: #2b171a;
  padding-right: 28px;
  line-height: 1.3;
}

.sp-sizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sp-size {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  border: 1.5px solid #ecdbdd;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  padding: 8px 6px;
  font: inherit;
  color: #2b171a;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-size b {
  font-size: 15px;
  font-weight: 700;
}

.sp-size span {
  font-size: 13px;
  color: #70565a;
}

.sp-size:hover {
  border-color: #e8b4c0;
}

.sp-size.is-selected {
  border-color: #e86f91;
  background: #fff1f4;
}

.sp-size.is-selected span {
  color: #d6476c;
}

.sp-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #c5405c;
}

.sp-confirm {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef738b, #eb5270);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.sp-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 23.4375rem) {
  .sp-dialog {
    padding: 20px 16px 16px;
  }
}
