/**
 * 購入通知ティッカー CSS
 */

/* ========== ティッカー外枠 ========== */
.purchase-ticker-wrap {
  width: 100%;
  max-width: 500px;
  margin: 0px auto;
}

.purchase-ticker-title {
  height: 62px;
  background: url('../images/ticker-titlebg.png') center center / cover no-repeat;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

/* テキストタイトルを使う場合（画像なし） */
.purchase-ticker-title.text-only {
  height: auto;
  background: none;
  font-size: 14px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 8px;
  text-align: center;
  border-radius: 0;
}

/* ========== ティッカー本体 ========== */
.purchase-ticker {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border: 1px solid #ffd6b3;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 8px rgba(255, 150, 100, 0.15);
  position: relative;
}

/* バナータイトルなしの場合 */
.purchase-ticker.standalone {
  border-top: 1px solid #ffd6b3;
  border-radius: 10px;
}

.ticker-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* テーマのスタイルを上書き */
.entry-content .ticker-list,
.post-content .ticker-list,
.ticker-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.entry-content .ticker-item,
.post-content .ticker-item,
.ticker-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 15px 0 5px !important;
}

.entry-content .ticker-item::before,
.post-content .ticker-item::before,
.ticker-item::before {
  content: none !important;
  display: none !important;
}

/* ========== 各行 ========== */
.ticker-item {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px dashed #ffe0c0;
}

.ticker-item:last-child {
  border-bottom: none;
}

.ticker-item .datetime {
  color: #333;
  font-size: 12px;
  flex-shrink: 0;
}

.ticker-item .thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  margin-left: 8px;
  margin-right: 10px;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.ticker-item .message {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-item .type-print {
  color: #2563eb;
  font-weight: 500;
}

.ticker-item .type-digital {
  color: #16a34a;
  font-weight: 500;
}

.ticker-item.empty {
  color: #999;
  justify-content: center;
}
