.sp-pos-pricing-wrap {
    --primary-teal: #15997E;
    --bg-white: #ffffff;
    --card-text: #0f172a;
    --muted-text: #64748b;
    --trust-green: #062E26;
    --trust-gradient: linear-gradient(247.15deg, #062E26 14.82%, #0B4D3F 85.18%);
    --border-color: #e2e8f0;

    /* Break out of Elementor Boxed limits, matching Hero Banner & Business Growth */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
}

.sp-pricing-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 767px) {
    .sp-pricing-container {
        padding: 0 20px !important;
    }
}

/* --- TRUST SECTION --- */
.sp-pos-pricing-wrap .trust-section {
    background: var(--trust-gradient);
    padding: 4rem 0 8rem 0;
    text-align: center;
    position: relative;
    color: #ffffff;
}

.sp-pos-pricing-wrap .trust-title {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 24px; /* Fixed: 24px per request */
}

.sp-pos-pricing-wrap .trust-description {
    max-width: 600px;
    margin: 0 auto 32px; /* Fixed: 32px per request */
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.sp-pos-pricing-wrap .stats-grid-wrapper {
    max-width: 700px; /* Tighter width for 2-column layout */
    margin: 0 auto; /* Removed top margin, gap handled by description margin-bottom */
}

.sp-pos-pricing-wrap .stat-item {
    margin-bottom: 32px; /* Fixed: 32px per request */
}

.sp-pos-pricing-wrap .stat-item h3 {
    font-size: 2.75rem; /* Reduced from 3.5rem */
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.sp-pos-pricing-wrap .stat-item p {
    color: #94a3b8;
    font-size: 0.8rem; /* Slightly smaller label */
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 400;
    margin: 0;
}

/* Decorative Illustrations */
.sp-pos-pricing-wrap .illust-left, .sp-pos-pricing-wrap .illust-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 240px; /* Restored/Set to exactly 240px */
    opacity: 1;
    pointer-events: none;
    box-shadow: none !important;
}
.sp-pos-pricing-wrap .illust-left img, 
.sp-pos-pricing-wrap .illust-right img {
    box-shadow: none !important;
    filter: none !important;
}
.sp-pos-pricing-wrap .illust-left { left: 10%; }
.sp-pos-pricing-wrap .illust-right { right: 10%; }

/* --- PRICING SECTION --- */
.sp-pos-pricing-wrap .pricing-section {
    margin-top: -8rem;
    padding-bottom: 24px; /* Standardized to 24px */
    position: relative;
    z-index: 10;
}

.sp-pos-pricing-wrap .subscription-main-card {
    background: #f8fafc; /* Subtle background as per mockup */
    border-radius: 16px;
    box-shadow: none !important;
    padding: 24px 24px 0 24px;
    color: var(--card-text);
    display: flex;
    gap: 32px;
    max-width: 1272px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .sp-pos-pricing-wrap .subscription-main-card {
        flex-direction: column;
        padding: 30px 20px;
        gap: 24px;
    }
}

.pricing-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-right-col {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Toggle Switch — exact match to Image 40 */
.sp-pos-pricing-wrap .billing-toggle {
    background: #ffffff;
    border: 2px solid #0c1421; /* Thick dark border */
    padding: 8px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 2.5rem;
    width: 249px;
    height: 52px;
}

.sp-pos-pricing-wrap .toggle-item {
    padding: 0 16px;
    border-radius: 12px; /* Adjust inner radius */
    font-size: 14px; /* Reduced to fit */
    font-weight: 600;
    color: #0c1421;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    white-space: nowrap;
}

.sp-pos-pricing-wrap .toggle-item.active {
    background: #171c26; /* Deep dark background */
    color: #ffffff;
}

.sp-pos-pricing-wrap .save-tag {
    background: #dcfce7;
    color: #15997E;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 0;
}

.sp-pos-pricing-wrap .pricing-left-title {
    color: #15997E;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.sp-pos-pricing-wrap .pricing-left-desc {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 100%;
}

/* FAQ Section */
.sp-pos-pricing-wrap .faq-box {
    margin-top: 3rem;
}

.sp-pos-pricing-wrap .faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 0;
    overflow: hidden;
}

.sp-pos-pricing-wrap .faq-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    transition: color 0.3s;
}

.sp-pos-pricing-wrap .faq-trigger:hover {
    color: var(--primary-teal);
}

.sp-pos-pricing-wrap .faq-content {
    height: 0;
    opacity: 0;
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-top: 0;
    pointer-events: none;
}

.sp-pos-pricing-wrap .faq-item.active .faq-content {
    height: auto;
    opacity: 1;
    margin-top: 1rem;
    pointer-events: all;
}

.sp-pos-pricing-wrap .faq-icon {
    transition: transform 0.3s ease;
}
.sp-pos-pricing-wrap .faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Pricing Plan Cards */
.sp-pos-pricing-wrap .plan-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Side-by-side: Price/Info on left, Features on right */
    gap: 16px;
}

.sp-pos-pricing-wrap .plan-card.recommended {
    border: 2px solid #2ED8B6;
    padding-top: 56px;
}

.sp-pos-pricing-wrap .rec-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #2ED8B6;
    color: #0f172a;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 14px 14px 0 0;
    z-index: 5;
}

.plan-info-side {
    flex: 1;
}

.plan-features-side {
    flex: 1.2;
    border-left: 1px solid #f1f5f9;
    padding-left: 30px;
}

@media (max-width: 991px) {
    .plan-features-side {
        border-left: none;
        padding-left: 0;
    }
}

.sp-pos-pricing-wrap .plan-name { 
    font-weight: 600; /* SemiBold */
    font-size: 16px; /* Base */
    display: flex; 
    align-items: center; 
    flex-wrap: nowrap;
    color: #0f172a;
    margin-bottom: 2px;
    letter-spacing: normal;
    line-height: 1.25; /* Heading 5 equivalent approx */
}
.sp-pos-pricing-wrap .plus-badge { 
    background: #dcfce7; 
    color: #166534; 
    font-size: 12px; 
    padding: 2px 8px; 
    border-radius: 1rem; 
    margin-left: 0.5rem; 
    white-space: nowrap;
}

.sp-pos-pricing-wrap .plan-price { 
    font-size: 28px; /* Heading 3 (as specified) */
    font-weight: 700; /* Bold */
    margin: 2px 0; 
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap; /* Prevent wrapping */
    color: #0f172a;
    line-height: 1.1; /* Heading 2 line height aprox */
    letter-spacing: normal;
}

.sp-pos-pricing-wrap .currency-symbol {
    font-size: 16px; /* Superscript style but based on 28px base */
    font-weight: 700;
    margin-right: 2px;
    align-self: flex-start;
    margin-top: 2px;
}

.sp-pos-pricing-wrap .period { 
    font-size: 14px; /* Medium (Regular) */
    font-weight: 400; /* Regular */
    color: #64748b; 
    margin-left: 4px;
    line-height: 1.5; /* Base line height */
}

.sp-pos-pricing-wrap .btn-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 160px;
    padding: 12px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #111827;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    line-height: 1;
    text-decoration: none !important;
}
.sp-pos-pricing-wrap .btn-plan:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}
.sp-pos-pricing-wrap .btn-plan.dark { background: #0f172a; color: #ffffff; border: none; }
.sp-pos-pricing-wrap .btn-plan.teal { 
    background: linear-gradient(24.92deg, #15997E 6.27%, #2ED8B6 94.96%);
    color: #ffffff; 
    border: none; 
    box-shadow: 0 4px 10px rgba(21, 153, 126, 0.2);
}

.sp-pos-pricing-wrap .plan-features { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-height: auto;
}
.sp-pos-pricing-wrap .plan-features li { 
    display: flex; 
    align-items: center; 
    gap: 0.6rem; 
    font-size: 14px; /* Medium (as specified) */
    font-weight: 600; /* SemiBold */
    color: #475569; 
    letter-spacing: normal;
    line-height: 1.5; /* Base line height */
}
.sp-pos-pricing-wrap .plan-features i { 
    color: #ffffff; 
    background: #15997E;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.sp-pos-pricing-wrap .plan-card:first-child .plan-features i { 
    background: var(--Neutral-Dark-5, #9AA0A8) !important;
}

@media (max-width: 991px) {
    .sp-pos-pricing-wrap .subscription-main-card { padding: 32px 16px; margin-top: -120px !important; }
    .sp-pos-pricing-wrap .pricing-section { margin-top: 0; }
    .sp-pos-pricing-wrap .illust-left, .sp-pos-pricing-wrap .illust-right { display: none; }
    
    .sp-pos-pricing-wrap .trust-section {
        padding: 24px 0 24px 0 !important; /* Standardized both to 24px */
    }

    .sp-pos-pricing-wrap .trust-title {
        font-size: 22px !important;
        margin-bottom: 24px !important; /* Standardized to 24px */
        padding: 0 1rem;
    }

    .sp-pos-pricing-wrap .trust-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 32px !important; /* Standardized to 32px */
        padding: 0 10px;
    }

    .sp-pos-pricing-wrap .stat-item h3 {
        font-size: 28px !important;
        margin-bottom: 4px !important;
    }

    .sp-pos-pricing-wrap .stat-item p {
        font-size: 12px !important;
    }

    .sp-pos-pricing-wrap .stats-grid-wrapper {
        margin-top: 2rem !important;
    }

    .sp-pos-pricing-wrap .stat-item {
        margin-bottom: 32px !important; /* Standardized to 32px */
    }

    .sp-pos-pricing-wrap .col-lg-6.pe-lg-5 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .sp-pos-pricing-wrap .pricing-left-title {
        font-size: 24px !important;
        text-align: center;
        width: 100%;
        margin-bottom: 10px !important;
    }

    .sp-pos-pricing-wrap .pricing-left-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 25px !important;
        font-size: 14px !important;
    }

    .sp-pos-pricing-wrap .billing-toggle {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
        padding: 4px !important;
    }

    .sp-pos-pricing-wrap .toggle-item {
        padding: 6px 16px !important;
        font-size: 13px !important;
    }
    
    .sp-pos-pricing-wrap .plan-card {
        padding: 24px !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important; /* Stack segments vertically on mobile */
        align-items: stretch !important;
        gap: 20px !important;
    }

    .sp-pos-pricing-wrap .plan-card.recommended {
        padding-top: 55px !important;
    }

    .sp-pos-pricing-wrap .plan-title-block {
        width: 60% !important;
        text-align: left !important;
    }

    .sp-pos-pricing-wrap .plan-btn-wrapper {
        width: 40% !important;
        text-align: right !important;
    }

    .sp-pos-pricing-wrap .plan-name {
        font-size: 13px !important;
        white-space: nowrap !important;
        margin-bottom: 2px !important;
        display: flex !important;
        align-items: center !important;
    }

    .sp-pos-pricing-wrap .plus-badge {
        font-size: 10px !important;
        padding: 1px 6px !important;
        margin-left: 4px !important;
        background: rgba(46, 216, 182, 0.15) !important;
        color: #15997E !important;
    }

    .sp-pos-pricing-wrap .plan-price {
        font-size: 20px !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        color: #0f172a !important;
    }

    .sp-pos-pricing-wrap .currency-symbol {
        font-size: 13px !important;
    }

    .sp-pos-pricing-wrap .period {
        font-size: 11px !important;
        margin-left: 2px !important;
        color: #64748b !important;
    }

    .sp-pos-pricing-wrap .btn-plan {
        padding: 8px 14px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        width: auto !important;
        min-width: 100px !important;
    }

    .sp-pos-pricing-wrap .faq-box {
        margin-top: 24px !important; /* Standardized to 24px */
        padding: 0 20px !important;
    }

    .plan-info-side {
        flex: none !important;
        display: grid !important;
        grid-template-areas: 
            "name btn"
            "price btn";
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 4px 15px !important;
        border-right: none !important;
        padding-right: 0 !important;
    }

    .sp-pos-pricing-wrap .plan-name {
        grid-area: name;
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
    }

    .sp-pos-pricing-wrap .plan-price {
        grid-area: price;
        font-size: 32px !important;
        margin: 0 !important;
    }

    .sp-pos-pricing-wrap .btn-plan {
        grid-area: btn;
        align-self: flex-start;
        margin-top: 0 !important;
    }

    .plan-features-side {
        flex: none !important;
        padding-left: 0 !important;
        border-left: none !important;
        margin-top: 10px;
    }

    .sp-pos-pricing-wrap .plan-features li {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        white-space: normal !important;
        font-weight: 600 !important;
    }

    .sp-pos-pricing-wrap .faq-trigger {
        font-size: 14.5px !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
        color: #0c1421 !important;
        padding: 4px 30px 4px 0 !important;
    }

    .sp-pos-pricing-wrap .faq-content {
        font-size: 13.5px !important;
        color: #64748b !important;
        line-height: 1.55 !important;
        padding-top: 5px !important;
    }

    .sp-pos-pricing-wrap .faq-box .fw-bold {
        font-size: 18px !important;
        color: #0c1421 !important;
        margin-bottom: 5px !important;
    }

    .sp-pos-pricing-wrap .faq-item {
        padding: 1rem 0 !important;
    }

    .sp-pos-pricing-wrap .faq-icon {
        color: #0c1421 !important;
        font-size: 13px !important;
    }

    .sp-pos-pricing-wrap .faq-box .fas.fa-question-circle {
        color: #0c1421 !important;
    }
}



/* --- TABLET RESPONSIVE (768px to 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .sp-pos-pricing-wrap .subscription-main-card {
        padding: 40px;
        gap: 24px;
        flex-direction: column; /* Stack main pillars but keep internal card layout wide */
    }

    .pricing-left-col {
        text-align: center;
        align-items: center;
    }

    .sp-pos-pricing-wrap .billing-toggle {
        margin: 0 auto 2rem;
    }

    /* Keep the Plan Cards side-by-side internally to use horizontal space */
    .sp-pos-pricing-wrap .plan-card {
        display: flex !important; 
        flex-direction: row;
        text-align: left;
        padding: 24px !important;
    }

    .plan-info-side {
        flex: 1;
        border-right: 1px solid #f1f5f9;
        padding-right: 20px;
    }

    .plan-features-side {
        flex: 1.5;
        border-left: none;
        padding-left: 20px;
    }

    /* Stats Grid Adjustment for Tablet */
    .sp-pos-pricing-wrap .stats-grid-wrapper {
        max-width: 90%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sp-pos-pricing-wrap .stat-item {
        margin-bottom: 2rem;
    }

    .sp-pos-pricing-wrap .stat-item h3 {
        font-size: 2.25rem !important;
    }

    /* Adjust Illustrations - Hide them based on Image 2 request */
    .sp-pos-pricing-wrap .illust-left, 
    .sp-pos-pricing-wrap .illust-right {
        display: none !important; 
    }

    /* Professional Stats Alignment for Tablet */
    .sp-pos-pricing-wrap .trust-section {
        padding: 60px 20px 180px 20px !important;
    }

    .sp-pos-pricing-wrap .stats-grid-wrapper {
        max-width: 800px;
        margin: 0 auto !important;
        display: block !important;
        text-align: center;
    }

    .sp-pos-pricing-wrap .stats-grid-wrapper .row {
        justify-content: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .sp-pos-pricing-wrap .stat-item {
        margin-bottom: 2rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
