/* Signatures PRO - page of the signatures: company choice (switch with positions), optional banners */
.sgp-seg { position: relative; display: inline-flex; max-width: 100%; padding: 3px; border-radius: 999px; background: var(--c-surface-3); box-shadow: inset 0 0 0 1px var(--c-border); }
.sg-app .sgp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sg-app .sg-form .sgp-seg label { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; margin: 0; padding: 0 16px; height: 36px; line-height: 36px; border-radius: 999px; text-align: center; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c-muted); cursor: pointer; transition: color .2s; }
.sg-app .sgp-seg input:checked + label { color: #1f1600; }
.sg-app .sgp-seg input:focus-visible + label { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.sgp-seg-cursor { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2); border-radius: 999px; background: #f5b301; transition: transform .2s ease; }
.sgp-seg-3 .sgp-seg-cursor { width: calc((100% - 6px) / 3); }
.sgp-seg input:nth-of-type(2):checked ~ .sgp-seg-cursor { transform: translateX(100%); }
.sgp-seg input:nth-of-type(3):checked ~ .sgp-seg-cursor { transform: translateX(200%); }
.sg-app .sgp-select { display: block; width: 100%; max-width: 420px; margin-top: .3rem; padding: .55rem .7rem; border: 1px solid var(--c-input-border); border-radius: 4px; font: inherit; font-size: 17px; background: var(--c-surface); color: var(--c-text); }
.sgp-banner-list { display: flex; flex-direction: column; gap: .5rem; }
@media (prefers-reduced-motion: reduce) { .sgp-seg-cursor, .sg-app .sgp-seg label { transition: none; } }
.sgp-download { display: inline; margin: 0; }
.sg-app .sgp-teams-preview { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 6px; border: 1px solid var(--c-border); }
/* "Always up-to-date signature": switch Mac / Windows / Thunderbird, one panel each */
.sg-app .sgp-mailapps .sgp-seg label { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; margin: 0; padding: 0 16px; height: 36px; line-height: 36px; border-radius: 999px; text-align: center; font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--c-muted); cursor: pointer; transition: color .2s; }
.sg-app .sgp-mailapps .sgp-seg input:checked + label { color: #1f1600; }
.sg-app .sgp-os { width: 100%; max-width: 360px; margin: .4rem 0 1rem; }
.sg-app .sgp-os-panel { display: none; }
.sgp-mailapps:has(#sgp-os-mac:checked) .sgp-os-mac, .sgp-mailapps:has(#sgp-os-win:checked) .sgp-os-win, .sgp-mailapps:has(#sgp-os-tb:checked) .sgp-os-tb { display: block; }
.sg-app .sgp-refresh { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0; }
.sg-app .sgp-steps { margin: 0 0 1rem; padding-left: 1.4rem; }
.sg-app .sgp-steps li { margin-bottom: .7rem; }
.sg-app .sgp-steps li .sg-btn { margin-top: .4rem; }
.sg-app .sgp-info { background: color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-surface)); color: var(--c-strong); }
.sg-app .sgp-mailapps code { font-size: 15px; word-break: break-all; }
/* Choice of the company: every button as wide as the longest name, never cut ("Vald…", 1.5.5); on phones long names go on two lines */
.sg-app .sg-form .sgp-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.sg-app .sg-form .sgp-seg label { padding: 0 18px; overflow: visible; text-overflow: clip; }
@container sg (max-width: 600px) {
  .sg-app .sg-form .sgp-seg { display: grid; width: 100%; border-radius: 16px; }
  .sg-app .sg-form .sgp-seg .sgp-seg-cursor, .sg-app .sg-form .sgp-seg label { border-radius: 13px; }
  .sg-app .sg-form .sgp-seg label { display: flex; align-items: center; justify-content: center; height: auto; min-height: 36px; padding: 6px 10px; line-height: 1.2; white-space: normal; }
}
