/* StornoGo Newsletter – forms on the website. Neutral on purpose, the theme sets fonts and colours. */

.sgn { box-sizing: border-box; max-width: 720px; }
.sgn *, .sgn *::before, .sgn *::after { box-sizing: inherit; }
.sgn-side { max-width: none; }

.sgn-title { margin: 0 0 .6em; }
.sgn-intro { margin: 0 0 1em; }

/* Honeypot: out of sight for people, still in the page for bots. */
.sgn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.sgn-field { margin: 0 0 1em; }
.sgn-field label { display: block; margin-bottom: .25em; font-weight: 600; }
.sgn-field input[type="email"],
.sgn-field input[type="text"] { width: 100%; padding: .6em .7em; }

.sgn-group { margin: 0 0 1em; padding: .6em .8em .8em; border: 1px solid rgba(0, 0, 0, .15); border-radius: 4px; }
.sgn-group legend { padding: 0 .4em; font-weight: 600; }
.sgn-options { display: flex; flex-wrap: wrap; gap: .3em 1.2em; max-height: 14em; overflow-y: auto; }
.sgn-option { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.sgn-country { margin: .2em 0; }
.sgn-country summary { cursor: pointer; font-weight: 600; padding: .2em 0; }

.sgn-consent { margin: 0 0 1em; font-size: .9em; line-height: 1.45; }
.sgn-consent label { display: flex; gap: .5em; align-items: flex-start; }
.sgn-consent input { margin-top: .25em; flex: none; }

.sgn .sgn-button, .sgn a.sgn-button { display: inline-block; padding: .65em 1.3em; border: 0; border-radius: 4px; background: #2271b1 !important; color: #fff !important; font: inherit; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.sgn .sgn-button:hover, .sgn .sgn-button:focus, .sgn a.sgn-button:hover, .sgn a.sgn-button:focus { filter: brightness(.9); text-decoration: none !important; }
.sgn .sgn-button.sgn-button-danger { background: #b32d2e !important; color: #fff !important; }
.sgn-link-button { padding: 0; border: 0; background: none; color: #b32d2e; font: inherit; text-decoration: underline; cursor: pointer; }

.sgn-notice { margin: 0 0 1em; padding: .7em 1em; border-left: 4px solid #2271b1; background: #f0f6fc; }
.sgn-notice p { margin: 0; }
.sgn-notice p + p { margin-top: .4em; }
.sgn-notice-success { border-color: #1e7e34; background: #edf7ee; }
.sgn-notice-error { border-color: #b32d2e; background: #fcf0f0; }

.sgn-topics { margin: 0 0 1.5em; padding: 0; list-style: none; }
.sgn-topics li { display: flex; justify-content: space-between; gap: 1em; align-items: center; padding: .5em 0; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.sgn-topics form { margin: 0; }

.sgn-side .sgn-consent { font-size: .8em; }
.sgn-side .sgn-button { width: 100%; text-align: center; }

/* Place field with suggestions */
.sgn-place-box { position: relative; }
.sgn-chips { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 .5em; padding: 0; list-style: none; }
.sgn-chips:empty { display: none; }
.sgn-chip { display: inline-flex; align-items: center; gap: .4em; padding: .25em .4em .25em .75em; border: 1px solid rgba(0, 0, 0, .2); border-radius: 999px; background: rgba(0, 0, 0, .04); line-height: 1.3; }
.sgn-chip-x { padding: 0 .35em; border: 0; background: none; color: inherit; font-size: 1.2em; line-height: 1; cursor: pointer; }
.sgn-suggest { position: absolute; z-index: 20; left: 0; right: 0; margin: 2px 0 0; padding: 0; max-height: 16em; overflow-y: auto; list-style: none; border: 1px solid rgba(0, 0, 0, .25); border-radius: 4px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.sgn-suggest[hidden] { display: none; }
.sgn-suggest li { padding: .5em .8em; cursor: pointer; }
.sgn-suggest li:hover, .sgn-suggest li:focus { background: rgba(0, 0, 0, .07); outline: 0; }
.sgn-suggest .sgn-suggest-none { color: #666; cursor: default; }
