/* User-approved Jewellery divergence: one navbar social icon and card-first modal. */
.kindly-header-social-icon {
  flex: 0 0 36px;
  isolation: isolate;
  margin-left: 6px;
  position: relative;
  z-index: 5;
}

.kindly-header-social-icon__button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #25211f;
  display: inline-flex;
  font-size: 18px;
  cursor: pointer;
  height: 32px;
  justify-content: center;
  padding: 0;
  transition: color 160ms ease, transform 160ms ease;
  line-height: 1;
  min-height: 32px;
  min-width: 36px;
  width: 36px;
}

.kindly-header-social-icon__button:hover,
.kindly-header-social-icon__button:focus-visible,
.kindly-header-social-icon__button[aria-expanded="true"] {
  color: #9b624d;
  transform: translateY(-1px);
}

.kindly-header-social-icon__button:focus-visible,
.kindly-share button:focus-visible,
.kindly-share input:focus-visible,
.kindly-share a:focus-visible {
  outline: 2px solid #9b624d;
  outline-offset: 3px;
}

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

.kindly-share {
  display: grid;
  inset: 0;
  padding: 20px;
  place-items: center;
  position: fixed;
  z-index: 1200;
}

.kindly-share__backdrop {
  background: rgba(22, 19, 17, 0.48);
  inset: 0;
  position: absolute;
}

.kindly-share__panel {
  animation: kindly-social-modal-enter 190ms ease-out;
  background: #fffdfa;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(31, 25, 22, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 90vh;
  height: 90dvh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 20px 22px 18px;
  position: relative;
  width: min(100%, max(480px, calc((90dvh - 350px) * 0.8 + 44px)));
}

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

.kindly-share__eyebrow {
  color: #8a5744;
  display: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.kindly-share__header h2 {
  color: #25211f;
  font-family: var(--alt-font, sans-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
}

.kindly-share__header p {
  color: #706762;
  font-size: 12px;
  line-height: 1.45;
  margin: 3px 0 0;
}

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

.kindly-share__tabs {
  background: #f3ece7;
  border-radius: 11px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
}

.kindly-share__tabs button {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #5e5651;
  font-size: 12px;
  font-weight: 700;
  min-height: 34px;
  padding: 4px 10px;
}

.kindly-share__tabs button[aria-selected="true"] {
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 29, 26, 0.09);
  color: #25211f;
}

.kindly-share__tab-panel {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.kindly-share__tools {
  display: grid;
  gap: 8px;
}



.kindly-share__filters {
  display: flex;
  gap: 8px;
  margin: 0 -2px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.kindly-share__filters::-webkit-scrollbar { display: none; }

.kindly-share__filters button {
  background: #f3ece7;
  border: 0;
  border-radius: 999px;
  color: #5e5651;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  min-height: 28px;
  padding: 0 11px;
}

.kindly-share__filters button.is-active {
  background: #25211f;
  color: #fff;
}

.kindly-share__loading,
.kindly-share__empty {
  align-items: center;
  background: #f7f2ee;
  border-radius: 16px;
  color: #746b66;
  display: flex;
  font-size: 12px;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  text-align: center;
}

.kindly-share__library {
  display: grid;
  gap: 10px;
}

.kindly-share__viewer {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  /* Give the containing block a width before its percentage-sized image loads.
     A fit-content flex wrapper collapses this dependency to zero in WebKit. */
  width: max(144px, calc((90vh - 350px) * 0.8));
  width: max(144px, calc((90dvh - 350px) * 0.8));
}

.kindly-share__card {
  aspect-ratio: 4 / 5;
  background: #f3ece7;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(35, 29, 26, 0.13);
  height: auto;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.kindly-share__card img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.kindly-share__card img[hidden] {
  display: none;
}

/* Older immutable page-card metadata can still name a landscape image. */
.kindly-share__viewer:has([data-kindly-social-shape="landscape"]) {
  width: 436px;
}

.kindly-share__card[data-kindly-social-shape="landscape"] {
  aspect-ratio: 1200 / 630;
  height: auto;
  width: min(100%, 436px);
}

/* A tiny thumbnail, blurred up, stands in until the preview has decoded. */
.kindly-share__placeholder {
  filter: blur(14px);
  inset: 0;
  position: absolute;
  transform: scale(1.08);
}

.kindly-share__card:has(.kindly-share__placeholder:not([hidden])) .kindly-share__image-state {
  animation: none;
  background: rgba(255, 253, 250, 0.3);
}

.kindly-share__image-state {
  align-items: center;
  background: linear-gradient(110deg, #f3ece7 28%, #fffaf6 45%, #f3ece7 62%);
  background-size: 220% 100%;
  color: #746b66;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 12px;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
}

.kindly-share__image-state[hidden] {
  display: none;
}

.kindly-share__card[data-kindly-social-image-state="loading"] .kindly-share__image-state {
  animation: kindly-social-card-loading 1.35s ease-in-out infinite;
}

.kindly-share__card[data-kindly-social-image-state="error"] .kindly-share__image-state {
  animation: none;
  background: #f7f2ee;
}

.kindly-share__image-state-spinner {
  border: 2px solid rgba(155, 98, 77, 0.2);
  border-radius: 50%;
  border-top-color: #9b624d;
  height: 25px;
  width: 25px;
}

.kindly-share__card[data-kindly-social-image-state="loading"] .kindly-share__image-state-spinner {
  animation: kindly-social-card-spinner 700ms linear infinite;
}

.kindly-share__card[data-kindly-social-image-state="error"] .kindly-share__image-state-spinner {
  display: none;
}

.kindly-share__image-state button {
  background: #25211f;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 18px;
}

.kindly-share__nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(31, 25, 22, 0.18);
  color: #25211f;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  z-index: 2;
}

.kindly-share__nav--previous { left: -8px; }
.kindly-share__nav--next { right: -8px; }

.kindly-share__nav:hover {
  background: #25211f;
  border-color: #25211f;
  color: #fff;
}

.kindly-share__card-copy {
  display: grid;
  gap: 4px;
}

.kindly-share__card-copy > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.kindly-share__card-copy span {
  color: #9b624d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kindly-share__card-copy strong {
  color: #827974;
  font-size: 11px;
  font-weight: 600;
}

.kindly-share__card-copy p {
  color: #4d4642;
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.kindly-share__primary-actions button {
  align-items: center;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
}

.kindly-share__primary {
  background: #25211f;
  color: #fff;
}

.kindly-share__primary:hover {
  background: #9b624d;
  color: #fff;
}

.kindly-share__secondary {
  background: #f3ece7;
  color: #4d4642;
}

.kindly-share__page-share {
  align-content: start;
}

.kindly-share__qr {
  align-items: center;
  background: #f7f2ee;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 18px;
  text-align: center;
}

.kindly-share__qr img {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(35, 29, 26, 0.1);
  height: 200px;
  width: 200px;
}

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

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

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

.kindly-share__action {
  align-items: center;
  background: #f3ece7;
  border: 0;
  border-radius: 11px;
  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__privacy {
  color: #827974;
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.kindly-share__status {
  color: #315718;
  font-size: 11px;
  font-weight: 600;
  margin: -4px 0 0;
  min-height: 16px;
  text-align: center;
}

@keyframes kindly-social-modal-enter {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes kindly-social-card-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes kindly-social-card-spinner {
  to { transform: rotate(360deg); }
}

@media (max-width: 575px) {
  .kindly-header-social-icon {
    flex-basis: 40px;
    margin-left: 2px;
  }

  .kindly-header-social-icon__button {
    height: 40px;
    min-height: 40px;
    min-width: 40px;
    width: 40px;
  }

  .kindly-share {
    padding: 0;
    place-items: stretch;
  }

  .kindly-share__panel {
    border-radius: 0;
    gap: 10px;
    height: 100%;
    max-height: none;
    padding: 14px 14px max(14px, env(safe-area-inset-bottom));
    width: 100%;
  }

  .kindly-share__header { padding-inline: 2px; }
  .kindly-share__header h2 { font-size: 19px; }
  .kindly-share__viewer { width: calc(min(48vh, 380px) * 0.8); }
  .kindly-share__nav { height: 32px; width: 32px; }
  .kindly-share__nav--previous { left: -4px; }
  .kindly-share__nav--next { right: -4px; }
  .kindly-share__primary-actions button { padding: 0 10px; }
  .kindly-share__qr { min-height: 220px; }
  .kindly-share__qr img,
  .kindly-share__qr > div {
    height: 180px;
    min-height: 180px;
    width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kindly-share__panel { animation: none; }
  .kindly-share__card[data-kindly-social-image-state="loading"] .kindly-share__image-state,
  .kindly-share__card[data-kindly-social-image-state="loading"] .kindly-share__image-state-spinner {
    animation: none;
  }
}
