.ld-opcoes-produto {
    --ld-opcoes-fundo: #111;
    --ld-opcoes-fundo-secundario: #181818;
    --ld-opcoes-fundo-hover: #202020;
    --ld-opcoes-texto: #fff;
    --ld-opcoes-texto-suave: #bcbcbc;
    --ld-opcoes-borda: #4a4a4a;
    --ld-opcoes-destaque: #fff;
    --ld-opcoes-erro: #df3434;
    width: 100%;
    margin: 20px 0;
    color: var(--ld-opcoes-texto);
    font-family: Poppins, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.ld-opcoes-produto *,
.ld-opcoes-produto *::before,
.ld-opcoes-produto *::after {
    box-sizing: border-box;
}

.ld-opcoes-produto-titulo {
    margin: 0 0 10px;
    color: var(--ld-opcoes-texto);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .01em;
}

.ld-opcoes-grupo {
    margin: 0 0 12px;
    border: 1px solid var(--ld-opcoes-borda);
    background: var(--ld-opcoes-fundo);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ld-opcoes-grupo.tem-selecao {
    border-color: var(--ld-opcoes-destaque);
}

.ld-opcoes-grupo.ld-opcoes-erro {
    border-color: var(--ld-opcoes-erro);
    box-shadow: 0 0 0 1px var(--ld-opcoes-erro);
}

.ld-opcoes-grupo-botao,
.ld-opcoes-grupo-cabecalho-direto {
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    background: var(--ld-opcoes-fundo-secundario);
    color: var(--ld-opcoes-texto);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font: inherit;
    text-align: left;
}

.ld-opcoes-grupo-botao {
    cursor: pointer;
}

.ld-opcoes-grupo-botao:hover,
.ld-opcoes-grupo-botao:focus-visible {
    background: var(--ld-opcoes-fundo-hover);
    color: var(--ld-opcoes-texto);
    outline: none;
}

.ld-opcoes-grupo-titulo-wrap {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ld-opcoes-grupo-titulo {
    font-size: 15px;
    font-weight: 600;
}

.ld-opcoes-obrigatorio {
    padding: 2px 7px;
    border: 1px solid var(--ld-opcoes-destaque);
    border-radius: 999px;
    color: var(--ld-opcoes-destaque);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ld-opcoes-grupo-lado {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 14px;
    flex-shrink: 0;
}

.ld-opcoes-desde {
    color: var(--ld-opcoes-destaque);
    font-size: 13px;
    white-space: nowrap;
}

.ld-opcoes-seta {
    width: 12px;
    height: 12px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .18s ease;
}

.ld-opcoes-grupo-botao[aria-expanded="true"] .ld-opcoes-seta {
    transform: rotate(225deg) translate(-2px, -2px);
}

.ld-opcoes-grupo-conteudo {
    padding: 4px 14px;
    border-top: 1px solid var(--ld-opcoes-borda);
}

.ld-opcoes-grupo-conteudo[hidden],
.ld-opcoes-resumo[hidden],
.ld-opcao-preco[hidden],
.ld-opcoes-desde[hidden],
.ld-limpar-selecao[hidden] {
    display: none !important;
}

.ld-opcao-produto {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    margin: 0;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: var(--ld-opcoes-texto);
    cursor: pointer;
}

.ld-opcao-produto.tem-imagem {
    grid-template-columns: 24px 58px minmax(0, 1fr) auto;
}

.ld-opcao-produto:last-of-type {
    border-bottom: 0;
}

.ld-opcao-produto:hover .ld-opcao-nome {
    color: var(--ld-opcoes-destaque);
}

.ld-opcao-produto > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ld-opcao-marcador {
    width: 22px;
    height: 22px;
    border: 1px solid var(--ld-opcoes-destaque);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .16s ease, box-shadow .16s ease;
}

.ld-opcao-produto input[type="radio"] + .ld-opcao-marcador {
    border-radius: 50%;
}

.ld-opcao-produto input:checked + .ld-opcao-marcador {
    background: var(--ld-opcoes-destaque);
    box-shadow: inset 0 0 0 4px var(--ld-opcoes-fundo);
}

.ld-opcao-produto input[type="checkbox"]:checked + .ld-opcao-marcador::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--ld-opcoes-fundo);
    border-bottom: 2px solid var(--ld-opcoes-fundo);
    transform: rotate(-45deg) translate(1px, -1px);
}

.ld-opcao-produto input:focus-visible + .ld-opcao-marcador {
    outline: 2px solid var(--ld-opcoes-texto);
    outline-offset: 2px;
}

.ld-opcao-imagem {
    width: 58px;
    height: 58px;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    display: block;
    overflow: hidden;
}

.ld-opcao-imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ld-opcao-texto {
    min-width: 0;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ld-opcao-nome {
    color: var(--ld-opcoes-texto);
    font-size: 14px;
    font-weight: 500;
    transition: color .16s ease;
}

.ld-opcao-descricao {
    color: var(--ld-opcoes-texto-suave);
    font-size: 12px;
    font-weight: 400;
}

.ld-opcao-preco {
    align-self: center;
    justify-self: end;
    color: var(--ld-opcoes-texto);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.ld-opcao-preco .woocommerce-Price-currencySymbol,
.ld-opcoes-desde .woocommerce-Price-currencySymbol {
    font-size: .82em;
}

.ld-limpar-selecao {
    margin: 8px 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ld-opcoes-texto-suave);
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.ld-limpar-selecao:hover,
.ld-limpar-selecao:focus {
    color: var(--ld-opcoes-texto);
    background: transparent;
}

.ld-opcoes-resumo {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--ld-opcoes-destaque);
    background: rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ld-opcoes-resumo-label {
    color: var(--ld-opcoes-texto-suave);
    font-size: 13px;
}

.ld-opcoes-resumo-valor {
    color: var(--ld-opcoes-texto);
    font-size: 17px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .ld-opcoes-produto {
        margin: 16px 0;
        font-size: 13px;
    }

    .ld-opcoes-grupo-botao,
    .ld-opcoes-grupo-cabecalho-direto {
        min-height: 54px;
        padding: 12px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .ld-opcoes-grupo-titulo-wrap {
        min-width: 0;
    }

    .ld-opcoes-grupo-lado {
        margin-left: auto;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .ld-opcoes-desde {
        font-size: 11px;
    }

    .ld-opcoes-grupo-conteudo {
        padding: 3px 10px;
    }

    .ld-opcao-produto {
        grid-template-columns: 22px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 11px 0;
    }

    .ld-opcao-produto.tem-imagem {
        grid-template-columns: 22px 50px minmax(0, 1fr) auto;
    }

    .ld-opcao-imagem {
        width: 50px;
        height: 50px;
    }

    .ld-opcao-texto,
    .ld-opcao-preco {
        align-self: center;
    }

    .ld-opcao-preco {
        justify-self: end;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .ld-opcoes-grupo-botao,
    .ld-opcoes-grupo-cabecalho-direto {
        padding: 11px 12px;
    }

    .ld-opcoes-grupo-titulo-wrap {
        gap: 6px;
    }

    .ld-opcoes-grupo-titulo {
        font-size: 14px;
    }

    .ld-opcoes-obrigatorio {
        padding: 1px 6px;
        font-size: 9px;
    }

    .ld-opcoes-grupo-lado {
        flex-direction: row;
        align-items: center;
        gap: 9px;
    }

    .ld-opcoes-desde {
        font-size: 10.5px;
    }

    .ld-opcao-produto {
        grid-template-columns: 22px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .ld-opcao-produto.tem-imagem {
        grid-template-columns: 22px 46px minmax(0, 1fr) auto;
    }

    .ld-opcao-imagem {
        width: 46px;
        height: 46px;
    }

    .ld-opcao-nome {
        font-size: 13px;
    }

    .ld-opcao-preco {
        font-size: 12px;
    }
}


.woocommerce-mini-cart .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor),
.widget_shopping_cart_content .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor),
.cart-popup .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) {
    display: block !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}

.woocommerce-mini-cart .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) .wcpa_cart_meta_item-label,
.widget_shopping_cart_content .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) .wcpa_cart_meta_item-label,
.cart-popup .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) .wcpa_cart_meta_item-label {
    display: block !important;
    width: auto !important;
    margin: 0 0 1px !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
}

.woocommerce-mini-cart .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) .wcpa_cart_meta_item-value,
.widget_shopping_cart_content .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) .wcpa_cart_meta_item-value,
.cart-popup .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) .wcpa_cart_meta_item-value {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
}

.woocommerce-mini-cart .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) p,
.widget_shopping_cart_content .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) p,
.cart-popup .wcpa_cart_meta_item:has(.ld-opcoes-carrinho-valor) p,
.ld-opcoes-carrinho-valor {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
}
