/* 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;
    bottom: -300px;
    right: 24px;
    width: 380px;
    z-index: 99999;
    transition: bottom 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#msa-dl-toast.msa-toast-visible {
    bottom: 24px;
    opacity: 1;
}

#msa-dl-toast.msa-toast-hiding {
    bottom: -300px;
    opacity: 0;
}

.msa-toast-inner {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    overflow: hidden;
}

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

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

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

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

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

.msa-toast-body {
    padding: 14px 16px;
}

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

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

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

.msa-toast-pr {
    font-size: 0.75em;
    background: #eee;
    color: #888;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: normal;
}

.msa-toast-link {
    font-size: 0.9em;
    color: #1e40af !important;
    text-decoration: none !important;
    display: block;
    padding: 4px 0;
}

.msa-toast-link:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

.msa-toast-a8 {
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.msa-toast-link-cta {
    color: #dc2626 !important;
    font-weight: bold;
}

.msa-toast-link-cta:hover {
    color: #b91c1c !important;
}

.msa-toast-amazon {
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

/* ============================================================
   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;
}
