/* Besparingscalculator Styling */

.uvg-savings-calculator {

    margin: 20px 0;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

}



.uvg-savings-box {

    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/

    background: linear-gradient(135deg, rgb(0, 115, 230), rgb(0, 184, 148));

    border-radius: 16px;

    padding: 30px;

    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);

    color: white;

    text-align: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    position: relative;

    overflow: hidden;

}



.uvg-savings-box::before {

    content: '';

    position: absolute;

    top: -50%;

    left: -50%;

    width: 200%;

    height: 200%;

    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);

    animation: pulse 3s ease-in-out infinite;

}



@keyframes pulse {

    0%, 100% { transform: scale(1); opacity: 0.5; }

    50% { transform: scale(1.1); opacity: 0.8; }

}



.uvg-savings-box:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);

}



.uvg-savings-icon {

    font-size: 48px;

    margin-bottom: 15px;

    /* Belangrijk: De bounce animatie wordt hier behouden */

    animation: bounce 2s ease-in-out infinite; 

}



@keyframes bounce {

    0%, 100% { transform: translateY(0); }

    50% { transform: translateY(-10px); }

}



.uvg-savings-content {

    position: relative;

    z-index: 1;

}



.uvg-savings-title {

    margin: 0 0 15px 0;

    font-size: 18px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;

    opacity: 0.9;

}



.uvg-savings-amount {

    font-size: 48px;

    font-weight: 700;

    margin: 20px 0;

    text-shadow: 0 2px 10px rgba(0,0,0,0.2);

    line-height: 1;

}



.uvg-counter {

    display: inline-block;

    min-width: 100px;

}



.uvg-savings-subtitle {

    margin: 15px 0 0 0;

    font-size: 14px;

    opacity: 0.85;

    font-weight: 400;

}



/* Sidebar variant - compacter */

.widget .uvg-savings-box {

    padding: 20px;

}



.widget .uvg-savings-icon {

    font-size: 36px;

    margin-bottom: 10px;

}



.widget .uvg-savings-title {

    font-size: 16px;

    margin-bottom: 10px;

}



.widget .uvg-savings-amount {

    font-size: 36px;

    margin: 15px 0;

}



.widget .uvg-savings-subtitle {

    font-size: 12px;

}



/* Alternative groene variant */

.uvg-savings-calculator.green .uvg-savings-box {

    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);

    box-shadow: 0 10px 40px rgba(17, 153, 142, 0.3);

}



.uvg-savings-calculator.green .uvg-savings-box:hover {

    box-shadow: 0 15px 50px rgba(17, 153, 142, 0.4);

}



/* Alternative oranje variant */

.uvg-savings-calculator.orange .uvg-savings-box {

    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    box-shadow: 0 10px 40px rgba(240, 147, 251, 0.3);

}



.uvg-savings-calculator.orange .uvg-savings-box:hover {

    box-shadow: 0 15px 50px rgba(240, 147, 251, 0.4);

}



/* Responsive design */

@media (max-width: 768px) {

    .uvg-savings-box {

        padding: 20px;

    }

    

    .uvg-savings-icon {

        font-size: 36px;

    }

    

    .uvg-savings-amount {

        font-size: 36px;

    }

    

    .uvg-savings-title {

        font-size: 16px;

    }

}



/* Loading state */

.uvg-savings-calculator.loading .uvg-savings-amount {

    opacity: 0.5;

    animation: loading 1.5s ease-in-out infinite;

}



@keyframes loading {

    0%, 100% { opacity: 0.5; }

    50% { opacity: 1; }

}



/* ============================================== */

/* === STYLING VOOR DE AFBEELDING (MET ANIMATIE) === */

/* ============================================== */



/* 1. Styling voor de Afbeelding in de Grote Calculator Box */

/* We forceren de afmetingen van de afbeelding om de 48px van de parent icon container te matchen */

.uvg-savings-calculator .uvg-savings-icon > .uvg-savings-img-icon {

    width: 48px; 

    height: 48px; 

    vertical-align: middle; 

}



/* Pas de grootte voor de sidebar/widget aan */

.widget .uvg-savings-icon > .uvg-savings-img-icon {

    width: 36px; 

    height: 36px;

}



/* 2. Styling voor de Afbeelding in de Product Badge */

/*.uvg-product-badge .uvg-savings-badge-icon {

    width: 20px; 

    height: 20px;

    vertical-align: middle;

    margin-right: 5px;

}*/

.uvg-digital-piggy-bank-block {
    background: linear-gradient(135deg, #0073e6, #00b894);
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 20px auto;
}
.uvg-dpb-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.uvg-piggy-icon {
    width: 40px;
    height: 40px;
}
.uvg-dpb-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}
.uvg-dpb-subtext {
    font-size: 1.7rem;
    margin-top: 8px;
    color: #e3f2fd;
}
.uvg-dpb-clicks {
    margin-top: 10px;
    font-weight: 600;
    font-size: 1.6rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

img.uvg-euro-piggybank-badge-icon {
    width: 27px;
    animation: bounce 2s infinite;
}

.uvg-top-savings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 20px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all ease 0.5s;
}

span.uvg-rank {
    position: absolute;
    width: 35px;
    height: 35px;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: red;
    top: 50%;
    left: 0;
    transform: translate(-50%,-50%);
    font-weight: 700;
}

.uvg-featured-image {
    flex: 0 0 100px;
}

.uvg-product-content {
    flex: 0 0 calc( 100% - 100px );
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
}

.uvg-product-content a {
    display: inline-block;
    padding-left: 15px;
    font-family: "Nunito Sans";
    color: #333333 !important;
}

span.uvg-amount {
    font-size: 18px;
    font-weight: 600;
    align-content: center;
}

.uvg-top-savings-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    column-gap: 30px;
    margin-top: 10px;
    row-gap: 20px;
    margin-bottom: 30px;
}

.uvg-featured-image img {
    max-height: 100px;
    max-width: 100px;
}
.uvg-top-savings-item:hover {
        transform: scaleX(1.005) scaleY(1.005);
        box-shadow: 0 0 5px #9e9e9e26;
    }
@media ( max-width: 767px ){
    .uvg-top-savings-list {
        grid-template-columns: repeat(1,1fr);
        row-gap: 10px;
    }
    .uvg-featured-image img.uvg-savings-featured-icon {
        width: 100%;
    }
    .uvg-featured-image{
        flex: 0 0 70px;
    }
    .uvg-product-content a {
        padding-left: 0;
    }
    .uvg-product-content {
        flex: 0 0 calc( 100% - 70px );
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 15px;
    }
}