/* =============================================
   Servipricing Frontend — v1.2.0
   ============================================= */

.servipricing-frontend-wrapper {
    font-size: 16px;
    line-height: 1.6;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--sp-text);
}

.servipricing-main-title {
    text-align: center;
    color: var(--sp-primary);
    margin-bottom: 32px;
    font-weight: 700;
}

/* ── Grid: vertical stack always ── */
.servipricing-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Card ── */
.servipricing-card {
    background: var(--sp-bg);
    color: var(--sp-text);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.servipricing-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    transform: translateY(-1px);
}

.servipricing-card.featured-card {
    border-color: var(--sp-primary);
    border-width: 2px;
}

/* ── Badge ── */
.servipricing-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--sp-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    z-index: 1;
}

/* ── Header (left column): name + price ── */
.servipricing-card-header {
    padding: 28px 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid #f0f0f0;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.015) 0%, transparent 100%);
}

.servipricing-item-title {
    font-weight: 700;
    margin: 0;
    color: var(--sp-primary);
    font-size: 17px;
    line-height: 1.3;
}

.servipricing-price-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.servipricing-price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--sp-text);
    line-height: 1;
}

.servipricing-price-subtext {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

/* ── Body (center column): features list ── */
.servipricing-card-body {
    padding: 24px 28px;
    display: flex;
    align-items: center;
}

/* Plain bullet list — no custom icons, no accent decoration */
.servipricing-features-list {
    list-style: disc;
    padding: 0 0 0 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.servipricing-features-list li {
    color: var(--sp-text);
    font-size: 14px;
    line-height: 1.5;
    padding: 2px 0;
}

/* ── Footer (right column): CTA ── */
.servipricing-card-footer {
    padding: 24px 28px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 170px;
    border-left: 1px solid #f0f0f0;
}

.servipricing-cta-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background-color: var(--sp-cta-bg);
    color: var(--sp-cta-text) !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.servipricing-cta-button:hover {
    background-color: var(--sp-cta-hover-bg);
    color: var(--sp-cta-hover-text) !important;
    transform: translateY(-1px);
    text-decoration: none;
}

.sp-iva-notice {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .servipricing-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .servipricing-card-header {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 20px 20px 16px;
        background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, transparent 100%);
    }

    .servipricing-price-value { font-size: 30px; }

    .servipricing-card-body {
        padding: 16px 20px;
    }

    .servipricing-card-footer {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding: 16px 20px 20px;
        min-width: 0;
    }

    .servipricing-cta-button { font-size: 15px; padding: 13px 20px; }

    .servipricing-badge { top: 10px; right: 10px; }
}
