.iwc {
  --iwc-navy: #102b42;
  --iwc-green: #1fab5b;
  --iwc-white: #fff;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  font-family: inherit;
}

.iwc__toggle {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--iwc-green);
  color: var(--iwc-white);
  box-shadow: 0 14px 34px rgb(16 43 66 / 24%);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.iwc__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgb(16 43 66 / 30%);
}

.iwc__toggle:focus-visible,
.iwc__close:focus-visible,
.iwc__action:focus-visible,
.iwc textarea:focus-visible {
  outline: 3px solid #f2a84b;
  outline-offset: 3px;
}

.iwc__toggle-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  font-size: 25px;
}

.iwc__panel {
  width: min(370px, calc(100vw - 32px));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgb(16 43 66 / 12%);
  border-radius: 16px;
  background: var(--iwc-white);
  box-shadow: 0 24px 64px rgb(16 43 66 / 24%);
  transform-origin: right bottom;
  animation: iwc-in 180ms ease-out;
}

.iwc__panel[hidden] {
  display: none;
}

.iwc__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  background: var(--iwc-navy);
  color: var(--iwc-white);
}

.iwc__mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--iwc-green);
  font-weight: 800;
}

.iwc__header div {
  display: grid;
  flex: 1;
  gap: 2px;
}

.iwc__header strong {
  font-size: 15px;
}

.iwc__header span:not(.iwc__mark) {
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
}

.iwc__close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--iwc-white);
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}

.iwc__body {
  padding: 22px;
}

.iwc__body h2 {
  margin: 0 0 7px;
  color: var(--iwc-navy);
  font-size: 21px;
  line-height: 1.25;
}

.iwc__body p {
  margin: 0 0 17px;
  color: #526270;
  font-size: 14px;
  line-height: 1.55;
}

.iwc__body label {
  display: block;
  margin-bottom: 6px;
  color: #263d50;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.iwc__body textarea {
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #cad3da;
  border-radius: 8px;
  padding: 11px 12px;
  color: #182c3b;
  background: #f7f9fa;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.iwc__action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  padding: 12px 15px;
  border-radius: 8px;
  background: var(--iwc-green);
  color: var(--iwc-white) !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
}

.iwc__body small {
  display: block;
  margin-top: 10px;
  color: #71808c;
  font-size: 11px;
  text-align: center;
}

@keyframes iwc-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .iwc { right: 16px; bottom: 16px; }
  .iwc__toggle { min-height: 54px; padding-right: 15px; }
  .iwc__toggle-icon { width: 38px; height: 38px; }
  .iwc__panel { max-height: calc(100vh - 96px); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .iwc__panel { animation: none; }
  .iwc__toggle { transition: none; }
}
