/* フロントエンド・エディタ共通 */
.yasu-pc-card {
    display: flex;
    gap: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    background: #fff;
    align-items: flex-start;
}

.yasu-pc-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.yasu-pc-body {
    flex: 1;
}

.yasu-pc-name {
    font-size: 0.95em;
    font-weight: bold;
    margin: 0 0 8px;
    line-height: 1.5;
}



.yasu-pc-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.yasu-pc-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: bold;
    color: #fff !important;
}

.yasu-pc-btn--amazon {
    background: #ff9900;
}
.yasu-pc-btn--amazon:hover {
    background: #e68a00;
}

.yasu-pc-btn--rakuten {
    background: #bf0000;
}
.yasu-pc-btn--rakuten:hover {
    background: #a00000;
}

/* エディタ内スタイル */
.yasu-pc-editor {
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 16px;
    background: #fafafa;
}

.yasu-pc-editor-title {
    font-weight: bold;
    margin: 0 0 12px;
    font-size: 0.9em;
    color: #555;
}

.yasu-pc-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.yasu-pc-search-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.yasu-pc-search-btn {
    padding: 6px 14px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.yasu-pc-search-btn:hover {
    background: #135e96;
}

.yasu-pc-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.yasu-pc-result-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
}

.yasu-pc-result-item:hover {
    background: #f0f4ff;
    border-color: #2271b1;
}

.yasu-pc-result-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.yasu-pc-result-info p {
    margin: 0;
    font-size: 0.85em;
    line-height: 1.4;
}

.yasu-pc-result-info p:last-child {
    color: #c0392b;
    font-weight: bold;
}

.yasu-pc-no-results {
    font-size: 0.85em;
    color: #888;
}

.yasu-pc-edit-area {}

.yasu-pc-preview {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.yasu-pc-preview-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.yasu-pc-preview-name {
    font-size: 0.85em;
    font-weight: bold;
    margin: 0 0 4px;
    line-height: 1.4;
}



.yasu-pc-preview-btns {
    display: flex;
    gap: 6px;
}

.yasu-pc-btn-preview {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #fff;
}

.yasu-pc-reset-btn {
    margin-top: 8px;
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.yasu-pc-reset-btn:hover {
    background: #e0e0e0;
}
