/* ── Instagram Followers Widget ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.igf-wrap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 32px rgba(0,0,0,.08);
    border: 1px solid #f0f0f0;
}

/* ── Header ── */
.igf-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.igf-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af);
    box-shadow: 0 4px 12px rgba(221,42,123,.35);
}
.igf-logo svg { display:block; }
.igf-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}
.igf-subtitle {
    margin: 4px 0 0;
    font-size: .875rem;
    color: #000;
}

/* ── Badges ── */
.igf-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.igf-badge {
    font-size: .75rem;
    font-weight: 600;
    background: #f5f5f5;
    color: #444;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Slider Section ── */
.igf-slider-section {
    margin-bottom: 20px;
}
.igf-slider-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}
.igf-followers-display {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg,#f58529,#dd2a7b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.igf-price-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
}

/* ── Range Input ── */
.igf-slider-container {
    position: relative;
    padding: 8px 0;
}
.igf-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.igf-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f58529, #dd2a7b);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(221,42,123,.5);
    border: 3px solid #fff;
    transition: transform .15s, box-shadow .15s;
}
.igf-range::-webkit-slider-thumb:hover,
.igf-range:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(221,42,123,.6);
}
.igf-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f58529, #dd2a7b);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(221,42,123,.5);
    border: 3px solid #fff;
}

/* ── Ticks ── */
.igf-slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.igf-tick {
    font-size: .7rem;
    font-weight: 600;
    color: #aaa;
    text-align: center;
    cursor: pointer;
    transition: color .2s;
    position: relative;
    line-height: 1.2;
}
.igf-tick.active { color: #dd2a7b; }
.igf-tick-popular .igf-popular-badge {
    display: block;
    font-size: .65rem;
    margin-bottom: 2px;
}
.igf-popular-badge { display: block; }

/* ── Price Card ── */
.igf-price-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.igf-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    color: #555;
    padding: 4px 0;
}
.igf-price-total {
    border-top: 1px solid #e8e8e8;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1rem;
    color: #111;
}

/* ── Input Field ── */
.igf-field-group { margin-bottom: 20px; }
.igf-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.igf-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    min-height: 52px;
}
.igf-input-wrapper:focus-within {
    border-color: #dd2a7b;
    box-shadow: 0 0 0 4px rgba(221,42,123,.1);
}
.igf-at {
    padding: 0 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #dd2a7b;
    border-right: 2px solid #e0e0e0;
    background: #fdf5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.igf-input {
    flex: 1;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: #111;
    background: transparent;
    min-height: 52px;
    box-sizing: border-box;
}
.igf-input::placeholder { color: #bbb; font-weight: 400; }
.igf-hint {
    margin: 8px 0 0;
    font-size: .78rem;
    color: #000;
    line-height: 1.5;
}

/* ── Add to Cart Button ── */
.igf-btn-cart {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    box-shadow: 0 4px 20px rgba(221,42,123,.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}
.igf-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(221,42,123,.5);
}
.igf-btn-cart:active { transform: translateY(0); }
.igf-btn-cart.loading { opacity: .7; pointer-events: none; }
.igf-btn-icon { font-size: 1.2rem; }

/* ── Messages ── */
.igf-msg {
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s, padding .3s;
}
.igf-msg.show {
    max-height: 60px;
    padding: 12px 16px;
    margin-bottom: 14px;
}
.igf-msg.success { background: #f0fdf4; color: #15803d; }
.igf-msg.error   { background: #fef2f2; color: #dc2626; }

/* ── Trust Badges ── */
.igf-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .75rem;
    color: #aaa;
    font-weight: 500;
}

/* ── Responsive — Tablet ── */
@media (max-width: 600px) {
    .igf-wrap {
        padding: 20px 16px;
        border-radius: 16px;
        /* Geen margin zodat het full-width gaat op mobiel */
        margin: 0;
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* ── Responsive — Mobiel ── */
@media (max-width: 480px) {
    /* Wrap */
    .igf-wrap {
        padding: 18px 16px;
    }

    /* Header */
    .igf-logo {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    .igf-logo svg {
        width: 40px;
        height: 40px;
    }
    .igf-title {
        font-size: 1.1rem;
    }
    .igf-subtitle {
        font-size: .8rem;
    }

    /* Badges — scroll horizontaal ipv wrappen */
    .igf-badges {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 6px;
        scrollbar-width: none;
    }
    .igf-badges::-webkit-scrollbar { display: none; }
    .igf-badge {
        font-size: .7rem;
        padding: 4px 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Slider info */
    .igf-followers-display { font-size: 1.25rem; }
    .igf-price-display     { font-size: 1.2rem; }

    /* Slider thumb groter voor touch */
    .igf-range::-webkit-slider-thumb {
        width: 34px;
        height: 34px;
    }
    .igf-range::-moz-range-thumb {
        width: 34px;
        height: 34px;
    }

    /* Ticks — kleinere tekst, genoeg ruimte */
    .igf-slider-ticks {
        margin-top: 12px;
    }
    .igf-tick {
        font-size: .6rem;
        padding: 0 1px;
    }

    /* Price card */
    .igf-price-card {
        padding: 12px 14px;
    }
    .igf-price-row {
        font-size: .85rem;
    }
    .igf-price-total {
        font-size: .95rem;
    }

    /* Input */
    .igf-input {
        padding: 0 12px;
        font-size: .95rem;
        min-height: 48px;
    }
    .igf-at {
        padding: 0 10px;
        font-size: 1rem;
    }
    .igf-input-wrapper {
        min-height: 48px;
    }
    .igf-hint {
        font-size: .75rem;
    }

    /* Button — makkelijk te tikken op mobiel */
    .igf-btn-cart {
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* Trust badges — wrap netjes */
    .igf-trust {
        gap: 8px;
        font-size: .7rem;
        justify-content: center;
    }
}
