.vs-contact-widget,
.vs-contact-widget *,
.vs-cookie-banner,
.vs-cookie-banner *,
.vs-cookie-modal,
.vs-cookie-modal * {
  box-sizing: border-box;
}

.vs-contact-widget__panel[hidden],
.vs-cookie-banner[hidden],
.vs-cookie-modal[hidden] {
  display: none !important;
}

.vs-contact-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
}

.vs-contact-widget__launcher {
  min-width: 60px;
  height: 60px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #172033;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

.vs-contact-widget__launcher-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #172033;
  font-size: 17px;
}

.vs-contact-widget__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 116px));
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.25);
}

.vs-contact-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #edf2f7;
}

.vs-contact-widget__header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.vs-contact-widget__header p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.vs-contact-widget__icon-button,
.vs-cookie-modal header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vs-contact-widget__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 14px 4px;
}

.vs-contact-widget__action {
  min-height: 64px;
  padding: 10px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #172033;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  background: #ffffff;
}

.vs-contact-widget__action:hover {
  border-color: #d946ef;
  background: #fdf4ff;
}

.vs-contact-widget__action span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #172033;
  font-size: 11px;
  font-weight: 900;
}

.vs-contact-widget__form {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.vs-contact-widget__form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.vs-contact-widget__form input,
.vs-contact-widget__form textarea {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  color: #172033;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.vs-contact-widget__form input {
  min-height: 42px;
  padding: 0 12px;
}

.vs-contact-widget__form textarea {
  min-height: 78px;
  resize: vertical;
  padding: 10px 12px;
}

.vs-contact-widget__form input:focus,
.vs-contact-widget__form textarea:focus {
  border-color: #d946ef;
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.12);
}

.vs-contact-widget__checkbox {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px !important;
  color: #475569 !important;
  font-size: 12px !important;
  line-height: 1.4;
}

.vs-contact-widget__checkbox input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 2px 0 0;
}

.vs-contact-widget__checkbox a,
.vs-contact-widget__footer a,
.vs-contact-widget__footer button {
  color: #b832d0;
  text-decoration: none;
  font-weight: 800;
}

.vs-contact-widget__submit,
.vs-cookie-banner__actions button,
.vs-cookie-modal__actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #172033;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.vs-contact-widget__message {
  margin: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.vs-contact-widget__message_success {
  background: #ecfdf5;
  color: #047857;
}

.vs-contact-widget__message_error {
  background: #fff1f2;
  color: #be123c;
}

.vs-contact-widget__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 14px;
  font-size: 12px;
}

.vs-contact-widget__footer button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.vs-contact-widget__trap {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.vs-cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9100;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  font-family: Manrope, system-ui, sans-serif;
}

.vs-cookie-banner h2,
.vs-cookie-modal h2 {
  margin: 0;
  color: #172033;
  font-size: 17px;
  font-weight: 900;
}

.vs-cookie-banner p,
.vs-cookie-modal p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.vs-cookie-banner__actions,
.vs-cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.vs-cookie-banner__actions button:nth-child(2),
.vs-cookie-banner__actions button:nth-child(3),
.vs-cookie-modal__actions button:nth-child(2) {
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #172033;
}

.vs-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: Manrope, system-ui, sans-serif;
}

.vs-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.vs-cookie-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  border-radius: 20px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

.vs-cookie-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vs-cookie-modal__options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.vs-cookie-modal__options label {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  color: #172033;
}

.vs-cookie-modal__options strong {
  display: block;
  font-size: 14px;
}

.vs-cookie-modal__options small {
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 640px) {
  .vs-contact-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    justify-content: flex-end;
  }

  .vs-contact-widget__panel {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 82px;
    width: auto;
    max-height: calc(100vh - 104px);
  }

  .vs-contact-widget__launcher {
    height: 56px;
  }

  .vs-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
  }

  .vs-cookie-banner__actions {
    justify-content: stretch;
  }

  .vs-cookie-banner__actions button,
  .vs-cookie-modal__actions button {
    flex: 1 1 100%;
  }
}

/* One dialog and teacher-contact treatment for both public template families. */
.vs-contact-widget__panel{overflow:hidden;display:flex;flex-direction:column}
.vs-contact-widget__header{flex:none;background:white}
.vs-contact-widget__icon-button{flex:none;min-width:44px;min-height:44px}
.vs-contact-widget__body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.vs-teacher-contacts{padding:14px;color:#172033;font:600 14px/1.4 Manrope,system-ui,sans-serif}
.vs-teacher-contacts p{margin:0 0 8px}
.vs-teacher-contacts__links{display:flex;flex-wrap:wrap;gap:8px}
.vs-teacher-contacts a{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid #e2e8f0;border-radius:12px;color:#a21caf;background:#fff;text-decoration:none;font-weight:800}
.vs-public-header__row{gap:12px}
.vs-public-header__actions,.vs-public-locale{flex-shrink:0}
.vs-public-book{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:999px;background:linear-gradient(110deg,#c026d3,#ea580c);color:white;font-size:14px;font-weight:800;white-space:nowrap}
@media(max-width:767px){
html.vs-contact-open,html.vs-contact-open body{overflow:hidden}
.vs-contact-widget__panel{position:fixed;inset:0;bottom:auto;width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border:0;border-radius:0;z-index:9300}
.vs-contact-widget:has(.vs-contact-widget__panel:not([hidden])){z-index:9300}
.vs-contact-widget__header{padding:calc(10px + env(safe-area-inset-top)) 14px 10px}
.vs-contact-widget__header p{display:none}
.vs-contact-widget__body{padding-bottom:env(safe-area-inset-bottom)}
.vs-contact-widget__form{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 14px}
.vs-contact-widget__form label:has(textarea),.vs-contact-widget__checkbox,.vs-contact-widget__submit,.vs-contact-widget__message{grid-column:1/-1}
.vs-contact-widget__form input,.vs-contact-widget__form textarea{font-size:16px}
.vs-contact-widget__form textarea{min-height:60px}
.vs-public-header__row{padding:8px 12px!important;gap:8px}
.vs-brand-wordmark{display:none}
.vs-public-brand{flex:none}
.vs-public-header__actions{margin-left:auto;gap:8px!important}
.vs-public-book{font-size:12px;padding:9px 12px;min-height:40px}
.vs-public-locale>*{padding-left:9px!important;padding-right:9px!important}
}

@media(max-width:767px){
.vs-contact-widget__panel{top:var(--vs-contact-top,0px);height:var(--vs-contact-height,100dvh);max-height:var(--vs-contact-height,100dvh)}
}

/* Contact stays above the banner; preferences take over after contact closes. */
.vs-contact-widget:has(.vs-contact-widget__panel:not([hidden])){z-index:9300}
.vs-cookie-modal{z-index:9400}
.vs-cookie-modal__dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto}
html.vs-cookie-open,html.vs-cookie-open body{overflow:hidden}

/* Keep the close glyph legible over the online page's generic button font. */
.vs-contact-widget .vs-contact-widget__icon-button {
  font-size: 28px;
  line-height: 1;
  color: #172033;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
