/*
 * Optional Kindly floating share surface.
 *
 * This platform-owned overlay is loaded only when a site explicitly selects
 * the registered share-panel recipe. It does not alter Crafto document flow.
 */
.kindly-share {
  bottom: max(24px, env(safe-area-inset-bottom));
  position: fixed;
  right: 24px;
  z-index: 1120;
}

.kindly-share [hidden] {
  display: none !important;
}

.kindly-share__trigger {
  align-items: center;
  background: #25211f;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(31, 25, 22, 0.28);
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.kindly-share__trigger i {
  font-size: 18px;
}

.kindly-share__trigger:hover,
.kindly-share__trigger:focus-visible,
.kindly-share.is-open .kindly-share__trigger {
  background: #9b624d;
  box-shadow: 0 15px 38px rgba(31, 25, 22, 0.34);
  color: #fff;
  transform: translateY(-2px);
}

.kindly-share__trigger:focus-visible,
.kindly-share__close:focus-visible,
.kindly-share__action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.kindly-share__panel {
  animation: kindly-share-enter 180ms ease-out;
  background: #fff;
  border: 1px solid rgba(37, 33, 31, 0.1);
  border-radius: 16px;
  bottom: 68px;
  box-shadow: 0 25px 75px rgba(31, 25, 22, 0.25);
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 22px;
  position: absolute;
  right: 0;
  width: min(370px, calc(100vw - 32px));
}

.kindly-share__header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.kindly-share__eyebrow {
  color: #9b624d;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.kindly-share__header h2 {
  color: #25211f;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.kindly-share__close {
  align-items: center;
  background: #f6f1ed;
  border: 0;
  border-radius: 50%;
  color: #25211f;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.kindly-share__qr {
  align-items: center;
  background: #fbf8f5;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  margin: 18px 0;
  min-height: 226px;
  padding: 15px;
  text-align: center;
}

.kindly-share__qr img {
  background: #fff;
  border-radius: 8px;
  height: 176px;
  width: 176px;
}

.kindly-share__qr div {
  align-items: center;
  color: #746b66;
  display: flex;
  flex: 1;
  font-size: 13px;
  justify-content: center;
  min-height: 176px;
}

.kindly-share__qr p {
  color: #746b66;
  font-size: 12px;
  line-height: 1.4;
  margin: 9px 0 0;
}

.kindly-share__actions {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kindly-share__action {
  align-items: center;
  background: #f6f1ed;
  border: 0;
  border-radius: 10px;
  color: #25211f;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  min-height: 72px;
  padding: 10px 8px;
  text-align: center;
}

.kindly-share__action i {
  font-size: 20px;
}

.kindly-share__action:hover,
.kindly-share__action:focus-visible {
  background: #ead8ce;
  color: #25211f;
}

.kindly-share__action--whatsapp {
  background: #e9f8ef;
  color: #14743a;
}

.kindly-share__action--facebook {
  background: #edf3ff;
  color: #1b5bbf;
}

.kindly-share__native:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.kindly-share__status {
  color: #14743a;
  font-size: 12px;
  font-weight: 700;
  min-height: 18px;
  margin: 11px 0 0;
  text-align: center;
}

.kindly-share__privacy {
  color: #827974;
  font-size: 11px;
  line-height: 1.4;
  margin: 4px 0 0;
  text-align: center;
}

@keyframes kindly-share-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575px) {
  .kindly-share {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: 14px;
  }

  .kindly-share__trigger {
    min-height: 48px;
    padding: 0 17px;
  }

  .kindly-share__panel {
    bottom: 60px;
    max-height: calc(100vh - 88px);
    position: fixed;
    right: 14px;
    width: calc(100vw - 28px);
  }

  .kindly-share__qr {
    min-height: 202px;
  }

  .kindly-share__qr img,
  .kindly-share__qr div {
    height: 152px;
    min-height: 152px;
    width: 152px;
  }
}
