/* ============================================
   ValueHost Order Form Overrides
   ============================================ */

/* Featured TLD cards */
.featured-tld {
    border-radius: 1.25rem;
}
.featured-tld .price {
    border-radius: 0 0 1.25rem 1.25rem;
    background: #f9f9f9 !important;
    color: #555 !important;
}

/* TLD badges */
.tld-row .badge {
    text-transform: uppercase;
    font-size: 0.6875rem;
    padding: 0.25em 0.6em;
}

/* Category filter badges */
.tld-filters {
  margin-bottom: 1rem;
}

.tld-filters .badge {
  font-size: 0.8125rem !important;
  padding: 0.4rem 0.875rem !important;
  border-radius: 9999px;
  margin: 0.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  display: inline-block !important;
}

.tld-filters .badge-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--vh-text-secondary);
  border: 1px solid var(--vh-border);
}

.tld-filters .badge-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--vh-text-primary);
}

.tld-filters .badge-primary,
.tld-filters .badge.active {
  background: var(--vh-brand-400);
  color: #fff;
  border: 1px solid var(--vh-brand-400);
}

.tld-filters .badge-warning {
  background: var(--vh-warning);
  color: #fff;
  border: 1px solid var(--vh-warning);
}

.tld-filters .badge-warning:hover {
  background: #d97706;
  color: #fff;
}

html.light .tld-filters .badge-secondary {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #e2e8f0;
}

html.light .tld-filters .badge-secondary:hover {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

html.light .tld-filters .badge-primary,
html.light .tld-filters .badge.active {
  background: var(--vh-brand-400) !important;
  color: #fff !important;
}

html.light .tld-filters .badge-warning {
  background: var(--vh-warning) !important;
  color: #fff !important;
}

/* Hero search banner */
.domain-checker-container {
  margin-bottom: 2rem;
}

.domain-checker-bg {
  background: linear-gradient(135deg, var(--vh-brand-800) 0%, var(--vh-brand-700) 50%, var(--vh-brand-600) 100%);
  border-radius: 1.25rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--vh-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.domain-checker-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.domain-checker-bg .form-control {
  border-radius: 0.75rem 0 0 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.domain-checker-bg .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.domain-checker-bg .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--vh-brand-400);
  box-shadow: none;
}

.domain-checker-bg .btn-primary {
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  height: 100%;
}

.domain-checker-bg .input-group {
  flex-wrap: nowrap;
}

.domain-checker-bg .input-group-btn,
.domain-checker-bg .input-group-append {
  display: flex;
}

.domain-checker-bg .input-group-btn .btn,
.domain-checker-bg .input-group-append .btn {
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

html.light .domain-checker-bg {
  background: linear-gradient(135deg, #0B0F19 0%, #172033 50%, #1e2a45 100%);
}

html.light .domain-checker-bg .form-control {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

html.light .domain-checker-bg .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Domain pricing table */
.domain-pricing {
  margin-top: 1rem;
}

.domain-pricing .bg-white {
  background: var(--vh-brand-800) !important;
  border: 1px solid var(--vh-border);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.tld-pricing-header {
  background: rgba(255, 255, 255, 0.03) !important;
  border: none !important;
  color: var(--vh-text-muted) !important;
  font-size: 0.8125rem;
  font-weight: 500;
}

.tld-pricing-header .tld-column {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--vh-text-muted);
}

.tld-pricing-header .col-md-8 {
  border-left: none !important;
}

.tld-pricing-header .col-md-8 .col-4,
.tld-pricing-header .col-md-8 .col-xs-4 {
  color: var(--vh-text-muted) !important;
  padding: 0.75rem 1rem;
  text-align: left !important;
}

.domain-pricing .two-row-center {
  border-right: none !important;
}

.domain-pricing .tld-pricing-header .col-xs-2,
.domain-pricing .tld-pricing-header .col-sm-2,
.domain-pricing .tld-pricing-header .col-xs-4,
.domain-pricing .tld-pricing-header .col-sm-4 {
  border-bottom: 2px solid var(--vh-brand-400) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 0 !important;
}

.domain-pricing .tld-pricing-header div:nth-child(odd) {
  border-color: var(--vh-brand-400) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Pricing rows */
.tld-row {
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: background 0.15s ease;
}

.tld-row:last-child {
  border-bottom: none !important;
}

.tld-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tld-row .col-md-4.tld-column,
.tld-row > .col-md-4 {
  color: var(--vh-text-primary) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.25rem 1rem;
  text-align: left;
  margin: 0;
}

.tld-row .col-md-8 {
  border-left: none !important;
}

.tld-row .col-md-8 .col-4,
.tld-row .col-md-8 .col-xs-4 {
  padding: 0.25rem 1rem;
  color: var(--vh-text-secondary);
  font-size: 0.875rem;
  text-align: left;
}

/* Sale/promo badges in pricing table */
.tld-sale-badge,
.tld-promo-price {
  background: rgba(16, 185, 129, 0.12);
  color: var(--vh-success);
  border-radius: 9999px;
  font-size: 0.6875rem;
  padding: 0.2em 0.5em;
  font-weight: 500;
}

.tld-row.no-tlds {
  color: var(--vh-text-muted);
  padding: 2rem;
  text-align: center;
}

/* Light mode pricing */
html.light .tld-pricing-header {
  background: #f8fafc !important;
}

html.light .tld-pricing-header .tld-column,
html.light .tld-pricing-header .col-4 {
  color: #64748b !important;
}

html.light .tld-pricing-header .col-md-8 {
  border-left: none !important;
}

html.light .domain-pricing .bg-white {
  background: #fff !important;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.06);
}

html.light .domain-pricing .tld-pricing-header .col-xs-2,
html.light .domain-pricing .tld-pricing-header .col-sm-2,
html.light .domain-pricing .tld-pricing-header .col-xs-4,
html.light .domain-pricing .tld-pricing-header .col-sm-4 {
  border-bottom-color: var(--vh-brand-400) !important;
  background: #f8fafc !important;
}

html.light .domain-pricing .tld-pricing-header div:nth-child(odd) {
  border-color: var(--vh-brand-400) !important;
  background: #f1f5f9 !important;
}

html.light .tld-row {
  border-bottom-color: #e2e8f0 !important;
}

html.light .tld-row:hover {
  background: #f9fafb !important;
}

html.light .tld-row .col-md-4 {
  color: #0f172a !important;
}

html.light .tld-row .col-md-8 {
  border-left-color: #f1f5f9;
}

html.light .tld-row .col-4 {
  color: #334155 !important;
}

/* ============================================
   Domain Renewals Page
   ============================================ */

/* Hide cart sidebar, full width body */
#order-standard_cart .cart-sidebar {
  display: none;
}

#order-standard_cart > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#order-standard_cart .cart-body {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.page-configureproduct .container,
.page-configureproduct #main-body > .container {
  max-width: 1440px !important;
}

/* Renewal layout: main + summary side by side */
#order-standard_cart .secondary-cart-body {
  float: left;
  width: 68%;
  padding-right: 1.5rem;
}

#order-standard_cart .secondary-cart-sidebar {
  float: right;
  width: 32%;
  padding-left: 0;
}

/* Page title */
#order-standard_cart .header-lined h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--vh-text-primary);
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Search filter */
.domain-renewals-filter {
  background: var(--vh-surface) !important;
  border: 1px solid var(--vh-border) !important;
  border-radius: 0.75rem !important;
  color: var(--vh-text-primary) !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 1rem !important;
  width: 250px !important;
}

/* Renewal items container */
.domain-renewals,
.service-renewals {
  background: var(--vh-brand-800) !important;
  border: 1px solid var(--vh-border) !important;
  border-top: none !important;
  border-radius: 1.25rem !important;
  overflow: hidden;
}

/* Individual renewal item */
.domain-renewals .domain-renewal,
.service-renewals .service-renewal {
  background: transparent !important;
  border-bottom: 1px solid var(--vh-border) !important;
  padding: 1.25rem 1.5rem !important;
}

.domain-renewals .domain-renewal:nth-child(even),
.service-renewals .service-renewal:nth-child(even) {
  background: rgba(255, 255, 255, 0.02) !important;
}

.domain-renewals .domain-renewal:last-child,
.service-renewals .service-renewal:last-child {
  border-bottom: none !important;
}

/* Domain name */
.domain-renewals .domain-renewal h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--vh-text-primary);
  margin: 0 0 0.25rem 0;
}

/* Expiry text */
.domain-renewals .domain-renewal p {
  font-size: 0.8125rem;
  color: var(--vh-text-secondary);
  margin: 0 0 0.75rem 0;
}

/* Select dropdown */
.domain-renewals .select-renewal-pricing {
  background: var(--vh-surface) !important;
  border: 1px solid var(--vh-border) !important;
  border-radius: 0.75rem !important;
  color: var(--vh-text-primary) !important;
  font-size: 0.8125rem !important;
  padding: 0.5rem 0.75rem !important;
}

/* Labels inside form */
.domain-renewals .control-label {
  font-size: 0.8125rem !important;
  color: var(--vh-text-muted) !important;
  font-weight: 500;
}

/* Add to cart button */
.btn-add-renewal-to-cart {
  border-radius: 9999px !important;
  font-size: 0.8125rem !important;
  padding: 0.4rem 1.25rem !important;
}

/* Order summary sidebar */
#order-standard_cart .order-summary {
  background: var(--vh-brand-800) !important;
  border: 1px solid var(--vh-border) !important;
  border-radius: 1.25rem !important;
  overflow: hidden;
}

#order-standard_cart .order-summary h2 {
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--vh-text-primary) !important;
  background: transparent !important;
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid var(--vh-border);
}

#order-standard_cart .summary-container {
  background: transparent !important;
  color: var(--vh-text-secondary) !important;
  font-size: 0.8125rem !important;
  padding: 1rem 1.25rem !important;
}

#order-standard_cart .order-summary .product-name {
  color: var(--vh-text-primary) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
}

#order-standard_cart .order-summary .summary-totals {
  border-color: var(--vh-border) !important;
}

#order-standard_cart .order-summary .total-due-today .amt {
  color: var(--vh-text-primary) !important;
  font-size: 1.5rem !important;
  font-weight: 600;
}

#order-standard_cart .order-summary .loader {
  color: var(--vh-text-muted) !important;
}

/* Cart button */
#btnGoToCart {
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 1.5rem !important;
  margin-top: 1rem;
}

/* Light mode */
html.light .domain-renewals,
html.light .service-renewals {
  background: #fff !important;
  border-color: #e2e8f0 !important;
}

html.light .domain-renewals .domain-renewal,
html.light .service-renewals .service-renewal {
  border-bottom-color: #f1f5f9 !important;
}

html.light .domain-renewals .domain-renewal:nth-child(even),
html.light .service-renewals .service-renewal:nth-child(even) {
  background: #f9fafb !important;
}

html.light .domain-renewals .domain-renewal h3 {
  color: #0f172a;
}

html.light .domain-renewals .domain-renewal p {
  color: #475569;
}

html.light .domain-renewals .select-renewal-pricing {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light .domain-renewals .control-label {
  color: #64748b !important;
}

html.light .domain-renewals-filter {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light #order-standard_cart .order-summary {
  background: #fff !important;
  border-color: #e2e8f0 !important;
}

html.light #order-standard_cart .order-summary h2 {
  color: #0f172a !important;
  border-bottom-color: #e2e8f0;
}

html.light #order-standard_cart .summary-container {
  color: #475569 !important;
}

html.light #order-standard_cart .order-summary .product-name {
  color: #0f172a !important;
}

html.light #order-standard_cart .order-summary .summary-totals {
  border-color: #e2e8f0 !important;
}

html.light #order-standard_cart .order-summary .total-due-today .amt {
  color: #0f172a !important;
}

/* ── Mobile Responsiveness ── */
@media (max-width: 1024px) {
  .opc-layout { flex-direction: column; }
  .opc-main { width: 100% !important; }
  .opc-sidebar { width: 100% !important; position: static !important; max-height: none !important; overflow-y: visible !important; }
}

@media (max-width: 768px) {
  #order-standard_cart .cart-body { padding: 0.75rem; }
  .opc-section { border-radius: 0.75rem; }
  .opc-section-header { padding: 0.75rem 1rem; }
  .opc-section-body { padding: 0 1rem 1rem; }
  .opc-product-row { grid-template-columns: 1fr; }
  .opc-cycles { grid-template-columns: repeat(2, 1fr) !important; }
  .opc-config-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .opc-config-toggles-row { grid-template-columns: repeat(2, 1fr) !important; }
  .opc-config-selects-row { grid-template-columns: 1fr !important; }
  .opc-saved-items-grid { grid-template-columns: 1fr !important; }
  .opc-actions { flex-direction: column; }
  .opc-btn-finalize { width: 100%; }
  .opc-btn-addmore { width: 100%; justify-content: center; }
  .cpd-tabs { flex-direction: column; }
  .cpd-input-row { flex-direction: column; }
  .cpd-tld-input, .cpd-tld-select { width: 100%; }
  .spotlight-tlds-container { grid-template-columns: repeat(4, 1fr); }
  .cfd-addons-grid { grid-template-columns: 1fr; }
  .cfd-ns-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .opc-cycles { grid-template-columns: 1fr !important; }
  .opc-config-cards { grid-template-columns: 1fr !important; }
  .opc-config-toggles-row { grid-template-columns: 1fr !important; }
  .opc-config-selects-row { grid-template-columns: 1fr !important; }
  .opc-config-grouped-row { grid-template-columns: 1fr !important; }
  .opc-saved-items-grid { grid-template-columns: 1fr !important; }
  .opc-product-row { grid-template-columns: 1fr !important; }
  .spotlight-tlds-container { grid-template-columns: repeat(2, 1fr) !important; }
  .cfd-ns-grid { grid-template-columns: 1fr !important; }
  .cfd-addons-grid { grid-template-columns: 1fr !important; }
}
