.bb-ui-plan-cards .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
}

@media (max-width: 968px) {
    .bb-ui-plan-cards .plans-grid {
        grid-template-columns: 1fr;
    }
}

.bb-ui-plan-cards .plan-features ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
    list-style: none;
    /* デフォルトのリストスタイルを消去 */
}

.bb-ui-plan-cards .plan-features ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--bb-accent-color, #ffd700);
    font-weight: 800;
    width: 18px;
    height: 18px;
    background: var(--bb-sub-color, #282800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

/* 利用不可スタイルの適用 */
.bb-ui-plan-cards .plan-features ul li:has(.disabled)::before {
    content: "×";
    background: #e0e0e0;
    color: #999;
}

.bb-ui-plan-cards .plan-features ul li .disabled {
    color: #aaa;
    text-decoration: line-through;
    font-style: italic;
}

.bb-ui-plan-cards .plan-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .bb-ui-plan-cards .plan-card {
        padding: 20px 15px;
    }

    .bb-ui-plan-cards .price-amount {
        font-size: 1.75rem;
    }
}

.bb-ui-plan-cards .plan-card:hover {
    border-color: var(--bb-accent-color, #ffd700);
}

.bb-ui-plan-cards .plan-card.current {
    border-color: #00a32a;
    background: #f8fff8;
}

.bb-ui-plan-cards .plan-header h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.bb-ui-plan-cards .price-amount {
    font-size: 2rem;
    font-weight: 700;
}

.bb-ui-plan-cards .plan-features {
    text-align: left;
    margin: 20px 0;
    flex-grow: 1;
}

.bb-ui-plan-cards .plan-features ul {
    list-style: none;
    padding: 0;
}

.bb-ui-plan-cards .plan-features li {
    padding: 5px 0;
    font-size: 0.9rem;
}

.bb-ui-plan-cards .search-pricing {
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.bb-ui-plan-cards .search-pricing p {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.bb-ui-plan-cards .search-pricing li {
    font-size: 0.8rem;
    color: #666;
}

.bb-ui-plan-cards .plan-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bb-accent-color, #ffd700);
    color: var(--bb-sub-color);
    padding: 3px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ボタンのスタイルを本番に合わせる */
.bb-ui-plan-cards .bb-ui-button.primary,
.bb-ui-plan-cards .bb-ui-button.secondary {
    border: 2px solid #1a1a00 !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

/* 有料プラン（おすすめ）ボタン */
.bb-ui-plan-cards .bb-ui-button.primary {
    background-color: #1a1a00 !important;
    color: #f7e030 !important;
    border: 2px solid #1a1a00 !important;
}

.bb-ui-plan-cards .bb-ui-button.primary:hover {
    background-color: #f7e030 !important;
    color: #1a1a00 !important;
    border: 2px solid #1a1a00 !important;
}

/* 無料プランボタン */
.bb-ui-plan-cards .bb-ui-button.secondary {
    background-color: transparent !important;
    color: #1a1a00 !important;
    border: 2px solid #1a1a00 !important;
}

.bb-ui-plan-cards .bb-ui-button.secondary:hover {
    background-color: #f7e030 !important;
    color: #1a1a00 !important;
    border: 2px solid #1a1a00 !important;
}

/* 処理中モーダルのスタイル */
.processing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.processing-modal .modal-content {
    background: white !important;
    padding: 2.5rem !important;
    border-radius: 12px !important;
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin: 0 auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: visible !important;
}

.processing-modal .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ffb900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}

.processing-modal h3 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.processing-modal p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* モーダル内のプラン詳細スタイル */
.plan-change-confirmation h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 8px;
}

.plan-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #ffd700;
    font-size: 0.9rem;
}

.plan-details p {
    margin-bottom: 10px;
}

.plan-note {
    color: #d63638 !important;
    font-weight: 600;
}