/* RC25 theme for the YCW checkout + domain/catalog pages.
   Loaded LAST by common.tpl, after all legacy orderform styles. */
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of {
  --ycw-primary: #ff761a;
  --ycw-primary-dark: #ff995e;
  --ycw-primary-soft: #36271e;
  --ycw-ink: #eef4ff;
  --ycw-text: #dbe7f5;
  --ycw-muted: #a9bbd3;
  --ycw-line: #364860;
  --ycw-bg: #101a2a;
  --ycw-card: #1a2739;
  background: transparent !important;
  color: #dfeaf8 !important;
  color-scheme: dark;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(h1,h2,h3,h4,h5,h6) {
  color: #f0f5ff !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(p,label,small,span,li,td,th) { border-color: #35465e; }
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.text-muted,.text-gray,.help-block,.ycw-domain-search-hint,.ycw-domain-path-tag,.ycw-domain-option-label) {
  color: #adc0d6 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(
  .product,.products .product, .product header,.product .product-info,.product footer,
  .panel,.panel-default,.panel-body,.panel-heading,.panel-footer,.card,
  .alert-info,.bg-white,.cart-body .product,.cart-summary,.order-summary,
  .checkout-security-msg,.checkout-summary,.checkout-cart-summary,
  .ycw-domain-search-card,.ycw-domain-search-heading,.ycw-domain-search-shell,
  .ycw-domain-search-toolbar,.ycw-domain-options-panel,.ycw-domain-path-card,
  .ycw-domain-feature-aside,.ycw-domain-feature-tld,.ycw-tld-pricing-card,
  .domain-pricing,.domain-checker-container,.primary-domain-result,
  .domain-lookup-result,.domain-lookup-loader,.domain-lookup-primary-results,
  .domain-lookup-suggestions,.domain-suggestion,.domain-suggestion-row,
  .product-configurator,.config-option,.product-addon,.addon,
  .already-registered,.domain-renewals,.field-container,.checkout-col,
  .cart-totals,.cart-options,.payment-method,.payment-methods,
  .mc-promos,.view-cart-items,.account-select-container,.sub-heading,
  .ycw-domain-paths,.ycw-domain-feature,.ycw-domain-trust-ribbon
) {
  color: #dfeaf7 !important;
  background-color: #1a2739 !important;
  border-color: #36475f !important;
  box-shadow: none;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of .product header,
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.domain-lookup-result .domain-name,.domain-lookup-primary-results .domain-result,.domain-pricing .tld-pricing-header,.ycw-domain-table-heading,.panel-heading,.product .product-title) {
  color: #f1f5fd !important;
  background-color: #223248 !important;
  border-color: #374964 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.ycw-domain-feature,.ycw-domain-feature-copy,.ycw-domain-search-main,.ycw-domain-search-field,.ycw-domain-feature-points,.ycw-domain-quick-tlds,.ycw-domain-trust-copy) {
  color: #dce8f7 !important;
  background-color: transparent !important;
  border-color: #34485f !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.ycw-domain-search-main,.ycw-domain-search-field,.ycw-domain-options-panel,.ycw-domain-search-toolbar) {
  background-color: #223248 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.ycw-domain-search-field input,.ycw-domain-search-main input,input.form-control,select.form-control,textarea.form-control,select,textarea,input[type='text'],input[type='email'],input[type='password'],input[type='tel'],input[type='number'],input[type='search'],input[type='date'],.select2-selection,.select2-dropdown,.multiselect-container,.dropdown-menu) {
  color: #ecf4ff !important;
  background-color: #152235 !important;
  border-color: #435671 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(input,textarea)::placeholder { color: #a2b4ca !important; opacity: 1; }
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(input,select,textarea):focus {
  outline-color: #ff8c44;
  border-color: #ff8c44 !important;
  box-shadow: 0 0 0 3px rgba(255, 118, 26, .17) !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.ycw-domain-quick-tlds a,.ycw-domain-feature-more,.ycw-domain-path-link,.ycw-domain-table-back,.ycw-domain-options-toggle) {
  color: #ff9a60 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.ycw-domain-trust-ribbon,.ycw-domain-path-card,.ycw-domain-feature-aside,.ycw-domain-feature-tld,.ycw-domain-pricing-section,.ycw-tld-pricing-card) {
  background: #1b293b !important;
  border-color: #374960 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.domain-pricing .tld-pricing-table,.tld-pricing-table,.tld-pricing-table tr,.table,.table-responsive) {
  color: #dce8f6 !important;
  background: transparent !important;
  border-color: #344760 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.tld-pricing-table td,.tld-pricing-table th,.table td,.table th,.domain-pricing .row) { border-color: #344760 !important; }
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.tld-pricing-table tr:nth-child(odd),.table-striped tr:nth-child(odd)) { background: #223247 !important; }
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.btn-default,.btn-secondary,.btn-outline-secondary,.btn-info,.btn-light) {
  color: #e6f0ff !important;
  background: #2b3b50 !important;
  border-color: #425570 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.btn-primary,.btn-success,.btn-warning) {
  color: #fff !important;
  background: #ce4900 !important;
  border-color: #ce4900 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.btn-primary,.btn-success,.btn-warning):hover { background: #b83d00 !important; border-color: #b83d00 !important; }
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.alert-danger,.error,.field-error) {
  color: #ffbfc6 !important;
  background: #3d252e !important;
  border-color: #905664 !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.alert-success,.domain-checker-success) {
  color: #b7f1d6 !important;
  background: #193b30 !important;
  border-color: #3e735b !important;
}
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.domain-checker-unavailable,.alert-warning) {
  color: #ffe0a8 !important;
  background: #3d3126 !important;
  border-color: #8f693e !important;
}
/* WHMCS/jQuery visibility remains fully authoritative for status and gateway output. */

/* Keep external gateway iframe content as provided by its payment processor. */
html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.payment-btn-container, .payment-gateway-input) { color: #eaf1fc; }
@media print {
  html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of,
  html[data-ycw-theme='dark'] body.ycw-portal #order-ycw-of :is(.panel,.card,.product,.ycw-domain-search-card,.ycw-tld-pricing-card,.table) {
    color-scheme: light !important;
    color: #172b4b !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}

/* RC28: common order-flow surfaces, excludes gateway iframe contents. */
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.domain-checker-bg,.domain-results,.domain-search,.domain-options,.domain-selection,.checkout,.checkout-details,.view-cart,.cart-item,.summary-container,.checkout-container,.product-selection,.product-config,.configurable-option,.checkout-panel,.gateway-selection,.domain-configuration) {
  background:#1c2b40!important; border-color:#3d516c!important; color:#e4edfa!important;
}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.sub-heading,.form-group label,.field-label,.domain-name,.product-name,.product-price,.recurring-cost,.order-summary .total-due) {
  color:#edf4ff!important;
}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.dropdown-menu,.dropdown-item,.select2-results__option,.select2-results,.list-group-item,.summary-totals,.cart-totals,.alert-info) {
  background:#223249!important; border-color:#40526b!important; color:#e9f1fd!important;
}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.form-check-input,.custom-control-input,input[type='checkbox'],input[type='radio']) { accent-color:#ff7e2a; }


/* YCW RC30: orderflow hardening across domain pricing, product cards, cart,
   configureproduct, confdomains, checkout, alerts and mobile menus. */
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of {
  --ycw30-order-bg:#101a2a;--ycw30-order-card:#1b293d;
  --ycw30-order-raised:#24364d;--ycw30-order-text:#edf4ff;
  --ycw30-order-muted:#b7c8dd;--ycw30-order-line:#3b506a;
  color-scheme:dark;color:var(--ycw30-order-text)!important;
}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(
 .bg-white,.bg-light,.domain-pricing,.ycw-domain-pricing-section,
 .ycw-tld-pricing-card,.ycw-domain-search-card,.ycw-domain-feature,
 .domain-checker-container,.domain-checker-bg,.domain-checker-result-headline,
 .domain-lookup-result,.domain-lookup-suggestions,.cart-body,.cart-item,.cart-summary,
 .cart-totals,.order-summary,.order-review,.checkout-container,.checkout,
 .checkout-summary,.checkout-col,.product,.product-info,.product-addon,
 .panel,.panel-body,.panel-footer,.well,.card,.config-option,.configurable-option,
 .product-configurator,.domain-configuration,.account-select-container,
 .payment-method,.payment-methods,.domain-renewals,.domain-results,
 .ycw-domain-search-toolbar,.ycw-domain-options-panel,.domain-suggestions
 ) {background-color:var(--ycw30-order-card)!important;border-color:var(--ycw30-order-line)!important;color:var(--ycw30-order-text)!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(
 .ycw-domain-pricing-section h2,.ycw-domain-table-heading h2,.ycw-domain-search-heading h2,
 .product-title,.product-name,.domain-name,.domain-lookup-result .domain-name,
 .sub-heading,.panel-title,.cart-totals .total,.order-summary .total-due
 ) {color:var(--ycw30-order-text)!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(
 .ycw-domain-pricing-section p,.ycw-domain-table-heading p,.ycw-domain-search-heading p,
 .product-description,.product-info p,.cart-body p,.cart-summary small,
 .ycw-domain-search-hint,.domain-pricing .tld-filters a
 ) {color:var(--ycw30-order-muted)!important;}
/* Domain price grid uses nested Bootstrap ROWS, not HTML tables. */
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .domain-pricing :is(.ycw-tld-pricing-card,.tld-pricing-header,.tld-row),
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card > .row,
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row > div,
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row > div > .row,
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row .row > div {
  background-color:var(--ycw30-order-card)!important;
  border-color:var(--ycw30-order-line)!important;
  color:var(--ycw30-order-text)!important;
}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-pricing-header,
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-pricing-header :is(.col-md-4,.col-md-8,.row,[class*='col-']) {
  background-color:var(--ycw30-order-raised)!important;color:var(--ycw30-order-text)!important;
}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row:nth-child(2n+1),
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row:nth-child(2n+1) > div,
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row:nth-child(2n+1) .row,
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row:nth-child(2n+1) .row > div {
  background-color:#223248!important;
}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row :is(strong,b,.two-row-center),
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row .col-md-4 > strong {color:#f2f7ff!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row small {color:#b6c7db!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.tld-filters .badge,.tld-filters a,.ycw-domain-search-toolbar .ycw-domain-options-toggle) {background:#2d3d54!important;border-color:#435776!important;color:#dce9f7!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.table,.table-responsive,.table-striped,.tld-pricing-table) {background:var(--ycw30-order-card)!important;color:var(--ycw30-order-text)!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.table,.table-striped,.tld-pricing-table) :is(thead th,tbody td) {background:var(--ycw30-order-card)!important;border-color:var(--ycw30-order-line)!important;color:var(--ycw30-order-text)!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.table,.table-striped,.tld-pricing-table) thead th {background:var(--ycw30-order-raised)!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.table,.table-striped,.tld-pricing-table) tbody tr:nth-child(odd) td {background:#223248!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.form-control,input[type='text'],input[type='email'],input[type='password'],input[type='search'],textarea,select,.select2-selection,.dropdown-menu,.multiselect-container) {background-color:#152337!important;color:var(--ycw30-order-text)!important;border-color:#445a75!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.domain-lookup-loader,.domain-searching,.loading-overlay,.domain-checker-bg .loading) {background-color:#1b293d!important;color:var(--ycw30-order-muted)!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.cart-body,.checkout,.product-configurator) :is(.dropdown-menu,.popover,.modal-content,.select2-dropdown) {background-color:#223249!important;color:var(--ycw30-order-text)!important;border-color:var(--ycw30-order-line)!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.alert-info,.alert-warning,.alert-danger,.alert-success) {border-width:1px;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.btn-default,.btn-secondary,.btn-light,.btn-outline-secondary) {background:#2d3d54!important;color:#f0f5ff!important;border-color:#455a77!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(button,a,input,textarea,select):focus-visible {outline:2px solid #ff9c68!important;outline-offset:2px;}
/* Must not interfere with the native WHMCS result visibility / payment iframe. */

@media(max-width:767px) {
 html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.cart-body,.ycw-tld-pricing-card,.checkout,.domain-pricing) {min-width:0;max-width:100%;}
}
@media print {
 html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of,
 html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of :is(.cart-body,.ycw-tld-pricing-card,.tld-row,.tld-row > div,.table,.table td) {color-scheme:light!important;background:#fff!important;color:#213451!important;}
}
/* RC30 browser validation: the nested price columns inherited a dark navy
   text rule from the original domain table. Override at the actual leaf. */
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row :is(.col-xs-4,.col-4,.col-md-4,.col-md-8,.two-row-center),
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of .ycw-tld-pricing-card .tld-row .row > [class*="col-"] {
 color:#edf4ff!important;
}


/* RC31: WHMCS native AJAX lookup controls visibility through jQuery inline styles.
   Never force .w-hidden to display:none!important: this prevents the checker
   from showing Exact match, Unavailable, errors and suggestion rows.
   Core orderform CSS still declares .w-hidden { display:none } normally. */
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #DomainSearchResults.w-hidden[style*="display: block"] {display:block!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #DomainSearchResults.w-hidden[style*="display:block"] {display:block!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #primaryLookupResult.w-hidden[style*="display: block"],
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #primaryLookupResult.w-hidden[style*="display:block"] {display:flex!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page :is(#primaryLookupResult,.domain-lookup-result,#searchDomainInfo) {color:#edf3fc!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #searchDomainInfo {background:#1c2b40!important;border-color:#40556f!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #primaryLookupResult :is(.domain-available,.domain-checker-available) {color:#a6f1c7!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #primaryLookupResult :is(.domain-unavailable,.domain-checker-unavailable,.domain-error,.domain-invalid,.domain-tld-unavailable) {color:#ffc7bc!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #primaryLookupResult .domain-price :is(.price,span) {color:#eef4ff;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #primaryLookupSearching {background:#203149!important;color:#c6d7eb!important;}
/* Catalog: preserve dynamic product names/pricing instead of inheriting navy text from old light theme. */
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product :is(header,header > span[id$="-name"],.ycw-product-name,.ycw-product-name > a,.ycw-product-card-header h3,.product-name,.product-desc p,.product-desc li,.feature-value) {color:#f1f6ff!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product .product-pricing {background:#1d2c40!important;color:#d9e6f7!important;border-color:#3a506b!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product .product-pricing :is(.price,small,strong,b) {color:#ff9660!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product :is(header,.ycw-product-card-header,footer,.product-desc,.product-pricing) {border-color:#3a506b!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product :is(.product-desc,.ycw-product-desc) {background:#1b293d!important;color:#d8e7f8!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product .qty {color:#b3c9e0!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product footer :is(.btn-order-now,.wdes-ycw-of-order-btn) {background:#ff5900!important;color:#fff!important;border-color:#ff5900!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product header > i {color:#8db9ff!important;}
html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product {background:#1b293d!important;border-color:#39516a!important;}
@media (max-width:767px) {
 html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-products-page .products .product :is(header,.product-pricing,.product-desc,footer) {min-width:0;max-width:100%;}
 html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #primaryLookupResult {flex-wrap:wrap!important;}
 html[data-ycw-theme="dark"] body.ycw-portal #order-ycw-of.ycw-domain-register-page #primaryLookupResult > .domain-price {margin-left:0!important;justify-content:flex-start!important;}
}
