/* DPU-651 - Página de compra de cartões presente (/cartaopresente) */

#cartaopresente {
    color: #683821;
    padding-bottom: 40px;
}

#cartaopresente .cp-intro {
    background-color: #dcd8d5;
    text-align: center;
    padding: 28px 20px 22px 20px;
    margin: 0 -15px;
}

#cartaopresente .cp-intro h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 22px 0;
    color: #683821;
}

#cartaopresente .cp-intro p {
    font-style: italic;
    font-size: 15px;
    margin: 0;
}

#cartaopresente .cp-intro p b {
    font-weight: 700;
}

#cartaopresente .cp-titulo {
    font-style: italic;
    font-weight: 400;
    font-size: 30px;
    text-align: center;
    margin: 40px 0 36px 0;
    color: #683821;
}

#cartaopresente .cp-cartoes {
    margin-bottom: 30px;
}

#cartaopresente .cp-cartao {
    cursor: pointer;
    margin-bottom: 24px;
}

#cartaopresente .cp-cartao .carousel {
    background-color: #f0ece9;
}

#cartaopresente .cp-cartao .carousel-control-prev,
#cartaopresente .cp-cartao .carousel-control-next {
    width: 15%;
    opacity: 0.9;
}

#cartaopresente .cp-cartao .carousel-control-prev-icon,
#cartaopresente .cp-cartao .carousel-control-next-icon {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* as labels têm uma regra geral no site (verde, bold, 90%): cor e peso definidos aqui */
#cartaopresente .cp-nome {
    display: block;
    background-color: #dcd8d5;
    color: #683821;
    text-align: center;
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    padding: 8px 6px;
    margin: 14px 0 10px 0;
    cursor: pointer;
}

#cartaopresente .cp-cartao.selected .cp-nome {
    font-weight: 700;
}

#cartaopresente .cp-radio {
    text-align: center;
}

#cartaopresente .cp-radio input[type=radio] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #683821;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
}

#cartaopresente .cp-radio input[type=radio]:checked {
    background-color: #683821;
    box-shadow: inset 0 0 0 2px #f0ece9;
}

#cartaopresente .cp-radio input[type=radio]:focus-visible {
    box-shadow: 0 0 0 3px rgba(104, 56, 33, 0.3);
}

#cartaopresente .cp-valor {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    max-width: 440px;
}

#cartaopresente .cp-valor-campo {
    display: flex;
    align-items: center;
    flex: 1 1 260px;
    background-color: #dcd8d5;
    padding: 4px 6px 4px 12px;
}

#cartaopresente .cp-valor-campo label {
    flex: 1 1 auto;
    margin: 0;
    color: #683821;
    font-style: italic;
    font-weight: 400;
    font-size: 15px;
}

#cartaopresente .cp-valor-input {
    display: flex;
    align-items: center;
    background-color: #fff;
    width: 80px;
    padding: 2px 4px;
}

#cartaopresente .cp-valor-input span {
    font-size: 12px;
    margin-right: 2px;
}

#cartaopresente .cp-valor-input input {
    border: none;
    width: 100%;
    background: transparent;
    color: #683821;
    font-size: 15px;
    padding: 2px;
    -moz-appearance: textfield;
}

#cartaopresente .cp-valor-input input::-webkit-outer-spin-button,
#cartaopresente .cp-valor-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#cartaopresente .cp-valor-input input:focus {
    outline: none;
}

#cartaopresente .cp-adicionar {
    background-color: #AABDAA;
    color: #fff;
    font-weight: 700;
    border-radius: 0;
    padding: 4px 12px;
    white-space: nowrap;
}

#cartaopresente .cp-adicionar:hover,
#cartaopresente .cp-adicionar:focus {
    background-color: #8fa58f;
    color: #fff;
}

#cartaopresente .cp-adicionar svg,
#cartaopresente .cp-adicionar img {
    height: 18px;
    width: auto;
    vertical-align: middle;
    fill: #fff;
}

#cartaopresente .cp-nota {
    font-size: 13px;
    font-style: italic;
    margin-top: 10px;
    opacity: 0.85;
}

@media (max-width: 767.98px) {
    #cartaopresente .cp-titulo {
        font-size: 22px;
        margin: 28px 0 24px 0;
    }

    #cartaopresente .cp-valor {
        max-width: none;
    }
}
