/* source: Content/v4/css/pages/estabelecimento/fidelidade.css */
/* Inicio de Scripts para progress bar do Programa de fidelidade */

.justify-center {
    justify-content:center;
}

.btn-fidelidade-custom {
    display: flex;
    padding: 0 !important;
    width: fit-content;
    background-color: transparent;
}

    .btn-fidelidade-custom > p {
        background-color: var(--primary-color, #f79420);
        color: #FFF !important;
        font-weight: bold;
        border-radius: 0px 5px 5px 0px;
        width: 142px;
        font-size: 11px;
        line-height: 30px;
        margin: 0;
    }

.span-fidelidade {
    border-radius: 5px 0px 0px 5px;
    background: white;
    height: 30px;
    width: 52px;
    border: 1px solid black;
    border-right: 0;
    position: relative;
    overflow:hidden;
}

    .span-fidelidade .lottie-fidelidade {
        width: 62px;
        height: 50px;
        position: absolute;
        bottom: -5px;
        right: -7px;
    }

progress {
    display: inline-block;
    width: 85%;
    height: 12px;
    padding: 0 0 0 0;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 15px;
    text-align: left;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8em;
}

progress::-webkit-progress-bar {
    height: 11px;
    width: 90%;
    margin: 0 auto;
    background-color: #CCC;
    border-radius: 15px;
    box-shadow: 0px 0px 6px rgb(202, 202, 202) inset;
}

    progress::-webkit-progress-value {
        display: inline-block;
        float: left;
        height: 11px;
        margin: 0px -10px 0 0;
        background: var(--primary-color, #f79420);
        border-radius: 15px;
    }

.content-padaria-fidelidade .progress-countdown-wrapper .round-progress {
    width: 78px !important;
    height: 78px !important;
}

.content-padaria-fidelidade .progress-countdown {
    font-size: 2.3em;
    color: var(--primary-color, #f79420);
}

.content-padaria-fidelidade .card-premio {
    padding: 10px;
}

.content-padaria-fidelidade .item.item-body {
    padding-left: 0;
}

.button-programa-fidelidade-validar {
    background-color: #3ebf3a !important;
    border-color: #3ebf3a !important;
    border-radius: 8px;
    color: white;
    font-size: 1em;
    width: 50%;
    max-width: 300px;
    min-height: 44px;
    display: block;
    margin: 12px auto 0;
    transition: box-shadow .2s ease, transform .2s ease;
}

.button-programa-fidelidade-validar:hover, .button-programa-fidelidade-validar:focus {
    box-shadow: 0 5px 14px rgba(62, 191, 58, .3);
    color: #fff;
    transform: translateY(-1px);
}

.card-border {
    border-radius: 16px;
    background-color: white;
    margin: 10px;
}

.card-pontos {
    border: 1px solid #ccc !important;
    border-radius: 16px;
    background-color: white;
    width: 70%;
    max-width: 740px;
    margin: 10px auto;
    padding: 20px;
}

.card-pontos-ajustado {
    padding-top: 30px !important;
    margin: 0 !important;
    width: 100% !important;
}

.progress-padding {
    padding: 18px 0 0;
}

    .progress-padding progress {
        display: block;
        height: 10px;
        margin-top: 8px;
        width: 100%;
    }

    .progress-padding progress::-webkit-progress-bar {
        background-color: #e9ecef;
        box-shadow: none;
        width: 100%;
    }

    .progress-padding progress::-moz-progress-bar {
        background: var(--primary-color, #f79420);
        border-radius: 15px;
    }

.fidelidade-progresso-info {
    align-items: center;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    line-height: 1.3;
}

    .fidelidade-progresso-info span {
        color: #666;
    }

    .fidelidade-progresso-info strong {
        color: #222;
        white-space: nowrap;
    }

.icone-trofeu {
    height: 50px !important;
    color: var(--primary-color, #f79420) !important;
}

.titulo-sem-pontos {
    width: 100%; 
    margin-top: 30px;
}

.btn-ir-cardapio {
    background-color: var(--primary-color, #f79420) !important;
    color: #FFFFFF !important;
}

.padding-bottom-10 {
    padding-bottom: 10px;
}

.padding-bottom-20 {
    padding-top: 20px;
}

#programa-fidelidade .user-card-container .h3 {
    color: var(--primary-color);
}

#programa-fidelidade #PontosFidelidade {
    margin-bottom: 24px;
    padding: 18px 20px 20px;
}

#programa-fidelidade .fidelidade-ofertas {
    float: none;
    margin: 0 auto;
    max-width: 1080px;
    padding-left: 10px;
    padding-right: 10px;
}

#divOfertasParaResgate {
    line-height: 1.3;
    margin-bottom: 14px;
}

.fidelidade-premios-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fidelidade-premios-grid-duplo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 700px;
}

.fidelidade-oferta-card {
    border: 1px solid #e4e4e4;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 220px;
    min-width: 0;
    padding: 22px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.fidelidade-oferta-card:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

.fidelidade-oferta-card:only-of-type {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 700px;
    width: 100%;
}

.fidelidade-oferta-header {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.fidelidade-oferta-icone {
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: var(--primary-color, #f79420);
    display: flex;
    flex: 0 0 44px;
    font-size: 18px;
    height: 44px;
    justify-content: center;
}

.fidelidade-oferta-titulo {
    min-width: 0;
    text-align: left;
}

    .fidelidade-oferta-titulo span {
        color: #777;
        display: block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .08em;
        margin-bottom: 2px;
        text-transform: uppercase;
    }

    .fidelidade-oferta-titulo strong {
        color: #222;
        display: block;
        font-size: 15px;
        line-height: 1.35;
        overflow-wrap: break-word;
    }

.fidelidade-oferta-status {
    align-items: center;
    border-radius: 8px;
    display: flex;
    font-size: 12px;
    gap: 7px;
    justify-content: center;
    line-height: 1.3;
    margin-top: auto;
    padding: 9px 10px;
}

.fidelidade-oferta-disponivel {
    background-color: #f0faef;
    color: #267b23;
}

.fidelidade-oferta-indisponivel {
    background-color: #f4f4f4;
    color: #666;
}

.messageSucess {
    margin-top: 8px;
}

#modalFidelidade .fidelidade-premios-grid {
    grid-template-columns: minmax(0, 1fr);
}

.fidelidade-descricao {
    display: block;
    line-height: 1.5;
}

.fidelidade-pontos-pendentes {
    align-items: center;
    background-color: #fff5f5;
    border: 1px solid #f2dede;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    grid-column: 1 / -1;
    justify-content: center;
    line-height: 1.4;
    margin: 0;
    padding: 11px 14px;
}

.fidelidade-oferta-card:only-of-type + .fidelidade-pontos-pendentes {
    justify-self: center;
    max-width: 700px;
    width: 100%;
}

/*Animação do gráfico de pontos*/
.circular {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    height: 150px !important;
    width: 150px !important;
    position: relative;
}

.circular .inner, .circular .outer, .circular .circle {
    position: absolute;
    z-index: 6;
    height: 100%;
    width: 100%;
    border-radius: 100%;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.2);
}

.circular .inner {
    top: 50%;
    left: 50%;
    height: 130px;
    width: 130px;
    margin: -65px 0 0 -65px;
    background-color: #F1F1F1;
    border-radius: 100%;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

.circular .circle {
    z-index: 1;
    box-shadow: none;
}

    .circular .numb {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        font-size: 52px;
        font-weight: 500;
        line-height: 1;
        width: 120px;
        text-align: center;
        white-space: nowrap;
        color: var(--primary-color, #EF9121) !important;
    }

.circular .bar {
    position: absolute;
    height: 100%;
    width: 100%;
    background: #fff;
    -webkit-border-radius: 100%;
    clip: rect(0px, 150px, 150px, 75px);
}

.circle .bar .progress-circle {
    position: absolute;
    height: 100%;
    width: 100%;
    -webkit-border-radius: 100%;
    clip: rect(0px, 75px, 150px, 0px);
    
}

.circle .bar .progress-circle, .dot span {
    background: var(--primary-color, #EF9121) !important;  
}

.circle .left .progress-circle {
    z-index: 1;
    animation: left 0.4s linear both;
    
}

@keyframes left {
    100% {
        transform: rotate(180deg);
    }
}

.circle .right {
    z-index: 3;
    transform: rotate(180deg);
}

.circle .right .progress-circle {
    animation: right 0.4s linear both;
    animation-delay: 0.4s;
}

@keyframes right {
    100% {
        transform: rotate(180deg);
    }
}

.circle .dot {
    z-index: 2;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50%;
    height: 10px;
    margin-top: -5px;
    animation: dot 8s linear both;
    transform-origin: 0% 50%;
}

.circle .dot span {
    position: absolute;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 100%;
}

@keyframes dot {
    0% {
        transform: rotate(-90deg);
    }

    50% {
        transform: rotate(90deg);
        z-index: 4;
    }

    100% {
        transform: rotate(270deg);
        z-index: 4;
    }
}

.div-meus-pontos-confirmacao {
    margin: 25px auto;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .fidelidade-premios-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #modalFidelidade .fidelidade-premios-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    #programa-fidelidade #PontosFidelidade {
        margin: 8px 0 20px;
        padding: 16px 10px;
    }

    .card-pontos {
        width: 100%;
        padding: 18px 12px;
    }

    .circular {
        margin-bottom: 24px;
    }

    #divOfertasParaResgate .h3 {
        font-size: 20px;
    }

    .fidelidade-premios-grid {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr);
    }

    .fidelidade-oferta-card {
        min-height: 210px;
        padding: 18px;
    }

    .progress-padding {
        padding-top: 16px;
    }

    .button-programa-fidelidade-validar {
        margin: 12px 0 0;
        max-width: none;
        width: 100%;
    }

    .fidelidade-pontos-pendentes {
        margin: 0 4px;
    }
}

