/* Fixed widgets: cookie (left) + chat (right) */

.floating-widgets {
  position: fixed;
  inset: auto 0 0 0;
  pointer-events: none;
  z-index: 9998;
}

.floating-widgets > * {
  pointer-events: auto;
}

/* Cookie button — bottom left */
.cookie-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(5, 34, 97, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cookie-fab:hover {
  box-shadow: 0 4px 16px rgba(5, 34, 97, 0.35);
  transform: translateY(-1px);
}

.cookie-fab:focus-visible {
  outline: 0.1875rem solid #135ee2;
  outline-offset: 0.125rem;
}

.cookie-fab img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.cookie-modal-overlay.open {
  display: flex;
}

.cookie-modal {
  background: #1658b4;
  color: #fff;
  width: 100%;
  max-width: 100%;
  padding: 24px 20px 28px;
  box-shadow: 0 0 35px 10px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  line-height: 1.75;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.cookie-modal p {
  margin-bottom: 16px;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.cookie-modal-actions button {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: box-shadow 0.25s, background-color 0.25s;
}

.cookie-btn-primary {
  background: #fff;
  color: #1a67d2;
  border: 2px solid #fff;
}

.cookie-btn-primary:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.cookie-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-secondary:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #1658b4;
  cursor: pointer;
  padding: 0;
}

.cookie-modal-close img {
  width: 32px;
  height: 32px;
  display: block;
}

.cookie-modal-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Chat widget — bottom right (George webchat style) */
.webchat {
  position: fixed;
  right: 20px;
  bottom: 0;
  width: 345px;
  max-width: calc(100vw - 40px);
  z-index: 9999;
  font: 16px Inter, sans-serif;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
}

.webchat--collapsed .chat-container,
.webchat--collapsed .teaser {
  display: none;
}

.webchat-launcher {
  display: none;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3E%3Cg fill-rule='evenodd' clip-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='20' fill='%231A67D2'/%3E%3Cpath fill='%23FFF' d='m31.818 20-18.182 8.182v-7.075l13.802-1.126-13.802-1.047v-7.116z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(5, 34, 97, 0.35);
  margin-left: auto;
  margin-bottom: 20px;
}

.webchat--collapsed .webchat-launcher {
  display: block;
}

.webchat--collapsed {
  width: auto;
  box-shadow: none;
  background: transparent;
}

.teaser {
  background-color: #064ea1;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  cursor: pointer;
  height: 47px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 0 16px;
  border: none;
  width: 100%;
  text-align: left;
}

.teaser__title {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='18' fill='none'%3E%3Cpath fill='%23fff' d='M15.812 0H4.103A4.1 4.1 0 0 0 0 4.103v5.8a4.1 4.1 0 0 0 4.103 4.103c.329 0 .602.274.602.602V18s1.477-1.313 4.486-3.83a.5.5 0 0 1 .383-.164h6.238c2.243 0 4.048-1.805 4.048-4.103v-5.8C19.86 1.805 18.055 0 15.812 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 center;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 47px;
  padding: 0;
  text-indent: 30px;
}

.teaser__button--minimize {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='2' fill='none'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-width='1.5' d='M.1.8h15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 20px;
  border: none;
  cursor: pointer;
  height: 32px;
  width: 24px;
  margin: auto 4px auto 0;
}

.chat-container {
  background-color: #f4f6fa;
  display: flex;
  flex-direction: column;
  height: 461px;
  max-height: calc(77vh - 47px);
}

.chat-body {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
  color: #21416c;
}

.chat-body p {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 12px;
}

.chat-body p.subtle {
  color: #5c7999;
  font-size: 14px;
}

.composer {
  background-color: #fff;
  border-top: 1px solid #d8dee3;
  display: flex;
  align-items: center;
  padding: 0 14px 0 0;
}

.composer__input-container {
  background-color: #fff;
  border: 1px solid #5c7999;
  border-radius: 22px;
  display: flex;
  flex-grow: 1;
  margin: 12px 0 12px 14px;
  padding: 0 0 0 13px;
}

.composer__input {
  background: transparent;
  border: none;
  box-sizing: border-box;
  color: #003658;
  font: 16px Inter, sans-serif;
  height: 40px;
  line-height: 28px;
  outline: none;
  width: 100%;
  padding: 7px 0;
}

.composer__input::placeholder {
  color: #5c7999;
}

.composer__submit-button {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3E%3Cg fill-rule='evenodd' clip-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='20' fill='%231A67D2'/%3E%3Cpath fill='%23FFF' d='m31.818 20-18.182 8.182v-7.075l13.802-1.126-13.802-1.047v-7.116z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  height: 40px;
  width: 40px;
  margin: auto 0 auto 14px;
  cursor: pointer;
  flex-shrink: 0;
}

@media screen and (max-width: 600px) {
  .cookie-fab {
    left: 16px;
    bottom: 16px;
  }

  .webchat {
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .webchat--collapsed .webchat-launcher {
    margin-right: 16px;
    margin-bottom: 16px;
  }

  .chat-container {
    height: 366px;
    max-height: calc(73vh - 47px);
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-modal-actions button {
    width: 100%;
  }
}
