/* ComercialHost Theme 1.0
   Regras estritamente isoladas para evitar efeitos colaterais no WHMCS. */

/* Planos: somente cards da listagem de produtos */
#order-standard_cart .products .ch-product-card .ch-product-description,
#order-standard_cart .products .ch-product-card .ch-product-description p,
#order-standard_cart .products .ch-product-card .ch-product-description li,
#order-standard_cart .products .ch-product-card .ch-product-description span:not(.feature-value) {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #94a3b8 !important;
}

#order-standard_cart .products .ch-product-card .ch-product-description strong,
#order-standard_cart .products .ch-product-card .ch-product-description b {
    color: #f8fafc !important;
    font-weight: 700 !important;
}

#order-standard_cart .products .ch-product-card .ch-product-description ul li,
#order-standard_cart .products .ch-product-card .ch-product-description .ch-product-features li {
    position: relative !important;
    padding-left: 22px !important;
    margin: 0 0 6px !important;
}

#order-standard_cart .products .ch-product-card .ch-product-description ul li::before,
#order-standard_cart .products .ch-product-card .ch-product-description .ch-product-features li::before {
    content: "\2713" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 14px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    color: #073b20 !important;
    text-align: center !important;
    font-size: 9px !important;
    font-weight: 900 !important;
}

/* Mantém preço exatamente no padrão estável da V21. Nenhuma alteração de tamanho. */
#order-standard_cart .products .ch-product-card .ch-product-price {
    color: var(--ch-orange) !important;
}

/* Espaço entre carrinho e texto apenas no botão dos planos */
#order-standard_cart .products .ch-product-card .ch-order-button > i,
#order-standard_cart .products .ch-product-card .ch-order-button > .fa,
#order-standard_cart .products .ch-product-card .ch-order-button > .glyphicon {
    margin-right: 7px !important;
}

/* Cards de domínio. Todos usam exatamente a mesma estrutura visual. */
#order-standard_cart #spotlightTlds,
#order-standard_cart #spotlightTlds .spotlight-tlds-container {
    overflow: visible !important;
}

#order-standard_cart #spotlightTlds .spotlight-tlds-container {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

#order-standard_cart #spotlightTlds .spotlight-tld-container {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

#order-standard_cart #spotlightTlds .ch-domain-card,
#order-standard_cart #spotlightTlds .ch-domain-card:first-child,
#order-standard_cart #spotlightTlds .spotlight-tld-container:first-child .ch-domain-card {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 166px !important;
    min-height: 166px !important;
    margin: 0 !important;
    padding: 18px 10px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    transform: none !important;
    border: 2px solid #16a34a !important;
    border-radius: 14px !important;
    background: var(--ch-card) !important;
    text-align: center !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

/* Elimina ribbons e pseudo elementos herdados do primeiro TLD promocional */
#order-standard_cart #spotlightTlds .ch-domain-card::before,
#order-standard_cart #spotlightTlds .ch-domain-card::after,
#order-standard_cart #spotlightTlds .ch-domain-card > [class^="spotlight-tld-"] {
    display: none !important;
    content: none !important;
}

#order-standard_cart #spotlightTlds .ch-domain-extension {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #e5e7eb !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

#order-standard_cart #spotlightTlds .ch-domain-card .domain-lookup-result {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 70px !important;
    overflow: visible !important;
}

#order-standard_cart #spotlightTlds .ch-domain-card .price {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #22c55e !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

#order-standard_cart #spotlightTlds .ch-domain-card .btn-add-to-cart:not(.hidden),
#order-standard_cart #spotlightTlds .ch-domain-card .unavailable:not(.hidden),
#order-standard_cart #spotlightTlds .ch-domain-card .invalid:not(.hidden) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 96px !important;
    max-width: calc(100% - 8px) !important;
    height: 38px !important;
    margin: 0 auto !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

@media (max-width: 991px) {
    #order-standard_cart #spotlightTlds .spotlight-tlds-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    #order-standard_cart #spotlightTlds .spotlight-tlds-container {
        grid-template-columns: 1fr !important;
    }
}
