:root { --rpoo-accent: #1f2328; }
.rpoo-intro, .rpoo-closed {
  margin: 0 0 20px; padding: 12px 16px; border-radius: 10px; background: #fff;
  border-left: 4px solid var(--rpoo-accent); color: #1f2328; font-size: 15px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.rpoo-closed { border-left-color: #b91c1c; }
.rpoo-add { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rpoo-btn {
  display: inline-block; border: 0; border-radius: 999px; background: var(--rpoo-accent); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 8px 14px; cursor: pointer;
}
.rpoo-btn:hover { filter: brightness(1.1); }
.rpoo-btn:focus-visible { outline: 2px solid var(--rpoo-accent); outline-offset: 2px; }
.rpoo-btn--block { display: block; width: 100%; border-radius: 10px; padding: 14px; font-size: 16px; margin-top: 12px; }

.rpoo-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9990; max-width: 560px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; border-radius: 14px;
  background: var(--rpoo-accent); color: #fff; font: inherit; font-size: 16px; font-weight: 600;
  padding: 15px 20px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.rpoo-bar[hidden] { display: none; }
.rpoo-bump { animation: rpoo-bump .35s ease; }
@keyframes rpoo-bump { 50% { transform: scale(1.04); } }

.rpoo-sheet { position: fixed; inset: 0; z-index: 9995; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.rpoo-sheet[hidden] { display: none; }
.rpoo-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: #fff; color: #1f2328;
  border-radius: 18px 18px 0 0; padding: 24px 20px 28px; font-size: 15px; text-align: left;
}
@media (min-width: 640px) { .rpoo-sheet { align-items: center; } .rpoo-panel { border-radius: 18px; } }
.rpoo-panel h3 { margin: 0 0 10px; font-size: 20px; color: #1f2328; }
.rpoo-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #6b7280; }
.rpoo-lines { list-style: none; margin: 0; padding: 0; }
.rpoo-lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; }
.rpoo-line-name { flex: 1 1 auto; min-width: 0; }
.rpoo-line-price { min-width: 64px; text-align: right; font-weight: 600; }
.rpoo-qty { display: flex; align-items: center; gap: 8px; }
.rpoo-qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d1d5db; background: #fff; color: #1f2328; cursor: pointer; line-height: 1; padding: 0; }
.rpoo-sub { display: flex; justify-content: space-between; margin-top: 12px; font-size: 17px; }
.rpoo-muted { color: #6b7280; font-size: 13px; margin: 6px 0 0; }
.rpoo-modhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 6px; font-size: 14px; }
.rpoo-modhead span { color: #6b7280; font-size: 12px; }
.rpoo-choices { display: grid; gap: 8px; margin: 0 0 8px; }
.rpoo-choice { position: relative; display: block; }
.rpoo-choice input { position: absolute; opacity: 0; }
.rpoo-choice span {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #e5e7eb;
  border-radius: 12px; cursor: pointer; background: #fff;
}
.rpoo-choice input:checked + span { border-color: var(--rpoo-accent); box-shadow: inset 0 0 0 1px var(--rpoo-accent); font-weight: 600; }
.rpoo-choice input:focus-visible + span { outline: 2px solid var(--rpoo-accent); }
.rpoo-btn:disabled { opacity: .55; cursor: not-allowed; }
