.ar-site-feedback {
  position: fixed;
  z-index: 900;
  right: 18px;
  bottom: 18px;
  color: var(--ar-chrome-ink, #575756);
  font-family: var(--ar-font-body, inherit);
}

.ar-site-feedback [hidden] { display: none !important; }
.ar-site-feedback summary { list-style: none; }
.ar-site-feedback summary::-webkit-details-marker { display: none; }

.ar-site-feedback__trigger {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid rgba(69, 103, 99, .22);
  border-radius: 999px;
  background: #456763;
  box-shadow: 0 8px 26px rgba(42, 63, 61, .2);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ar-site-feedback__trigger:hover { background: #354f4c; box-shadow: 0 10px 30px rgba(42, 63, 61, .24); transform: translateY(-1px); }
.ar-site-feedback__trigger:focus-visible,
.ar-site-feedback__close:focus-visible,
.ar-site-feedback__submit:focus-visible { outline: 3px solid #fdd79e; outline-offset: 3px; }
.ar-site-feedback__trigger svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.ar-site-feedback__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  box-sizing: border-box;
  width: min(360px, calc(100vw - 32px));
  max-height: min(72vh, 540px);
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(87, 87, 86, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(41, 51, 50, .22);
  overscroll-behavior: contain;
}

.ar-site-feedback__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ar-site-feedback__eyebrow { margin: 0 0 6px; color: #456763; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ar-site-feedback__header h2 { max-width: 270px; margin: 0; color: #424746; font-size: 21px; font-weight: 750; line-height: 1.25; }
.ar-site-feedback__intro { margin: 8px 0 18px; color: #686866; font-size: 14px; line-height: 1.5; }
.ar-site-feedback__close { display: inline-grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; padding: 0; border: 1px solid rgba(87, 87, 86, .18); border-radius: 12px; background: #fff; color: #575756; cursor: pointer; }
.ar-site-feedback__close:hover { background: #f1f6f5; }
.ar-site-feedback__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.ar-site-feedback__form { margin: 0; }
.ar-site-feedback__label { display: block; margin-bottom: 7px; color: #454846; font-size: 14px; font-weight: 700; }
.ar-site-feedback__form textarea { display: block; box-sizing: border-box; width: 100%; min-height: 112px; padding: 12px 13px; border: 1px solid rgba(87, 87, 86, .26); border-radius: 11px; background: #fff; color: #424746; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.ar-site-feedback__form textarea::placeholder { color: #777b79; opacity: 1; }
.ar-site-feedback__form textarea:focus-visible { border-color: #456763; outline: 3px solid rgba(69, 103, 99, .22); outline-offset: 1px; }
.ar-site-feedback__privacy { margin: 9px 0 14px; color: #686866; font-size: 12px; line-height: 1.45; }
.ar-site-feedback__submit { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 0; border-radius: 11px; background: #456763; color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 750; transition: background-color .16s ease, opacity .16s ease; }
.ar-site-feedback__submit:hover { background: #354f4c; }
.ar-site-feedback__submit:disabled { cursor: wait; opacity: .66; }
.ar-site-feedback__status { margin: 12px 0 0; color: #a33b32; font-size: 13px; font-weight: 650; line-height: 1.45; }
.ar-site-feedback__status:empty { display: none; }
.ar-site-feedback__status--success { padding: 14px; border-radius: 12px; background: #f1f6f5; color: #315f50; }
.ar-site-feedback__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 480px) {
  .ar-site-feedback { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .ar-site-feedback__trigger { min-height: 46px; padding: 9px 14px; }
  .ar-site-feedback__panel { width: min(360px, calc(100vw - 24px)); max-height: min(68vh, 540px); padding: 19px; }
  .ar-site-feedback__header h2 { font-size: 19px; }
}

@media (max-width: 899px) {
  .single-szkolenie .ar-site-feedback { bottom: calc(74px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .ar-site-feedback__trigger,
  .ar-site-feedback__submit { transition: none; }
  .ar-site-feedback__trigger:hover { transform: none; }
}
