/* --- Coworking Pricing Table Styles --- */

.fablab-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
}

.fablab-slider-arrow {
    position: absolute;
    top: calc(50% - 24px);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%), linear-gradient(0deg, #1B1B1B, #1B1B1B);
    background-size: 200% 200%, 100% 100%;
    background-position: 0% 50%, 0% 0%;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    z-index: 30;
    /* Crescut peste valoarea de 20 a PRO Card-ului */
    color: #ffffff;
    transition: background-position 0.6s ease-in-out, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.fablab-slider-arrow:hover {
    background-position: 100% 50%, 0% 0%;
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.fablab-slider-arrow svg {
    width: 26px;
    /* Ajustare usoara pentru a compensa ingrosarea */
    height: 26px;
    stroke: currentColor;
    stroke-width: 1;
    /* Face forma originala a sagetii putin mai groasa si vizibila */
    fill: currentColor;
}

.fablab-slider-prev {
    left: -20px;
}

.fablab-slider-next {
    right: -20px;
}

/* Plasam sageata fix inaintea pachetului PRO pe monitoare mari */
@media (min-width: 1024px) {
    .fablab-slider-next {
        /* PRO width (340px) + jumatate de noul gap (10px) - jumatate de buton (24px) */
        right: 326px;
    }
}

/* Ascundem sagetile automat pe device-urile mobile unde exista Native Swipe */
@media (hover: none) and (pointer: coarse) {
    .fablab-slider-arrow {
        display: none !important;
    }
}

.fablab-pricing-grid {
    display: flex;
    flex-wrap: nowrap;
    /* Tine cardurile la rand pe un singur rând */
    gap: 20px;
    justify-content: flex-start;
    /* Incepe din stanga pentru scrolat */
    margin: 0;
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    overflow-x: auto;
    /* Activeaza scroll-ul orizontal */
    padding-bottom: 24px;
    /* Ofera spatiu umbrelor si scrollbar-ului */
    scroll-snap-type: x mandatory;
    /* Pe telefon fixeaza fiecare card individual automat */
    -webkit-overflow-scrolling: touch;
    /* Ofera momentum la swiping pe telefon iOS */
    scroll-behavior: smooth;
}

/* Customizare curata a barei de scroll orizontala (Desktop/Android) */
.fablab-pricing-grid::-webkit-scrollbar {
    height: 8px;
}

.fablab-pricing-grid::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.fablab-pricing-grid::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.fablab-pricing-grid::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.fablab-pricing-card {
    background:
        linear-gradient(var(--e-global-color-9a6815b), var(--e-global-color-9a6815b)) padding-box,
        linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%) border-box;
    border: 1px solid #19A89F;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    min-width: 300px;
    /* Cardul trebuie sa aiba latime proprie ca sa nu se striveasca cand apar 7 plans */
    max-width: 340px;
    flex: 0 0 auto;
    /* Interzicem ingustarea fortata */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    scroll-snap-align: center;
    /* Forteaza cardul sa pice fix pe centrul ecranului la un scroll pe mobil */
}

.fablab-pricing-card:hover {
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Setam borderul sa devina transparent la hover pentru a dezvalui gradientul mascat din spate */
    border-color: transparent;
}

.fablab-pricing-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 24px;
}

.fablab-pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    margin-top: 0;
}

.fablab-pricing-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.fablab-pricing-price .woocommerce-Price-amount {
    color: inherit;
}

.fablab-pricing-price del {
    font-size: 1rem;
    color: #6b7280;
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
}

.fablab-pricing-features {
    flex-grow: 1;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.fablab-pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fablab-pricing-features ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.fablab-pricing-features ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.fablab-pricing-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.fablab-add-cart-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.fablab-location-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.fablab-location-select-wrap label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
}

.fablab-location-select-wrap select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
    font-size: 0.9rem;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.fablab-location-select-wrap select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fablab-pricing-btn {
    width: 100%;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif !important;
}

a.fablab-pricing-btn {
    background: linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%), linear-gradient(0deg, #1B1B1B, #1B1B1B);
    background-size: 200% 200%, 100% 100%;
    background-position: 0% 50%, 0% 0%;
    transition: background-position 0.6s ease-in-out, transform 0.1s ease !important;
}

a.fablab-pricing-btn:hover {
    background-position: 100% 50%, 0% 0%;
}

.fablab-pricing-btn:hover {
    background-color: #C43E82;
    color: #fff;
}

.fablab-pricing-btn:active {
    transform: scale(0.98);
}

/* --- Modificari Card PRO Extins (Sticking pe Desktop) --- */
.fablab-pro-card {
    background:
        linear-gradient(var(--e-global-color-f5fb7ba), var(--e-global-color-f5fb7ba)) padding-box,
        linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%) border-box !important;
    border-color: transparent !important;
}

/* Culorile de text mai deschise actioneaza acum global pe intreaga clasa .fablab-pricing-card */
@media (min-width: 1024px) {
    .fablab-pro-card {
        position: sticky;
        right: 0;
        z-index: 20;
        /* Adaugam o umbra in partea stanga a cardului ca sa se vada diferenta de adancime fata de cardurile care scrolleaza sub el */
        box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.2);
    }
}

/* --- Modificari Mobile Link Go Pro --- */
.fablab-mobile-gopro {
    display: none;
    /* Ascunde by default pe ecran mare */
    margin-top: 24px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fablab-mobile-or {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
}

.fablab-gopro-link {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fablab-gopro-link:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Pe ecrane mobile / tablete, aratam link-ul */
@media (max-width: 1023px) {
    .fablab-mobile-gopro {
        display: flex;
    }
}