.sri-pill-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 24px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 9997;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  pointer-events: none;
}
.sri-pill-wrap.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.sri-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 14px;
  border: 1px solid rgba(214, 175, 103, 0.55);
  border-radius: 999px;
  background: #2f2a25;
  color: #f6ecd6;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px rgba(27, 23, 18, 0.28);
  cursor: pointer;
  white-space: nowrap;
}
.sri-pill-ico {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #e3c989;
}
.sri-pill-ico svg { width: 100%; height: 100%; }
.sri-pill-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(214, 175, 103, 0.45);
  background: #2f2a25;
  color: #e3c989;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(27, 23, 18, 0.22);
}

body.sri-open { overflow: hidden; }

.sri-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: #2c2620;
}
.sri-sheet[hidden] { display: none; }
.sri-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 23, 19, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sri-sheet.is-in .sri-backdrop { opacity: 1; }
.sri-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100% - 28px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fffaf0 0%, #f7eedb 100%);
  border: 1px solid rgba(182, 132, 51, 0.28);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(74, 49, 13, 0.25);
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.sri-sheet.is-in .sri-card { transform: translateY(0); opacity: 1; }
.sri-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px 24px calc(22px + env(safe-area-inset-bottom));
}
.sri-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(154, 121, 50, 0.32);
  background: rgba(255, 255, 255, 0.7);
  color: #6b5526;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.sri-sheet h2 {
  font-family: 'GFS Didot', Georgia, serif;
  font-weight: normal;
  font-size: 25px;
  line-height: 1.18;
  color: #5f4621;
  margin: 0 40px 10px 0;
}
.sri-lead {
  font-size: 14.5px;
  line-height: 1.6;
  color: #6b5d49;
  margin: 0 0 18px;
}
.sri-or {
  font-size: 13px;
  color: #8a7a5c;
  margin: 16px 0 10px;
}
.sri-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sri-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
}
.sri-step + .sri-step { border-top: 1px solid rgba(182, 132, 51, 0.16); }
.sri-step-num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #241803;
  background: linear-gradient(155deg, #f3dca0 0%, #d6af67 48%, #b68433 100%);
  box-shadow: 0 6px 14px rgba(154, 121, 50, 0.3);
}
.sri-step-body { flex: 1; min-width: 0; }
.sri-step-body p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #2c2620;
}
.sri-step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(182, 132, 51, 0.3);
  color: #1d6fdc;
  box-shadow: 0 4px 12px rgba(74, 49, 13, 0.1);
}
.sri-step-ico svg { width: 26px; height: 26px; }
.sri-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(182, 132, 51, 0.3);
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1e;
  box-shadow: 0 4px 12px rgba(74, 49, 13, 0.1);
}
.sri-mock-ico {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: #1c1c1e;
  flex-shrink: 0;
}
.sri-mock-ico svg { width: 100%; height: 100%; }
.sri-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(182, 132, 51, 0.1);
  font-size: 13px;
  line-height: 1.55;
  color: #6b5d49;
}
.sri-actions { margin-top: 18px; }
.sri-actions-end { margin-top: 22px; }
.sri-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  padding: 15px 22px;
  border-radius: 999px;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #241803;
  background: linear-gradient(180deg, #f3dca0 0%, #d6af67 52%, #b68433 100%);
  box-shadow: 0 12px 26px rgba(154, 121, 50, 0.34);
}
.sri-btn:disabled { opacity: 0.6; cursor: progress; }
.sri-btn.is-ok { background: linear-gradient(180deg, #d7e6c9 0%, #9cbf86 60%, #6f9a5d 100%); color: #14260c; }
.sri-success {
  width: 66px;
  height: 66px;
  margin: 4px 0 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1407;
  background: linear-gradient(155deg, #f3dca0 0%, #d6af67 48%, #b68433 100%);
  box-shadow: 0 10px 26px rgba(154, 121, 50, 0.4);
}
.sri-success svg { width: 30px; height: 30px; }

@media (min-width: 600px) {
  .sri-sheet { align-items: center; padding: 20px; }
  .sri-card {
    border-radius: 22px;
    border-bottom: 1px solid rgba(182, 132, 51, 0.28);
    max-height: calc(100% - 40px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sri-pill-wrap, .sri-card, .sri-backdrop { transition: none; }
}
