/* Add style for share toast notification */
.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(119, 143, 93, 0.9);  /* Avocado green background */
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  font-size: 16px;
  text-align: center;
} 

/* Sticker (Title Screen Badge) - Oval style */
.cm-sticker {
  position: fixed;
  z-index: 500;
  pointer-events: none;
  display: none;
  /* Oval shape: border-radius uses horizontal/vertical radii for 1:1.8 ratio */
  /* Width and height will be set by JS, but border-radius will create oval */
  overflow: visible; /* Changed to visible so image can extend beyond oval */
  transform: none;
  /* Endive fill with 1px cocoa-neut outline (matching title card) - only for text mode */
  background: #FCFFC7; /* Endive */
  border: 1px solid #3D0F00; /* Cocoa-neut outline */
  box-sizing: border-box;
}

/* Image mode: remove background, border, and overflow constraints */
.cm-sticker[data-sticker-mode="image"] {
  background: transparent;
  border: none;
  overflow: visible; /* Allow image to extend beyond oval bounds */
}

/* Safety net: reduce sticker z-index when modals are active */
/* This ensures sticker stays behind modals (z-index: 10000) even if visible for a frame */
.cm-sticker[style*="z-index: 100"] {
  z-index: 100 !important;
}

.cm-sticker-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center container */
  text-align: center; /* horizontal center text */
  padding: 6px; /* minimal padding; JS may shrink further on small */
  font-family: 'hoss-round-slab', sans-serif; /* Hoss Round Slab font (same as tagline) */
  font-weight: normal;
  color: #3D0F00; /* Cocoa-neut text */
  line-height: 1.2;
  font-size: var(--sticker-font-size, 10px);
  transform: none;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden; /* Ensure text doesn't fall off oval edges */
  /* Clip text container to oval shape - creates tapered textbox effect */
  clip-path: ellipse(50% 50% at center);
  -webkit-clip-path: ellipse(50% 50% at center); /* Safari support */
  z-index: 1; /* above background */
  /* Force text to wrap by constraining width */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Image mode: remove clipping and overflow constraints */
.cm-sticker[data-sticker-mode="image"] .cm-sticker-content {
  overflow: visible; /* Allow image to extend beyond container */
  clip-path: none; /* Remove oval clipping */
  -webkit-clip-path: none;
  padding: 0; /* No padding needed for image */
}

/* Sticker image styling */
.cm-sticker-content .sticker-image {
  display: none; /* Hidden by default, shown via JS */
  /* Image will be sized 20% larger than oval via JS */
  /* No object-fit constraints - image displays at natural size */
  object-position: center;
  /* No border-radius - image replaces oval completely */
}