/* Mono Stockers Amazon Affiliate Styles */

/* 記事末尾 商品カード */
.msa-recommend {
    margin: 2em 0;
    padding: 1.5em;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.msa-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e0e0e0;
}

.msa-cards {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.msa-card {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    padding: 1em;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.msa-card:hover {
    border-color: #ff9900;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.15);
}

.msa-card-img-link {
    flex-shrink: 0;
}

.msa-card-img {
    width: 100px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #eee;
}

.msa-card-body {
    flex: 1;
}

.msa-card-title {
    font-weight: bold;
    font-size: 1em;
    margin: 0 0 0.3em;
    color: #333;
}

.msa-card-desc {
    font-size: 0.9em;
    color: #555;
    margin: 0 0 0.5em;
}

.msa-card-price {
    font-size: 0.85em;
    color: #b12704;
    margin: 0 0 0.8em;
    font-weight: bold;
}

.msa-price-note {
    font-weight: normal;
    font-size: 0.8em;
    color: #999;
}

.msa-btn {
    display: inline-block;
    padding: 0.5em 1.5em;
    background: #ff9900;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background 0.2s;
}

.msa-btn:hover {
    background: #e68a00;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.msa-btn::after {
    content: '';
    display: inline;
}

/* サイドバーウィジェット */
.msa-sidebar {
    padding: 1em;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
}

.msa-sidebar-label {
    font-size: 0.75em;
    color: #999;
    margin: 0 0 0.8em;
}

.msa-sidebar-img {
    width: 90px;
    height: auto;
    margin: 0 auto 0.6em;
    display: block;
    border-radius: 4px;
    border: 1px solid #eee;
}

.msa-sidebar-title {
    font-size: 0.95em;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.5em;
    line-height: 1.4;
}

.msa-sidebar-price {
    font-size: 0.85em;
    color: #b12704;
    font-weight: bold;
    margin: 0 0 0.8em;
}

.msa-sidebar-btn {
    display: inline-block;
    padding: 0.5em 1.2em;
    background: #ff9900;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    transition: background 0.2s;
}

.msa-sidebar-btn:hover {
    background: #e68a00;
    color: #fff !important;
}

/* DL完了パネル内テキストリンク */
.msa-dl-panel {
    margin-top: 1em;
    padding-top: 0.8em;
    border-top: 1px dashed #ccc;
}

.msa-dl-label {
    font-size: 0.8em;
    color: #888;
    margin: 0 0 0.3em;
}

.msa-dl-link {
    font-size: 0.9em;
    color: #0066c0 !important;
    text-decoration: underline !important;
}

.msa-dl-link:hover {
    color: #c45500 !important;
}

/* ============================================================
   DL完了モーダル（画面中央表示）
   ============================================================ */
#msa-dl-toast {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#msa-dl-toast.msa-toast-visible {
    opacity: 1;
    visibility: visible;
}

#msa-dl-toast.msa-toast-hiding {
    opacity: 0;
    visibility: hidden;
}

.msa-toast-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.msa-toast-inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 440px;
    max-width: 92vw;
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

#msa-dl-toast.msa-toast-visible .msa-toast-inner {
    transform: scale(1);
}

.msa-toast-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f0fdf4;
    border-bottom: 1px solid #e8e8e8;
}

.msa-toast-check {
    color: #16a34a;
    font-size: 1.4em;
    font-weight: bold;
    margin-right: 10px;
}

.msa-toast-title {
    flex: 1;
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

.msa-toast-close {
    background: none;
    border: none;
    font-size: 1.6em;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.msa-toast-close:hover {
    color: #333;
}

.msa-toast-body {
    padding: 20px;
}

.msa-toast-section {
    margin-bottom: 16px;
}

.msa-toast-section:last-child {
    margin-bottom: 0;
}

.msa-toast-heading {
    font-size: 0.85em;
    color: #666;
    margin: 0 0 8px;
    font-weight: bold;
}

.msa-toast-pr {
    font-size: 0.7em;
    background: #eee;
    color: #888;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: normal;
    vertical-align: middle;
}

.msa-toast-btn-category {
    display: block;
    text-align: center;
    padding: 14px 16px;
    background: #1e40af;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
}

.msa-toast-btn-category:hover {
    background: #1d4ed8;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.msa-toast-a8 {
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}

.msa-toast-btn-cta {
    display: block;
    text-align: center;
    padding: 12px 16px;
    background: #dc2626;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
}

.msa-toast-btn-cta:hover {
    background: #b91c1c;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.msa-toast-btn-cta-sub {
    display: block;
    font-size: 0.75em;
    font-weight: normal;
    margin-top: 2px;
    opacity: 0.9;
}

.msa-toast-amazon {
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}

.msa-toast-btn-amazon {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: #ff9900;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
}

.msa-toast-btn-amazon:hover {
    background: #e68a00;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.msa-toast-footer {
    text-align: center;
    padding-top: 12px;
}

.msa-toast-skip {
    font-size: 0.8em;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    padding: 4px 8px;
}

.msa-toast-skip:hover {
    color: #666;
}

/* ============================================================
   VC/A8 アフィリエイトバナー
   ============================================================ */
.msa-af-label {
    font-size: 0.7em;
    color: #999;
    margin: 0 0 6px;
    text-align: center;
}

.msa-af-sidebar {
    padding: 10px;
    text-align: center;
    margin-bottom: 8px;
}

.msa-af-sidebar img {
    max-width: 100%;
    height: auto;
}

.msa-af-article-bottom {
    margin: 1.5em 0;
    padding: 1em;
    text-align: center;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
}

.msa-af-article-bottom img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   記事本文内インラインCTA
   ============================================================ */
.msa-inline-cta {
    margin: 1.5em 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
}

.msa-inline-cta-heading {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 10px;
    font-weight: bold;
}

.msa-inline-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #dc2626;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
}

.msa-inline-cta-btn:hover {
    background: #b91c1c;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* ============================================================
   関連アイコン（記事末尾・回遊促進）
   ============================================================ */
.msa-related-icons {
    margin: 2em 0;
    padding: 1.5em;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.msa-related-heading {
    font-size: 1em;
    font-weight: bold;
    color: #1e40af;
    margin: 0 0 1em;
}

.msa-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1em;
}

.msa-related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    text-decoration: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.msa-related-item:hover {
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
}

.msa-related-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 6px;
}

.msa-related-item span {
    font-size: 0.8em;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.msa-related-more {
    display: block;
    text-align: center;
    font-size: 0.95em;
    color: #1e40af !important;
    text-decoration: none !important;
    font-weight: bold;
    padding: 8px;
}

.msa-related-more:hover {
    text-decoration: underline !important;
}
