/* ============================================= */
/* 置中提示彈窗：已關閉抽獎箱／尚未開放／趣能量不足
   Figma dialog_已關閉投入抽獎券 2333:217168、Dialog_趣抽獎能量不足 2273:8755
   上方插圖 + 右上角圓形關閉鈕，下方標題、說明、一顆按鈕。
   外殼由 $.showDialog({ dialogClass: "dialog--notice", hideFooter: true }) 產生。 */
/* ============================================= */
.dialog--notice .dialog__header {
  display: none;
}

.dialog--notice .dialog__body {
  overflow: visible;
}

.modal-content:has(.dialog--notice) {
  max-width: 300px;
}

.lottery-closed-dialog {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}

/* ---- 上方插圖 ---- */
.lottery-closed-dialog__kv {
  position: relative;
  height: 168px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.lottery-closed-dialog__kv-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0 0 16px 16px;
  object-fit: cover;
}

.lottery-closed-dialog--no-energy .lottery-closed-dialog__kv {
  height: 160px;
}

.lottery-closed-dialog--no-energy .lottery-closed-dialog__kv-img {
  border-radius: 0;
}

/* 右上角半透明圓形關閉鈕（Figma close-layout：24x24、白色 60% 圓底） */
.lottery-closed-dialog__close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.lottery-closed-dialog__close-btn img {
  display: block;
  width: 20px;
  height: 20px;
}

/* ---- 標題／說明 ---- */
.lottery-closed-dialog__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 268px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 16px 0 24px;
}

.lottery-closed-dialog__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--neutral-800);
  text-align: center;
}

.lottery-closed-dialog__desc {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--neutral-800);
}

.lottery-closed-dialog--no-energy .lottery-closed-dialog__desc {
  font-size: 12px;
  line-height: 16px;
}

/* ---- 按鈕 ---- */
.lottery-closed-dialog__footer {
  display: flex;
  justify-content: center;
}

.lottery-closed-dialog__confirm-btn {
  width: 136px;
}

.lottery-closed-dialog--no-energy .lottery-closed-dialog__confirm-btn {
  width: 271px;
  max-width: calc(100% - 29px);
}
