/* MiKO News — lottery result modal control polish.
   Fixed close button/icon dimensions, legibility, and share control alignment.
   Narrowly scoped to the actual modal portaled under <body>.
   2026-11-02 */
body > .miko-check-modal .miko-check-modal-panel > button.miko-check-modal-close {
  all: unset !important;
  position: absolute !important;
  inset: 12px 12px auto auto !important;
  z-index: 35 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
  box-sizing: border-box !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #bfd4ec !important;
  border-radius: 12px !important;
  background: #f0f6fe !important;
  color: #174e89 !important;
  -webkit-text-fill-color: #174e89 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center !important;
  box-shadow: 0 2px 8px rgba(9, 60, 118, .12) !important;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer !important;
  transform: none !important;
  filter: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  touch-action: manipulation !important;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}
body > .miko-check-modal .miko-check-modal-panel > button.miko-check-modal-close svg {
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  stroke: #174e89 !important;
  stroke-width: 2.6 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}
body > .miko-check-modal .miko-check-modal-panel > button.miko-check-modal-close:hover {
  background: #e4f0ff !important;
  border-color: #82b0e5 !important;
  box-shadow: 0 4px 11px rgba(10, 76, 154, .18) !important;
}
body > .miko-check-modal .miko-check-modal-panel > button.miko-check-modal-close:active {
  background: #d6e9ff !important;
  box-shadow: inset 0 1px 4px rgba(10, 76, 154, .1) !important;
}
body > .miko-check-modal .miko-check-modal-panel > button.miko-check-modal-close:focus-visible {
  outline: 3px solid #1675d1 !important;
  outline-offset: 3px !important;
}
body > .miko-check-modal .miko-check-modal-panel > button.miko-check-modal-close::before,
body > .miko-check-modal .miko-check-modal-panel > button.miko-check-modal-close::after {
  /* Prevent theme-wide pseudo-icon decorators from turning X into an oval. */
  content: none !important;
  display: none !important;
}
body > .miko-check-modal .miko-check-modal-panel > .miko-check-modal-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  margin-top: 16px !important;
}
body > .miko-check-modal .miko-check-modal-panel > .miko-check-modal-buttons > a,
body > .miko-check-modal .miko-check-modal-panel > .miko-check-modal-buttons > button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif !important;
  font-weight: 800 !important;
  white-space: normal !important;
  text-align: center !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  overflow-wrap: anywhere !important;
  transform: none !important;
}
body > .miko-check-modal .miko-check-modal-panel > .miko-check-modal-buttons > a {
  color: #1d65b5 !important;
  -webkit-text-fill-color: #1d65b5 !important;
  background: #f4f9ff !important;
  border: 1px solid #bcd8f4 !important;
}
body > .miko-check-modal .miko-check-modal-panel > .miko-check-modal-buttons > button {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #eb2d78 !important;
  border: 1px solid #eb2d78 !important;
}
body > .miko-check-modal .miko-check-modal-panel > .miko-check-modal-buttons svg {
  display: inline-block !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
}
body > .miko-check-modal #miko-lottery-share .miko-lottery-share-heading .miko-lottery-share-icon svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  stroke: #1265bd !important;
  stroke-width: 1.9 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
body > .miko-check-modal #miko-lottery-share .miko-lottery-share-controls button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: 7px !important;
  min-height: 46px !important;
  padding: 10px 9px !important;
  line-height: 1.5 !important;
  font-size: 12px !important;
}
body > .miko-check-modal #miko-lottery-share .miko-lottery-share-controls button svg {
  display: block !important;
  flex: 0 0 17px !important;
  width: 17px !important;
  min-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.1 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
  opacity: 1 !important;
}
body > .miko-check-modal #miko-lottery-share .miko-lottery-share-send svg { stroke: #fff !important; }
body > .miko-check-modal #miko-lottery-share .miko-lottery-share-save svg { stroke: #215d9a !important; }
@media (max-width: 440px) {
  body > .miko-check-modal .miko-check-modal-panel > button.miko-check-modal-close {
    inset: 10px 10px auto auto !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
  body > .miko-check-modal #miko-lottery-share .miko-lottery-share-controls button {
    gap: 5px !important;
    font-size: 11px !important;
    padding: 9px 7px !important;
  }
}
@media (max-width: 320px) {
  body > .miko-check-modal #miko-lottery-share .miko-lottery-share-controls {
    grid-template-columns: 1fr !important;
  }
  body > .miko-check-modal .miko-check-modal-panel > .miko-check-modal-buttons > a,
  body > .miko-check-modal .miko-check-modal-panel > .miko-check-modal-buttons > button {
    flex: 1 1 100% !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body > .miko-check-modal .miko-check-modal-panel > button.miko-check-modal-close { transition: none !important; }
}