/*
 * Yourcloudweb Orderform 1.1.2 RC3
 * Visual refinements only. Existing WHMCS form IDs, selectors and scripts intact.
 */

/* Catalog and checkout alignment. No phantom 25%-wide left column. */
#order-ycw-of > .row > .cart-body {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#order-ycw-of .cart-body > .header-lined,
#order-ycw-of .cart-body > .products,
#order-ycw-of .cart-body > .domain-checker-container,
#order-ycw-of .cart-body > .ycw-domain-pricing-section {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}
#order-ycw-of .products .product header,
#order-ycw-of .products .product .product-pricing,
#order-ycw-of .products .product .product-desc,
#order-ycw-of .products .product footer {
  text-align: left !important;
}
#order-ycw-of .products .product footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
#order-ycw-of .products .product footer .btn {
  width: auto !important;
  min-width: 136px;
  min-height: 44px;
}
#order-ycw-of .products .product header span[id$="-name"] {
  overflow-wrap: anywhere;
}

/* Use the entire card width for domain registration search, not a nested boxed column. */
#order-ycw-of.ycw-domain-register-page .ycw-domain-search-heading,
#order-ycw-of.ycw-domain-register-page .ycw-domain-search-shell,
#order-ycw-of.ycw-domain-register-page .ycw-domain-captcha-wrap {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#order-ycw-of.ycw-domain-register-page .ycw-domain-search-heading,
#order-ycw-of.ycw-domain-register-page #searchDomainInfo,
#order-ycw-of.ycw-domain-register-page #DomainSearchResults,
#order-ycw-of.ycw-domain-register-page .primary-domain-header,
#order-ycw-of.ycw-domain-register-page .ycw-domain-pricing-section {
  text-align: left !important;
}

/* Result status on the left, price and primary action on the right. */
#order-ycw-of.ycw-domain-register-page #primaryLookupResult:not(.w-hidden),
#order-ycw-of.ycw-domain-register-page #primaryLookupResult[style*="display: block"],
#order-ycw-of.ycw-domain-register-page #primaryLookupResult[style*="display:block"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: center !important;
  gap: 12px 24px !important;
  min-width: 0;
  padding: 24px !important;
}
#order-ycw-of.ycw-domain-register-page #primaryLookupResult > .domain-available,
#order-ycw-of.ycw-domain-register-page #primaryLookupResult > .domain-unavailable,
#order-ycw-of.ycw-domain-register-page #primaryLookupResult > .domain-invalid,
#order-ycw-of.ycw-domain-register-page #primaryLookupResult > .domain-tld-unavailable,
#order-ycw-of.ycw-domain-register-page #primaryLookupResult > .domain-error {
  grid-column: 1;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  text-align: left !important;
  overflow-wrap: anywhere;
  font-size: 17px !important;
  line-height: 1.5 !important;
}
#order-ycw-of.ycw-domain-register-page #primaryLookupResult > .domain-price {
  grid-column: 2;
  grid-row: 1;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: flex-end;
  gap: 12px !important;
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  text-align: right !important;
}
#order-ycw-of.ycw-domain-register-page #primaryLookupResult .domain-price .price {
  display: inline-flex !important;
  align-items: center;
  font-size: 18px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}
#order-ycw-of.ycw-domain-register-page #primaryLookupResult > .idn-language-selector,
#order-ycw-of.ycw-domain-register-page #primaryLookupResult > .domain-contact-support {
  grid-column: 1 / -1;
}
#order-ycw-of.ycw-domain-register-page #primaryLookupResult > .idn-language-selector .row > div {
  margin-left: 0 !important;
  text-align: left !important;
}
#order-ycw-of.ycw-domain-register-page .primary-domain-header {
  margin-bottom: 10px !important;
  padding: 0 3px !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 14px !important;
}
#order-ycw-of.ycw-domain-register-page #searchDomainInfo {
  padding: 0 !important;
  overflow: hidden !important;
}

/* Spotlight TLDs are compact, individually aligned cards, also with one result. */
#order-ycw-of.ycw-domain-register-page .spotlight-tlds {
  padding: 0 !important;
  margin: 20px 0 !important;
}
#order-ycw-of.ycw-domain-register-page .spotlight-tlds-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch;
}
#order-ycw-of.ycw-domain-register-page .spotlight-tld-container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
}
#order-ycw-of.ycw-domain-register-page .spotlight-tld {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px 12px !important;
  height: 100%;
  min-height: 90px !important;
  text-align: left !important;
}
#order-ycw-of.ycw-domain-register-page .spotlight-tld .domain-lookup-result {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: flex-end;
  gap: 8px !important;
  min-width: 0;
  margin-left: auto !important;
  text-align: right !important;
}

/* Suggestions have consistent left labels and right actions; empty state is left-aligned. */
#order-ycw-of.ycw-domain-register-page .suggested-domains .domain-suggestion {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  text-align: left !important;
}
#order-ycw-of.ycw-domain-register-page .suggested-domains .domain-suggestion > .domain,
#order-ycw-of.ycw-domain-register-page .suggested-domains .domain-suggestion > .extension {
  overflow-wrap: anywhere;
  font-weight: 700;
}
#order-ycw-of.ycw-domain-register-page .suggested-domains .actions {
  margin-left: auto !important;
}
#order-ycw-of.ycw-domain-register-page .suggested-domains .domain-lookup-message,
#order-ycw-of.ycw-domain-register-page .suggested-domains .domain-lookup-loader,
#order-ycw-of.ycw-domain-register-page .domain-suggestions-warning {
  text-align: left !important;
}

/* Domain renewal rows: tidy headers, period controls and action placement. */
#order-ycw-of.ycw-domain-renewals-page .domain-renewal {
  position: relative;
  overflow: hidden;
  text-align: left !important;
}
#order-ycw-of.ycw-domain-renewals-page .domain-renewal h3 {
  max-width: 100%;
  padding-right: 10px;
  overflow-wrap: anywhere;
}
#order-ycw-of.ycw-domain-renewals-page .domain-renewal .form-horizontal .form-group {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#order-ycw-of.ycw-domain-renewals-page .domain-renewal .form-horizontal .form-group > label {
  flex: 0 0 min(220px, 100%);
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
#order-ycw-of.ycw-domain-renewals-page .domain-renewal .form-horizontal .form-group > div {
  flex: 1 1 240px;
  width: auto !important;
  max-width: 100%;
  padding: 0 !important;
}
#order-ycw-of.ycw-domain-renewals-page .domain-renewal .select-renewal-pricing {
  width: 100% !important;
  min-width: 0 !important;
  text-overflow: ellipsis;
}
#order-ycw-of.ycw-domain-renewals-page .domain-renewal > .text-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  text-align: right !important;
}

@media (max-width: 767px) {
  #order-ycw-of.ycw-domain-register-page #primaryLookupResult:not(.w-hidden),
#order-ycw-of.ycw-domain-register-page #primaryLookupResult[style*="display: block"],
#order-ycw-of.ycw-domain-register-page #primaryLookupResult[style*="display:block"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 17px !important;
  }
  #order-ycw-of.ycw-domain-register-page #primaryLookupResult > .domain-price {
    grid-column: 1;
    grid-row: auto;
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  #order-ycw-of.ycw-domain-register-page .spotlight-tlds-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #order-ycw-of.ycw-domain-register-page .spotlight-tld .domain-lookup-result {
    justify-content: flex-start;
    margin-left: 0 !important;
  }
  #order-ycw-of.ycw-domain-register-page .suggested-domains .actions {
    margin-left: 0 !important;
    justify-content: flex-start !important;
    width: 100%;
  }
  #order-ycw-of.ycw-domain-renewals-page .domain-renewal > .pull-right,
  #order-ycw-of.ycw-domain-renewals-page .domain-renewal > .float-right {
    float: none !important;
    margin-bottom: 12px;
  }
  #order-ycw-of .products .product footer .btn { width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  #order-ycw-of .products .product:hover { transform: none !important; }
}


/* IMPORTANT: WHMCS uses jQuery show()/hide() via inline display styles.
   The old skin used !important layout displays that could accidentally reveal
   inactive search results. Give WHMCS visibility state precedence. */
#order-ycw-of.ycw-domain-register-page #primaryLookupResult[style*="display: none"],
#order-ycw-of.ycw-domain-register-page #primaryLookupResult[style*="display:none"],
#order-ycw-of.ycw-domain-register-page #primaryLookupResult .domain-price[style*="display: none"],
#order-ycw-of.ycw-domain-register-page #primaryLookupResult .domain-price[style*="display:none"],
#order-ycw-of.ycw-domain-register-page #primaryLookupResult .domain-contact-support[style*="display: none"],
#order-ycw-of.ycw-domain-register-page #primaryLookupResult .domain-contact-support[style*="display:none"],
#order-ycw-of.ycw-domain-register-page .primary-domain-header[style*="display: none"],
#order-ycw-of.ycw-domain-register-page .primary-domain-header[style*="display:none"],
#order-ycw-of.ycw-domain-register-page .spotlight-tld .domain-lookup-result[style*="display: none"],
#order-ycw-of.ycw-domain-register-page .spotlight-tld .domain-lookup-result[style*="display:none"],
#order-ycw-of.ycw-domain-register-page .spotlight-tld .btn[style*="display: none"],
#order-ycw-of.ycw-domain-register-page .spotlight-tld .btn[style*="display:none"],
#order-ycw-of.ycw-domain-register-page .spotlight-tld .price[style*="display: none"],
#order-ycw-of.ycw-domain-register-page .spotlight-tld .price[style*="display:none"] {
  display: none !important;
}
#order-ycw-of.ycw-domain-register-page #primaryLookupResult.w-hidden:not([style*="display: block"]):not([style*="display:block"]),
#order-ycw-of.ycw-domain-register-page .suggested-domains .domain-suggestion.w-hidden:not([style*="display: block"]):not([style*="display:block"]),
#order-ycw-of.ycw-domain-register-page .spotlight-tld .btn.w-hidden:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]),
#order-ycw-of.ycw-domain-register-page .spotlight-tld .price.w-hidden:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]) {
  display: none !important;
}

/* Narrow screens: keep renewal period filter and action on readable lines. */
#order-ycw-of.ycw-domain-renewals-page .ycw-domain-renewals-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  justify-content: space-between;
}
#order-ycw-of.ycw-domain-renewals-page .ycw-domain-renewals-header h1 {
  margin: 0 !important;
}
#order-ycw-of.ycw-domain-renewals-page .ycw-domain-renewals-filter {
  flex: 0 1 280px;
  min-width: min(240px,100%);
}
#order-ycw-of.ycw-domain-renewals-page #domainRenewalFilter {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
}
@media (max-width: 767px) {
  #order-ycw-of.ycw-domain-renewals-page .ycw-domain-renewals-filter { flex: 1 1 100%; }
  #order-ycw-of.ycw-domain-renewals-page .ycw-domain-renewals-header { align-items: flex-start; }
}
