/* 買ったよ! 投稿 */

.bought-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    border: 2px solid #f59e0b;
    border-radius: 6px;
    background: #fff;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.bought-btn:hover {
    background: #fff7ed;
}

.bought-btn.is-done,
.bought-btn.is-active {
    background: #f59e0b;
    color: #fff;
    border-color: #d97706;
}

.bought-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bought-summary {
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.35;
}

.bought-summary__link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #b45309;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bought-summary__link:hover {
    color: #92400e;
}

.product-card.has-bought-panel {
    cursor: default;
}

.product-card.has-bought-panel:hover {
    transform: none;
}

.product-card-bought-panel {
    border-top: 1px solid #fde68a;
    background: #fffbeb;
    padding: 10px 12px 12px;
}

.product-card-bought-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.product-card-bought-panel__title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
}

.product-card-bought-panel__close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.bought-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.bought-star {
    width: 34px;
    height: 34px;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    background: #fff;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.bought-star.is-on {
    color: #f59e0b;
    background: #fff7ed;
    border-color: #f59e0b;
}

.bought-comment {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.bought-panel-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bought-submit {
    border: none;
    border-radius: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
}

.bought-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bought-panel-hint {
    font-size: 11px;
    color: #6b7280;
}

.bought-panel-error {
    margin-top: 6px;
    font-size: 12px;
    color: #b91c1c;
}

.bought-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bought-list__item {
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 10px;
}

.bought-list__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
    align-items: center;
}

.bought-list__meta-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.bought-list__stars {
    color: #f59e0b;
    font-weight: 700;
    letter-spacing: 1px;
}

.bought-list__mine-label {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.bought-list__item.is-mine {
    border-color: #f59e0b;
    background: #fffbeb;
}

.bought-list__delete {
    border: 1px solid #fca5a5;
    background: #fff;
    color: #b91c1c;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
}

.bought-list__delete:hover {
    background: #fef2f2;
}

.bought-list__delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bought-list__comment {
    font-size: 13px;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
}

.bought-list__empty {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    padding: 16px 8px;
}

@media (max-width: 768px) {
    .product-card-bought-panel {
        grid-column: 1 / -1;
        padding: 8px 10px 10px;
    }

    .bought-btn {
        height: 30px;
        font-size: 10px;
        padding: 0 6px;
    }

    .bought-star {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
