/* Saleinfo マイクロコピー表示(COPIA風) */

/* ボタンの上・外側に浮かせる赤色テキスト */
div.yyi-rinker-contents ul.yyi-rinker-links li a .saleinfo-mc-top {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    text-align: center;
    color: #d63638;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}

/* 上に飛び出すテキスト分のスペースを確保
   ボタンの高さが揃うよう、キャンペーンがある場合は同じ枠内の全ボタンを下げる */
div.yyi-rinker-contents ul.yyi-rinker-links:has(.saleinfo-mc-top) li {
    margin-top: 22px;
}

div.yyi-rinker-contents ul.yyi-rinker-links li {
    overflow: visible;
}

/* マイクロコピーの「＼ ／」装飾(ボタン上部のテキストのみ) */
.saleinfo-mc-pc:before,
.saleinfo-mc-sp:before {
    content: '＼ ';
}

.saleinfo-mc-pc:after,
.saleinfo-mc-sp:after {
    content: ' ／';
}

/* PC: ボタン内ボックスとモバイル用共通テキストは非表示 */
@media (min-width: 769px) {
    .saleinfo-mc-sp,
    .saleinfo-mc-box {
        display: none;
    }
}

/* モバイル: 上部は共通テキスト、ボタン内に白背景ボックスでコピーを表示 */
@media (max-width: 768px) {
    .saleinfo-mc-pc {
        display: none;
    }

    .saleinfo-mc-box {
        display: block;
        background: #fff;
        color: #d63638;
        border-radius: 4px;
        font-size: 11px;
        font-weight: bold;
        margin: 3px 6px 2px;
        padding: 2px 8px;
        line-height: 1.5;
    }

    /* ボックスがある場合はボタンを2行に */
    div.yyi-rinker-contents ul.yyi-rinker-links li a:has(.saleinfo-mc-box) {
        height: auto;
        line-height: 1.6;
        padding-top: 4px;
        padding-bottom: 5px;
        text-align: center;
    }

    /* 2行ボタンでの矢印「›」位置調整 */
    div.yyi-rinker-contents ul.yyi-rinker-links li a:has(.saleinfo-mc-box):after {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
}
