/* Share cards: Share button row + share sheet dialog (assets/js/share-cards.js). */

.ckc-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
}

.ckc-share-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid var(--ckc-color-info-bg-strong, #bbddff);
  border-left: 4px solid var(--ckc-color-accent, #009ae1);
  border-radius: 8px;
  background: #f5faff;
  font-size: var(--ckc-font-size-sm, 0.875rem);
}
.ckc-share-panel__text { flex: 1 1 200px; color: var(--ckc-color-text, #333); }

/* "Share the day's results": top right of the match report page */
.ckc-share-top { float: right; margin: 0 0 8px 12px; position: relative; z-index: 1; }

/* Share result buttons sit inline in the match report final score row */
.ckc-share-btn--inline { vertical-align: middle; }

html.ckc-share-sheet-open { overflow: hidden; }

.ckc-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ckc-share-sheet[hidden] { display: none; }

.ckc-share-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 54, 0.72);
}

.ckc-share-sheet__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-family: var(--ckc-font-stack, verdana, sans-serif);
}

.ckc-share-sheet__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.ckc-share-sheet__frame {
  margin: 28px 0 14px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #0f1736;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ckc-share-sheet__img { display: block; width: 100%; height: auto; }
.ckc-share-sheet__status { color: #fff; font-size: var(--ckc-font-size-sm, 0.875rem); padding: 16px; text-align: center; }

.ckc-share-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ckc-share-sheet__actions .ckc-btn { flex: 1 1 120px; justify-content: center; }
.ckc-share-sheet__actions [hidden] { display: none; }

.ckc-share-sheet__flash {
  min-height: 1.2em;
  margin: 10px 0 0;
  text-align: center;
  color: #065f46;
  font-size: var(--ckc-font-size-sm, 0.875rem);
}
