/**
 * Stripe Membership スタイル
 */

/* アップグレードコンテナ */
.sm-upgrade-container {
    max-width: 320px;
    margin: 0 auto;
}

/* プランカード */
.sm-plan-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sm-plan-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.sm-plan-price {
    margin-bottom: 24px;
}

.sm-price {
    font-size: 36px;
    font-weight: 700;
    color: #111;
}

.sm-period {
    font-size: 14px;
    color: #666;
}

.sm-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.sm-plan-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.sm-plan-features li:last-child {
    border-bottom: none;
}

.sm-plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

/* アップグレードボタン */
.sm-upgrade-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.sm-upgrade-btn:hover {
    background: #333;
}

.sm-upgrade-btn:active {
    transform: scale(0.98);
}

.sm-upgrade-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* 管理ボタン */
.sm-manage-container {
    margin: 16px 0;
}

.sm-manage-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sm-manage-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* メッセージ */
.sm-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.sm-message.sm-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sm-message.sm-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ローディング */
.sm-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sm-spinner {
    animation: sm-spin 1s linear infinite;
}

@keyframes sm-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* レスポンシブ */
@media (max-width: 480px) {
    .sm-plan-card {
        padding: 24px 20px;
    }

    .sm-price {
        font-size: 32px;
    }
}
