/* Domain registration only: retain WHMCS lookup, CAPTCHA and cart visibility states. */
.twd-theme .twd-domain-verification-status {
    margin: .8rem 0 0;
    color: var(--twd-ink, #171425);
    font-size: .9rem;
    line-height: 1.5;
}

.twd-theme .twd-domain-selection-status:not(:empty) {
    padding: .8rem 1rem;
    border: 1px solid #b9a3e0;
    border-radius: .5rem;
    background: #eee8f8;
    color: #38278f;
    font-size: 1rem;
}

body.twd-theme #order-standard_cart #frmDomainChecker .twd-domain-verification-status {
    color: #f2edff;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) {
    --twd-domain-border: #ded6ec;
    --twd-domain-soft: #f7f4fc;
    color: var(--twd-ink, #171425);
    padding-block: .75rem 2rem;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) > .row {
    margin-inline: 0;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .cart-sidebar,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) .sidebar-collapsed {
    display: none;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .cart-body {
    float: none;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding-inline: 0;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .header-lined h1 {
    margin-block: 0 .75rem;
    padding-block-end: .75rem;
    border-color: var(--twd-domain-border);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .domain-checker-container {
    margin-block: 1.25rem 1.75rem;
    border: 1px solid #594181;
    border-radius: 1rem;
    background: linear-gradient(120deg, #161125, #38278f);
    box-shadow: 0 8px 24px #21153e12;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .domain-checker-bg {
    padding: clamp(1rem, 3vw, 2rem);
    background-image: none;
}

body.twd-theme #order-standard_cart #frmDomainChecker > .row {
    margin: 0;
}

body.twd-theme #order-standard_cart #frmDomainChecker .twd-domain-search-help {
    margin: .8rem 0 0;
    color: #f2edff;
    font-size: .9rem;
    line-height: 1.5;
}

body.twd-theme #order-standard_cart #DomainSearchResults {
    scroll-margin-block-start: 1rem;
}

body.twd-theme #order-standard_cart #primaryLookupResult.twd-gr-check-needed .domain-unavailable {
    display: none !important;
}

body.twd-theme #order-standard_cart .twd-gr-notice {
    color: var(--twd-ink, #171425);
    font-size: 1rem;
    line-height: 1.6;
}

body.twd-theme #order-standard_cart .twd-gr-notice a {
    text-decoration: underline;
    font-weight: 700;
}

body.twd-theme #order-standard_cart .twd-primary-domain {
    display: block;
    margin-block: .5rem;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

body.twd-theme #order-standard_cart .twd-gr-contact[hidden],
body.twd-theme #order-standard_cart .twd-primary-domain[hidden],
body.twd-theme #order-standard_cart .twd-gr-notice[hidden] {
    display: none !important;
}

body.twd-theme #order-standard_cart #frmDomainChecker > .row > div {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body.twd-theme #order-standard_cart #frmDomainChecker .input-group-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-width: 0;
    padding: clamp(.85rem, 2vw, 1.25rem);
    border-radius: .75rem;
    background: #fff;
    color: var(--twd-ink, #171425);
}

body.twd-theme #order-standard_cart #frmDomainChecker textarea {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 6.5rem;
    padding: .85rem 1rem;
    border: 1px solid #b9acca;
    border-radius: .55rem;
    background: #fff;
    color: var(--twd-ink, #171425);
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

body.twd-theme #order-standard_cart #frmDomainChecker input.form-control {
    flex: 1 1 16rem;
    width: auto;
    min-width: 0;
    min-height: 3rem;
    padding-inline: 1rem;
    border-radius: .55rem;
    font-size: 1rem;
}

body.twd-theme #order-standard_cart #frmDomainChecker #btnCheckAvailability {
    position: static;
    inset: auto;
    float: none;
    width: auto;
    min-width: 9rem;
    max-width: 100%;
    min-height: 3rem;
    height: auto;
    margin: 0;
    padding: .65rem 1.1rem;
    border: 1px solid var(--twd-violet-dark, #38278f);
    border-radius: .55rem;
    background: var(--twd-violet-dark, #38278f);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
}

body.twd-theme #order-standard_cart #frmDomainChecker .btn-group > .multiselect {
    min-height: 44px;
    margin: 0;
    padding: .55rem .7rem;
    border: 1px solid var(--twd-domain-border);
    border-radius: .5rem;
    background: var(--twd-domain-soft);
    color: var(--twd-ink, #171425);
    font-size: .9rem;
    white-space: normal;
}

body.twd-theme #order-standard_cart #frmDomainChecker .input-group-box > label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    margin: 0;
    color: var(--twd-muted, #5a5669);
    font-size: .9rem;
}

body.twd-theme #order-standard_cart #frmDomainChecker .input-group-box > label input {
    margin: 0;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #DomainSearchResults .primary-domain-header,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) .suggested-domains > .card-header {
    padding: 1rem 1.15rem;
    border-block-end: 2px solid #b9a3e0;
    border-radius: .65rem .65rem 0 0;
    background: #eee8f8;
    color: var(--twd-violet-dark, #38278f);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #searchDomainInfo {
    margin: 1rem 0 1.5rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--twd-domain-border);
    border-radius: .75rem;
    background: var(--twd-domain-soft);
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #primaryLookupResult p {
    margin-block: .4rem .9rem;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #primaryLookupResult .domain-price > .price {
    margin-inline-end: .75rem;
    color: var(--twd-ink, #171425);
    font-weight: 700;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #primaryLookupResult .btn,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tld .btn,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .btn {
    min-height: 44px;
    max-width: 100%;
    padding: .6rem .9rem;
    border: 1px solid var(--twd-violet-dark, #38278f);
    border-radius: .5rem;
    background: var(--twd-violet-dark, #38278f);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    text-overflow: clip;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #primaryLookupResult .btn:hover,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tld .btn:hover,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .btn:hover {
    background: var(--twd-violet, #4b36ba);
    border-color: var(--twd-violet, #4b36ba);
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #spotlightTlds {
    margin-block: 1.25rem 1.75rem;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tlds-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin: 0;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tlds-container::before,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tlds-container::after {
    content: none;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tld-container {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tld {
    height: auto;
    min-height: 10rem;
    padding: 1rem .9rem;
    border-color: var(--twd-domain-border);
    border-radius: .75rem;
    background: #fff;
    color: var(--twd-ink, #171425);
    font-size: 1rem;
    direction: ltr;
    unicode-bidi: isolate;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tld .btn {
    width: 100%;
    min-width: 0;
    margin-block: .5rem 0;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tld .btn[disabled] {
    background: #f1eef5;
    border-color: #d8d0e2;
    color: #655d70;
    opacity: 1;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .suggested-domains {
    margin-block: 1.5rem;
    border: 1px solid var(--twd-domain-border);
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .suggested-domains .card-body,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) .suggested-domains .card-footer {
    background: var(--twd-domain-soft);
    color: var(--twd-muted, #5a5669);
    opacity: 1;
}

/* Only WHMCS-created rows explicitly shown by its lookup code become grids.
   Hidden source templates and rows hidden again by WHMCS keep their native state. */
body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .domain-suggestion.clone:is([style*="display: block"], [style*="display:block"]) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .65rem 1rem;
    min-width: 0;
    padding: 1rem 1.15rem;
    border-color: var(--twd-domain-border);
    text-align: start;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .twd-domain-label {
    grid-column: 1;
    min-width: 0;
    color: var(--twd-ink, #171425);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    unicode-bidi: isolate;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .domain-suggestion > .promo {
    grid-column: 2;
    justify-self: start;
    border-radius: .3rem;
    font-size: .75rem;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .actions {
    grid-column: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem .85rem;
    float: none;
    min-width: 0;
    max-width: 100%;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .price {
    float: none;
    padding: 0;
    color: var(--twd-ink, #171425);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    unicode-bidi: isolate;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #primaryLookupResult strong,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) #primaryLookupResult .domain-price > .price,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .twd-domain-label,
body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .price {
    direction: ltr;
    unicode-bidi: isolate;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .domain-promo-box {
    border: 1px solid var(--twd-domain-border);
    border-radius: .75rem;
    background: var(--twd-domain-soft);
    color: var(--twd-ink, #171425);
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .domain-promo-box h3 {
    color: var(--twd-ink, #171425);
    font-size: 1.2rem;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .domain-promo-box :is(.text-warning, .text-primary) {
    color: var(--twd-violet-dark, #38278f) !important;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .domain-promo-box .btn {
    min-height: 44px;
    max-width: 100%;
    padding: .65rem 1rem;
    border: 1px solid var(--twd-violet-dark, #38278f);
    border-radius: .55rem;
    background: var(--twd-violet-dark, #38278f);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .domain-promo-box .btn:hover {
    background: var(--twd-violet, #4b36ba);
    border-color: var(--twd-violet, #4b36ba);
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .btn {
    width: auto;
    min-width: 8rem;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) .domain-suggestions-warning {
    padding: .8rem 1rem;
    color: var(--twd-muted, #5a5669);
    font-size: .85rem;
    line-height: 1.5;
}

body.twd-theme #order-standard_cart:has(#frmDomainChecker) :is(input, textarea, button, a, select):focus-visible {
    outline: 3px solid #8250df;
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    body.twd-theme #order-standard_cart:has(#frmDomainChecker) .spotlight-tlds-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }

    body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .domain-suggestion.clone:is([style*="display: block"], [style*="display:block"]) {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .65rem;
        padding: 1rem;
    }

    body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .twd-domain-label {
        grid-column: 1 / -1;
    }

    body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .domain-suggestion > .promo {
        grid-column: 1 / -1;
    }

    body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: space-between;
    }

    body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .price {
        margin-inline-end: auto;
    }

    body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .btn {
        min-width: 8.5rem;
        flex: 0 1 auto;
    }

    body.twd-theme #order-standard_cart:has(#frmDomainChecker) #primaryLookupResult .domain-price > .price {
        margin-inline: .35rem;
    }
}

@media (max-width: 479.98px) {
    body.twd-theme #order-standard_cart #frmDomainChecker #btnCheckAvailability {
        width: 100%;
    }

    body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .actions .btn {
        flex: 1 1 8.5rem;
    }

    body.twd-theme #order-standard_cart:has(#frmDomainChecker) #domainSuggestions .actions .price {
        flex: 1 0 auto;
    }
}
