/* OnDuhGo Twin — the shop's Open/Closed switch (shopfront.js, docs/shopfront.md). Brand colours and Baloo 2 only. */
.sfPill { position: relative; z-index: 5; display: inline-flex; align-self: center; flex: none; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px; border: 2px solid #4A2A18; background: #F7E7C6; color: #2B2118; cursor: pointer;
  font: 600 13px/1.2 "Baloo 2", "Work Sans", "Segoe UI", sans-serif; box-shadow: 0 4px 14px rgba(43,33,24,.35); max-width: calc(100vw - 24px); white-space: nowrap; }
.sfPill b { font-weight: 800; font-size: 14px; }
.sfPill span { color: rgba(43,33,24,.72); overflow: hidden; text-overflow: ellipsis; }
.sfPill .sfDot { width: 10px; height: 10px; border-radius: 50%; background: #C89B6C; flex: none; }
.sfPill.sfOpen { background: #E38361; border-color: #4A2A18; }
.sfPill.sfOpen span { color: #2B2118; }
.sfPill.sfOpen .sfDot { background: #FFFBF2; box-shadow: 0 0 0 3px rgba(255,251,242,.45); }
.sfPill.sfClosed .sfDot { background: #4A2A18; }
.sfPill:focus-visible { outline: 3px solid #FFFBF2; outline-offset: 2px; }

.sfPill.sfFloat { position: fixed; left: 12px; bottom: 12px; z-index: 9000; }
.sfPanel { position: fixed; left: 50%; transform: translateX(-50%); top: 74px; z-index: 9001; width: min(400px, calc(100vw - 24px)); max-height: calc(100vh - 96px); overflow: auto;
  padding: 14px 16px 16px; border-radius: 16px; border: 2px solid #4A2A18; background: #FFFBF2; color: #2B2118;
  font: 500 14px/1.5 "Baloo 2", "Work Sans", "Segoe UI", sans-serif; box-shadow: 0 10px 34px rgba(43,33,24,.45); }
.sfPanel[hidden] { display: none; }
.sfPanel p { margin: 6px 0; }
.sfPanel h4 { margin: 14px 0 4px; font-size: 15px; font-weight: 800; color: #4A2A18; }
.sfPanel a { color: #4A2A18; font-weight: 700; }
.sfHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sfHead b { font-size: 17px; font-weight: 800; color: #4A2A18; }
.sfX { border: 0; background: transparent; color: #4A2A18; font: 700 24px/1 "Baloo 2", sans-serif; cursor: pointer; padding: 0 4px; }
.sfMuted { color: rgba(43,33,24,.7); font-size: 13px; }
.sfWarn { padding: 6px 10px; border-left: 3px solid #E38361; background: rgba(227,131,97,.12); font-weight: 600; }
.sfNote { padding: 6px 10px; border-radius: 10px; background: #F7E7C6; font-weight: 600; font-size: 13px; }
.sfBtn { display: inline-block; min-height: 40px; margin: 8px 8px 0 0; padding: 6px 14px; border-radius: 12px; border: 2px solid #4A2A18; background: #F7E7C6; color: #2B2118;
  font: 700 14px "Baloo 2", "Work Sans", sans-serif; cursor: pointer; }
.sfBtn.sfPrimary { background: #E38361; border-color: #E38361; color: #2B2118; font-weight: 800; }
.sfBtn[disabled] { opacity: .55; cursor: wait; }
.sfForm { margin-top: 4px; }
.sfLbl { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; font-weight: 700; color: #4A2A18; }
.sfPanel input[type=text], .sfPanel input[type=number], .sfPanel input[type=datetime-local] { padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(74,42,24,.55);
  background: #FFFBF2; color: #2B2118; font: 600 14px "Baloo 2", sans-serif; width: 100%; box-sizing: border-box; }
.sfSpot { margin: 8px 0; padding: 6px 10px 10px; border: 1px solid rgba(74,42,24,.25); border-radius: 12px; }
.sfSpot legend { font-weight: 700; color: #4A2A18; padding: 0 4px; }
.sfSpot label { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-weight: 600; }
.sfSpot input[type=radio] { accent-color: #E38361; width: 17px; height: 17px; }
.sfSpot #sfPaste { margin: 2px 0 4px 25px; width: calc(100% - 25px); }
.sfMore { margin-top: 12px; border-top: 1px solid rgba(74,42,24,.16); padding-top: 8px; }
.sfMore summary { cursor: pointer; font-weight: 700; color: #4A2A18; }
.sfRow { display: flex; flex-wrap: wrap; }
#sfBasePaste { margin-top: 8px; }

@media (max-width: 640px) {
  .sfPill { font-size: 12px; padding: 5px 10px 5px 9px; gap: 6px; }
  .sfPill span { display: none; }
  .sfPanel { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 80px); }
}
