.sch-hub,
.sch-hub * { box-sizing: border-box; }

.sch-hub {
  position: fixed;
  z-index: 999990;
  bottom: var(--sch-desktop-offset, 24px);
  width: auto;
  max-width: calc(100vw - 24px);
  font-family: inherit;
  color: #15242e;
  line-height: 1.5;
}

.sch-hub.sch-position-right { right: 24px; }
.sch-hub.sch-position-left { left: 24px; }
.sch-hub button,
.sch-hub input,
.sch-hub select,
.sch-hub textarea { font: inherit; }
.sch-hub button { cursor: pointer; }
.sch-launcher { list-style: none; cursor: pointer; }
.sch-launcher::-webkit-details-marker { display: none; }

.sch-launcher {
  position: relative;
  display: grid;
  width: var(--sch-launcher-size-desktop, 152px);
  height: var(--sch-launcher-size-desktop, 152px);
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--sch-launcher-radius, 25px);
  color: var(--sch-launcher-text-color, #fff);
  background: #112b3c;
  background-image: var(--sch-launcher-background, linear-gradient(145deg, #205375, #112b3c));
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 38px rgba(17, 43, 60, .28);
  transition: width .22s ease, height .22s ease, border-radius .22s ease, transform .2s ease, box-shadow .2s ease;
}
.sch-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(17, 43, 60, .3); }
.sch-launcher:focus-visible,
.sch-hub button:focus-visible,
.sch-hub a:focus-visible,
.sch-hub input:focus-visible,
.sch-hub textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--sch-accent) 50%, transparent); outline-offset: 3px; }
.sch-launcher::before { content: ""; position: absolute; inset: auto -22px -35px auto; width: 100px; height: 100px; border: 20px solid rgba(255,255,255,.055); border-radius: 50%; pointer-events: none; }
.sch-launcher-content { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sch-launcher-image-size, 57px) minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 9px 8px; width: 100%; height: 100%; padding: 14px; }
.sch-launcher-image { position: relative; grid-row: 1; display: block; width: var(--sch-launcher-image-size, 57px); height: var(--sch-launcher-image-size, 57px); }
.sch-launcher-image img { display: block; width: var(--sch-launcher-image-size, 57px); height: var(--sch-launcher-image-size, 57px); border: 3px solid rgba(255,255,255,.9); border-radius: min(18px, var(--sch-launcher-radius, 25px)); object-fit: cover; background: #eaf1f4; box-shadow: 0 7px 18px rgba(4,16,24,.22); }
.sch-launcher-image i { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border: 3px solid var(--sch-primary); border-radius: 50%; background: #34c778; box-shadow: 0 0 0 3px rgba(52,199,120,.14); }
.sch-launcher-copy { align-self: center; min-width: 0; text-align: right; }
.sch-launcher-copy strong,
.sch-launcher-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-launcher-copy strong { color: var(--sch-launcher-text-color, #fff); font-size: 12px; font-weight: 850; }
.sch-launcher-copy small { margin-top: 3px; color: color-mix(in srgb, var(--sch-launcher-text-color, #fff) 72%, transparent); font-size: 10.5px; }
.sch-launcher-action { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; min-height: 35px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; color: var(--sch-launcher-text-color, #fff); background: rgba(255,255,255,.11); backdrop-filter: blur(5px); font-size: 11px; font-weight: 800; }
.sch-launcher-action b { color: #ffd4b8; font-size: 21px; line-height: 1; font-weight: 400; }
.sch-launcher-close { display: none; place-items: center; width: 100%; height: 100%; }
.sch-launcher-close svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sch-hub.is-open .sch-launcher,
.sch-hub[open] .sch-launcher { width: 54px; height: 54px; border-radius: 18px; }
.sch-hub.is-open .sch-launcher-content,
.sch-hub[open] .sch-launcher-content { display: none; }
.sch-hub.is-open .sch-launcher-close,
.sch-hub[open] .sch-launcher-close { display: grid; }
.sch-hub.is-chat-active { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }

.sch-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  width: min(380px, calc(100vw - 24px));
  max-height: min(720px, calc(100dvh - var(--sch-desktop-offset, 24px) - var(--sch-launcher-size-desktop, 152px) - 24px));
  overflow: hidden auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(17, 43, 60, .08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 43, 60, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.sch-position-right .sch-panel { right: 0; }
.sch-position-left .sch-panel { left: 0; }
.sch-hub.is-open .sch-panel,
.sch-hub[open] .sch-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.sch-panel-handle { display: none; }
.sch-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 21px 16px; border-bottom: 1px solid #eef2f4; }
.sch-panel-header h2,
.sch-subview-header h3 { margin: 0 0 4px; color: var(--sch-primary); font-size: 17px; line-height: 1.5; font-weight: 800; }
.sch-panel-header p,
.sch-subview-header p { margin: 0; color: #70808a; font-size: 12.5px; }
.sch-panel-close,
.sch-subview-header > button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: #647681;
  background: #f2f5f6;
}
.sch-panel-close svg,
.sch-subview-header svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sch-panel-view { display: none; padding: 16px; }
.sch-panel-view.is-active { display: block; animation: schViewIn .18s ease both; }
@keyframes schViewIn { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
.sch-chat-notice { display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 11px; color: #9f2828; background: #fceaea; font-size: 11.5px; }
.sch-chat-notice.is-visible { display: block; }

.sch-stories { display: flex; gap: 12px; margin: 0 -2px 17px; padding: 2px 2px 5px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d8e0e4 transparent; }
.sch-story-trigger { flex: 0 0 67px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; color: #344853; background: transparent; }
.sch-story-ring { display: grid; place-items: center; width: 64px; height: 64px; padding: 3px; border-radius: 50%; background: linear-gradient(145deg, var(--sch-accent), #ffb15c 50%, var(--sch-primary)); }
.sch-story-trigger.is-seen .sch-story-ring { background: #cbd4d8; }
.sch-story-ring img,
.sch-story-placeholder { display: grid; place-items: center; width: 58px; height: 58px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #edf2f4; }
.sch-story-placeholder svg { width: 23px; height: 23px; fill: var(--sch-primary); stroke: none; }
.sch-story-title { width: 100%; overflow: hidden; font-size: 10.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.sch-channels { display: grid; gap: 9px; }
.sch-channel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e8edef;
  border-radius: 16px;
  color: #263943;
  background: #fff;
  text-align: right;
  text-decoration: none !important;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.sch-channel:hover { border-color: color-mix(in srgb, var(--sch-primary) 25%, #e8edef); color: #263943; background: #f9fbfb; transform: translateX(-2px); }
.sch-channel-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--sch-primary); background: #edf3f5; }
.sch-channel-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sch-channel-whatsapp .sch-channel-icon { color: #138c4e; background: #e7f7ee; }
.sch-channel-telegram .sch-channel-icon { color: #168ac1; background: #e7f5fb; }
.sch-channel-phone .sch-channel-icon { color: #205375; background: #e8f1f5; }
.sch-channel-consultation .sch-channel-icon { color: var(--sch-accent); background: color-mix(in srgb, var(--sch-accent) 12%, #fff); }
.sch-channel strong,
.sch-channel small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-channel strong { font-size: 13.5px; font-weight: 800; }
.sch-channel small { margin-top: 2px; color: #80909a; font-size: 11px; }
.sch-arrow { color: #9aa7ad; font-size: 25px; line-height: 1; }

.sch-subview-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.sch-subview-header > button svg { transform: scaleX(-1); }
.sch-consultation-form { display: grid; gap: 12px; }
.sch-consultation-form label { display: grid; gap: 5px; color: #40535e; font-size: 11.5px; font-weight: 700; }
.sch-consultation-form label small { color: #8a979e; font-weight: 500; }
.sch-consultation-form input,
.sch-consultation-form select,
.sch-consultation-form textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dfe6e9;
  border-radius: 12px;
  color: #1f333e;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sch-consultation-form input,
.sch-consultation-form select { height: 43px; }
.sch-consultation-form textarea { min-height: 84px; resize: vertical; }
.sch-consultation-form input:focus,
.sch-consultation-form select:focus,
.sch-consultation-form textarea:focus { border-color: var(--sch-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sch-accent) 12%, transparent); outline: 0; }
.sch-consultation-form [aria-invalid="true"] { border-color: #c93232; }
.sch-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sch-honeypot { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.sch-privacy { margin: 0; color: #829098; font-size: 10.5px; }
.sch-form-notice { display: none; padding: 10px 12px; border-radius: 11px; font-size: 11.5px; }
.sch-form-notice.is-success { display: block; color: #14653d; background: #e8f7ef; }
.sch-form-notice.is-error { display: block; color: #9f2828; background: #fceaea; }
.sch-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 13px; color: #fff; background: var(--sch-accent); font-weight: 800; }
.sch-submit:disabled { cursor: wait; opacity: .7; }
.sch-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: schSpin .7s linear infinite; }
.is-loading .sch-spinner { display: inline-block; }
@keyframes schSpin { to { transform: rotate(360deg); } }

.sch-story-modal { position: fixed; z-index: 1000000; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(5, 14, 20, .82); opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(8px); transition: opacity .2s ease, visibility .2s ease; }
.sch-story-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.sch-story-dialog { position: relative; width: min(390px, 100%); height: min(700px, calc(100dvh - 32px)); overflow: hidden; border-radius: 24px; background: #07131b; box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.sch-story-video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #07131b; }
.sch-story-progress { position: absolute; z-index: 3; top: 11px; right: 13px; left: 13px; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.32); }
.sch-story-progress::after { content: ""; display: block; width: var(--sch-progress, 0%); height: 100%; border-radius: inherit; background: #fff; transition: width .1s linear; }
.sch-story-top { position: absolute; z-index: 4; top: 20px; right: 13px; left: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.35); }
.sch-story-top strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sch-story-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.28); backdrop-filter: blur(5px); }
.sch-story-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sch-story-nav { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 38px; height: 52px; padding: 0; border: 0; color: #fff; background: rgba(0,0,0,.18); font-size: 28px; transform: translateY(-50%); }
.sch-story-nav:disabled { display: none; }
.sch-story-prev { right: 0; border-radius: 12px 0 0 12px; }
.sch-story-next { left: 0; border-radius: 0 12px 12px 0; }
.sch-story-cta { position: absolute; z-index: 4; right: 20px; bottom: 22px; left: 20px; min-height: 49px; padding: 11px 18px; border: 0; border-radius: 14px; color: #fff; background: var(--sch-accent, #f66b0e); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 800; animation: schCtaIn .25s ease both; }
.sch-story-cta[hidden] { display: none; }
@keyframes schCtaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sch-modal-open { overflow: hidden !important; }

.sch-hide-native-goftino [data-goftino-launcher],
.sch-hide-native-goftino .goftino-launcher,
.sch-hide-native-goftino .goftino-button,
.sch-hide-native-goftino .goftino_w_icon { display: none !important; }

@media (max-width: 767px) {
  .sch-device-desktop { display: none !important; }
  .sch-hub { bottom: var(--sch-mobile-offset, 76px); }
  .sch-hub.sch-position-right { right: 12px; }
  .sch-hub.sch-position-left { left: 12px; }
  .sch-panel { max-height: calc(100dvh - var(--sch-mobile-offset, 76px) - var(--sch-launcher-size-mobile, 128px) - 20px); border-radius: 22px; }
  .sch-launcher { width: var(--sch-launcher-size-mobile, 128px); height: var(--sch-launcher-size-mobile, 128px); min-height: 0; padding: 0; border-radius: min(var(--sch-launcher-radius, 25px), 32px); }
  .sch-launcher-content { grid-template-columns: var(--sch-launcher-image-size, 48px) minmax(0, 1fr); gap: 7px; padding: 11px; }
  .sch-launcher-copy strong { font-size: 10.5px; }
  .sch-launcher-copy small { font-size: 9.5px; }
  .sch-launcher-action { min-height: 31px; padding: 5px 9px; font-size: 10px; }
  .sch-hub.is-open .sch-launcher,
  .sch-hub[open] .sch-launcher { width: 52px; height: 52px; border-radius: 17px; }
  .sch-panel-handle { display: block; width: 38px; height: 4px; margin: 8px auto -4px; border-radius: 99px; background: #dce3e6; }
  .sch-panel-header { padding-top: 15px; }
}

@media (min-width: 768px) {
  .sch-device-mobile { display: none !important; }
}

@media (max-width: 400px) {
  .sch-form-row { grid-template-columns: 1fr; }
  .sch-panel-view { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sch-hub *, .sch-story-modal * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
