/* FB Copy Button - Styles */
.fb-copy-button-wrapper {
    margin: 1.5em 0;
    padding: 0;
    text-align: right;
}

/* 非表示テキストエリア（コピー元） */
.fb-copy-source {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* メインボタン（控えめなテキストリンク風） */
.fb-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f7f7f7;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.fb-copy-btn:hover {
    background: #eee;
    color: #555;
    border-color: #aaa;
}

.fb-copy-btn:active {
    background: #e0e0e0;
}

/* コピー成功時 */
.fb-copy-btn--copied {
    background: #e8f5e9 !important;
    border-color: #a5d6a7 !important;
    color: #2e7d32 !important;
}

/* アイコン */
.fb-copy-btn__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fb-copy-btn__icon svg {
    width: 14px;
    height: 14px;
}

/* プレビュー */
.fb-copy-preview {
    margin-top: 6px;
    max-width: 560px;
    display: inline-block;
    width: 100%;
    text-align: left;
}

.fb-copy-preview__toggle {
    font-size: 11px;
    color: #999;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
    text-align: right;
    transition: color 0.2s;
}

.fb-copy-preview__toggle:hover {
    color: #666;
}

.fb-copy-preview__text {
    margin-top: 6px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
    color: #666;
}
