.pt-pwa {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 99990;
  width: min(330px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid rgba(180, 77, 117, 0.2);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,244,248,.98));
  box-shadow: 0 20px 55px rgba(104, 47, 69, .2);
  backdrop-filter: blur(16px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: pt-pwa-in .35s ease-out both;
}
.pt-pwa__install {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  padding: 7px 42px 7px 7px;
  border: 0;
  border-radius: 17px;
  color: #4a303a;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.pt-pwa__install:hover { background: #fff; box-shadow: 0 8px 24px rgba(143, 53, 89, .1); }
.pt-pwa__install:focus-visible { outline: 3px solid rgba(180, 77, 117, .3); outline-offset: 2px; }
.pt-pwa__logo-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #f2d4df;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(143, 53, 89, .12);
}
.pt-pwa__logo { width: 42px; height: 42px; object-fit: contain; }
.pt-pwa__copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.pt-pwa__copy strong {
  overflow: hidden;
  color: #a33f68;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-pwa__copy small {
  overflow: hidden;
  color: #806b75;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-pwa__arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ce6d92, #a33f68);
  font-size: 19px;
  font-weight: 800;
  transition: transform .2s ease;
}
.pt-pwa__install:hover .pt-pwa__arrow { transform: translateY(2px); }
.pt-pwa__dismiss {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #93405f;
  background: #fbe8ef;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.pt-pwa__dismiss:hover { color: #fff; background: #b44d75; }
.pt-pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(48, 30, 38, .52);
  backdrop-filter: blur(7px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.pt-pwa-modal__card {
  position: relative;
  width: min(460px, 100%);
  padding: 36px 32px 32px;
  text-align: center;
  border: 1px solid #efd6df;
  border-radius: 28px;
  color: #3d3036;
  background: linear-gradient(155deg, #fff, #fff7fa);
  box-shadow: 0 28px 90px rgba(31, 16, 22, .3);
}
.pt-pwa-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #efb5ca;
  border-radius: 50%;
  color: #8f3559;
  background: #fff6f9;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.pt-pwa-modal__mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid #f2d4df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(143, 53, 89, .14);
}
.pt-pwa-modal__mark img { width: 60px; height: 60px; object-fit: contain; }
.pt-pwa-modal h2 {
  margin: 0 0 12px;
  color: #8f3559;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
}
.pt-pwa-modal p { margin: 0 auto 24px; max-width: 350px; color: #806b75; line-height: 1.65; }
.pt-pwa-modal__ok {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #b44d75;
  font-weight: 800;
  cursor: pointer;
}

.pt-pwa,
.pt-pwa * {
  box-sizing: border-box;
}

body .pt-pwa > button.pt-pwa__install {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 7px 42px 7px 7px !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  text-transform: none !important;
}

body .pt-pwa > button.pt-pwa__install:hover {
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(143, 53, 89, .1) !important;
}

body .pt-pwa > button.pt-pwa__dismiss {
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
  text-align: center !important;
}

body .pt-pwa-modal button.pt-pwa-modal__close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-family: Arial, sans-serif !important;
  line-height: 1 !important;
  text-align: center !important;
}

@keyframes pt-pwa-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 782px) {
  .pt-pwa {
    left: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: min(318px, calc(100vw - 24px));
    border-radius: 20px;
  }
  .pt-pwa__install {
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    min-height: 58px;
    gap: 9px;
  }
  .pt-pwa__logo-wrap { width: 44px; height: 44px; border-radius: 13px; }
  .pt-pwa__logo { width: 39px; height: 39px; }
  .pt-pwa__copy strong { font-size: 14px; }
  .pt-pwa-modal__card { padding: 32px 22px 26px; }
  .pt-pwa-modal h2 { font-size: 28px; }
}
.pt-pwa-push-card {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto;
  box-sizing: border-box;
  padding: 20px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    "icon copy"
    ". action";
  align-items: start;
  column-gap: 14px;
  row-gap: 14px;
  border: 1px solid #efd6df;
  border-radius: 20px;
  background: #fff8fa;
  box-shadow: 0 12px 34px rgba(92, 44, 63, .08);
  color: #44363c;
}
.pt-pwa-push-card[hidden] { display: none !important; }
.ptv2-tab-panel[data-panel="profil"] > .pt-pwa-push-card {
  width: 100%;
  max-width: 820px;
  margin: 20px 0 0;
  padding: 22px;
  border-color: #eadde2;
  border-radius: 14px;
  background: #fff9fb;
  box-shadow: none;
}
.pt-pwa-push-card__icon {
  grid-area: icon;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f8dce6;
  font-size: 22px;
}
.pt-pwa-push-card__copy {
  grid-area: copy;
  min-width: 0;
  display: grid;
  gap: 5px;
}
.pt-pwa-push-card__copy strong { color: #813a56; font-size: 17px; line-height: 1.3; }
.pt-pwa-push-card__copy span { color: #765f68; font-size: 14px; line-height: 1.5; }
.pt-pwa-push-card__button,
.pt-pwa-push-prompt__enable,
.pt-pwa-push-prompt__later {
  min-height: 44px;
  padding: 11px 16px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.pt-pwa-push-card__button,
.pt-pwa-push-prompt__enable { background: #b44d75; color: #fff; }
.pt-pwa-push-card__button {
  grid-area: action;
  justify-self: start;
  width: min(100%, 310px);
  white-space: normal;
  line-height: 1.35;
}
.pt-pwa-push-card__button:disabled { cursor: not-allowed; opacity: .55; }
.pt-pwa-push-prompt {
  position: fixed;
  z-index: 100001;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(620px, calc(100% - 28px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #efd6df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(65, 31, 44, .24);
  color: #44363c;
}
.pt-pwa-push-prompt__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f8dce6;
  font-size: 23px;
}
.pt-pwa-push-prompt__copy { min-width: 0; display: grid; gap: 4px; }
.pt-pwa-push-prompt__copy strong { color: #813a56; font-size: 16px; }
.pt-pwa-push-prompt__copy span { color: #715d65; font-size: 14px; line-height: 1.4; }
.pt-pwa-push-prompt__actions { display: flex; gap: 8px; }
.pt-pwa-push-prompt__later { background: #f7edf1; color: #813a56; }
@media (max-width: 680px) {
  .pt-pwa-push-card {
    width: min(100% - 24px, 760px);
    padding: 17px;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
  }
  .pt-pwa-push-card__icon { width: 44px; height: 44px; }
  .pt-pwa-push-card__button { width: 100%; }
  .pt-pwa-push-prompt { grid-template-columns: auto minmax(0, 1fr); }
  .pt-pwa-push-prompt__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt-pwa { animation: none; }
  .pt-pwa__arrow { transition: none; }
}
@media (display-mode: standalone) {
  .pt-pwa { display: none !important; }
}
