/* MIGRA – Standard Cart polish to match homepage cards */

:root{
  --mh-grad-a:#6C3BFF;
  --mh-grad-b:#A23CFF;
  --mh-grad-c:#FF5D8F;
  --mh-deep:#0f1427;
  --mh-ink:#eaf0ff;
  --mh-muted:#9aa6c9;
}

.mh-plan-grid{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
}

.mh-col{
  width:100%;
}
@media (min-width: 576px){ .mh-col{ width:calc(50% - 14px);} }
@media (min-width: 992px){ .mh-col{ width:calc(25% - 21px);} }

.mh-plan{
  display:flex;
  flex-direction:column;
  min-height: 540px;
  border-radius:18px;
  padding:28px 24px;
  background: linear-gradient(165deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%), #0c1023;
  box-shadow: 0 18px 40px rgba(6,10,30,.4);
  border:1px solid rgba(255,255,255,.06);
  color: var(--mh-ink);
}

.mh-plan--featured{
  position:relative;
  outline: 2px solid rgba(255,255,255,.08);
}
.mh-badge{
  position:absolute;
  top:14px;
  right:14px;
  background: linear-gradient(135deg,var(--mh-grad-a), var(--mh-grad-c));
  color:#fff;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:600;
}

.mh-title{
  font-weight:700;
  font-size:20px;
  margin:0 0 16px 0;
}

.mh-price{
  margin: 6px 0 16px;
  font-weight:800;
  font-size:30px;
  display:flex;
  align-items:flex-end;
  gap:6px;
}
.mh-price small{
  font-size:14px;
  font-weight:600;
  color: var(--mh-muted);
  margin-bottom:6px;
}

.mh-desc{
  color: var(--mh-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.mh-features{
  margin: 2px 0 14px;
  padding-left: 20px;
}
.mh-features li{
  margin: 6px 0;
}

.mh-btn{
  margin-top: auto; /* stick button to bottom */
  display:block;
  width:100%;
  border:none;
  border-radius:12px;
  padding:12px 16px;
  font-weight:700;
  color:#fff;
  text-align:center;
  background: linear-gradient(135deg, var(--mh-grad-a), var(--mh-grad-c));
  transition: transform .08s ease, box-shadow .2s ease;
}
.mh-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,93,143,.35);
  color:#fff;
  text-decoration:none;
}

/* Tighten the section heading area of standard_cart */
.main-content .products .products-header,
.products-hero,
#order-standard_cart .products .product {
  background: transparent !important;
  border:none !important;
  box-shadow:none !important;
}
/* =========================
   MIGRA – STANDARD_CART FIX
   4-up grid, equal-height cards, modern styling
   ========================= */

/* 1) Make the product grid a flexible row with 4 columns on desktop */
#order-standard_cart .products .row-eq-height {
  display: flex;
  flex-wrap: wrap;
  gap: 24px; /* space between cards */
}

/* WHMCS renders columns as .col-md-6; override to 25% width on large screens */
#order-standard_cart .products .row-eq-height > .col-md-6 {
  flex: 1 1 calc(25% - 24px);
  max-width: calc(25% - 24px);
}

/* Tablet: 2 columns */
@media (max-width: 991.98px) {
  #order-standard_cart .products .row-eq-height > .col-md-6 {
    flex: 1 1 calc(50% - 24px);
    max-width: calc(50% - 24px);
  }
}

/* Mobile: 1 column */
@media (max-width: 575.98px) {
  #order-standard_cart .products .row-eq-height > .col-md-6 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* 2) Card styling + equal height */
#order-standard_cart .product {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #101625 0%, #0e1321 100%);
  box-shadow: 0 20px 40px rgba(3, 10, 26, 0.35);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Title */
#order-standard_cart .product header {
  margin-bottom: 12px;
}

#order-standard_cart .product header > span {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

/* Price block – more prominent */
#order-standard_cart .product .product-pricing {
  margin: 6px 0 12px;
  color: #fff;
}

#order-standard_cart .product .product-pricing .price {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

/* Description grows to push footer down */
#order-standard_cart .product .product-desc {
  flex: 1 1 auto;
  margin-bottom: 14px;
  color: #d9deff;
}

#order-standard_cart .product .product-desc p {
  margin-bottom: 10px;
  color: #cfd6ff;
}

/* Feature list */
#order-standard_cart .product .product-desc ul {
  padding-left: 18px;
  margin: 0;
}

#order-standard_cart .product .product-desc li {
  color: #cfd6ff;
  margin: 6px 0;
}

/* Footer sits at bottom thanks to flex column */
#order-standard_cart .product footer {
  margin-top: auto;
}

/* CTA button full width + gradient brand style */
#order-standard_cart .product .btn-order-now {
  width: 100%;
  border: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(90deg, #6C3BFF 0%, #A23CFF 50%, #FF5D8F 100%);
  box-shadow: 0 8px 20px rgba(108, 59, 255, 0.35);
}

#order-standard_cart .product .btn-order-now:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

/* Setup fee tiny + muted */
#order-standard_cart .product footer small,
#order-standard_cart .product footer .text-muted {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.65) !important;
  font-size: 12px;
}

/* Make the “header-lined” (page heading) breathe a bit */
#order-standard_cart .header-lined {
  margin-bottom: 22px;
}

#order-standard_cart .header-lined h1 {
  margin-bottom: 6px;
}

/* Sidebar spacing refinement so cards don’t slam into it */
#order-standard_cart .cart-sidebar.sidebar {
  margin-right: 16px;
}
/* ===== MIGRA — ORDERFORM PRICING GRID UPGRADE ===== */

/* Header sizing/tighten */
#order-standard_cart .header-lined h1 {
  font-size: clamp(24px, 2.4vw, 34px) !important;
  margin-bottom: 6px !important;
}
#order-standard_cart .header-lined p {
  color: #6b7280;
  margin-bottom: 18px !important;
}

/* Flatten WHMCS rows so we can control columns */
#order-standard_cart .products { position: relative; }
#order-standard_cart .products > .row { display: contents; }  /* flatten rows */

/* Make every item flex and same height */
#order-standard_cart .products [class*="col-"] {
  display: flex !important;
}
#order-standard_cart .products .product {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Columns (4 / 3 / 2 / 1) */
@media (min-width: 1200px) {
  #order-standard_cart .products [class*="col-"] { flex: 0 0 25%; max-width: 25%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #order-standard_cart .products [class*="col-"] { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  #order-standard_cart .products [class*="col-"] { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 575.98px) {
  #order-standard_cart .products [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
}

/* Card look & feel */
#order-standard_cart .products .product {
  background: #0f172a; /* slate-900 */
  background: linear-gradient(180deg, #111827 0%, #0b1223 100%);
  color: #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(14,0,56,.10), 0 4px 12px rgba(14,0,56,.08);
  padding: 22px 20px;
  margin-bottom: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
#order-standard_cart .products .product:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(14,0,56,.14), 0 6px 16px rgba(14,0,56,.10);
}

/* Make header/desc/list/price/footer align & fill */
#order-standard_cart .products .product header { margin-bottom: 10px; }
#order-standard_cart .products .product header span {
  font-weight: 800; font-size: 1.05rem; letter-spacing: .2px;
}
#order-standard_cart .products .product .product-desc { margin-bottom: 8px; }
#order-standard_cart .products .product .product-desc p {
  color: #a1a6b2; margin-bottom: 10px !important; min-height: 2lh;
}

/* Features list -> checkmarks */
#order-standard_cart .products .product .product-desc ul {
  list-style: none; padding-left: 0; margin: 6px 0 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
#order-standard_cart .products .product .product-desc ul li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  color: #e5e7eb; line-height: 1.35;
}
#order-standard_cart .products .product .product-desc ul li:last-child { border-bottom: 0; }
#order-standard_cart .products .product .product-desc ul li .feature-value { display: none; }
#order-standard_cart .products .product .product-desc ul li::before {
  content: "✓"; font-weight: 800; font-size: .85rem;
  color: #7c3aed; background: rgba(124,58,237,.12);
  width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 999px; flex: 0 0 20px; margin-top: 2px;
}

/* Price block */
#order-standard_cart .products .product .product-pricing {
  margin-top: auto; margin-bottom: 12px; color: #c7cbd4; text-align: left;
}
#order-standard_cart .products .product .product-pricing .price {
  color: #7c3aed; font-weight: 800; font-size: 1.45rem;
}
#order-standard_cart .products .product .product-pricing small {
  display: inline-block; margin-top: 6px; color: #9aa0ae;
}

/* Order button styling to match site */
#order-standard_cart .products .product .btn-order-now {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: 0 !important; color: #fff !important;
  font-weight: 800; border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 10px 20px rgba(124,58,237,.25);
  transition: transform .15s, filter .15s;
}
#order-standard_cart .products .product .btn-order-now:hover {
  filter: brightness(1.06); transform: translateY(-1px);
}
#order-standard_cart .products .product .btn-order-now i { margin-right: 6px; }

/* Tweak qty text if shown */
#order-standard_cart .products .product header .qty {
  font-size: .85rem; font-weight: 600; color: #a3a8b6;
}

/* Fix dots that show up inside description copy */
#order-standard_cart .products .product .product-desc p br + •,
#order-standard_cart .products .product .product-desc p::marker { content: none; }
/* Force product cards to 4 per row on desktop */
#order-standard_cart .products .col-md-6 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
}

/* 3 per row on large tablets */
@media (max-width: 1199.98px) {
  #order-standard_cart .products .col-md-6 {
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
  }
}

/* 2 per row on small tablets */
@media (max-width: 991.98px) {
  #order-standard_cart .products .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* 1 per row on mobile */
@media (max-width: 575.98px) {
  #order-standard_cart .products .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
/* MIGRA — order form products grid (4/3/2/1) */
#order-standard_cart .mh-cart-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* collapse Bootstrap column sizing inside our grid */
#order-standard_cart .mh-cart-grid > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* equal-height cards */
#order-standard_cart .mh-cart-grid .product {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* responsive steps */
@media (max-width: 1199.98px) {
  #order-standard_cart .mh-cart-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
@media (max-width: 991.98px) {
  #order-standard_cart .mh-cart-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 575.98px) {
  #order-standard_cart .mh-cart-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== MIGRAHOSTING — Fix Standard Cart product grid ===== */

/* Make the package grid consistent */
.packages .col-md-3,
.packages .col-sm-6,
.packages .col-xs-12 {
  display: flex;               /* allow equal height children */
}

/* Equal height, tidy card */
.packages .package {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* Push the button/footer to the bottom */
.packages .package .package-footer,
.packages .package .text-center:last-child {
  margin-top: auto;
}

/* Desktop: force a clean 4-column grid with even gaps */
@media (min-width: 992px) {
  .packages.row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .packages.row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
  }
}

/* Tablet: 2 columns */
@media (min-width: 576px) and (max-width: 991.98px) {
  .packages.row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .packages.row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
  }
}

/* Mobile: 1 column with nice spacing */
@media (max-width: 575.98px) {
  .packages.row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .packages.row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
  }
}

/* Optional: tidy the little setup-fee label under the button */
.packages .package .price,
.packages .package small,
.packages .package .setup-fee {
  opacity: 0.8;
}
/* ===== MIGRAHOSTING — Fix Standard Cart product grid ===== */

/* Safety: if some theme made .row a flex with weird spacing, reset it */
.products .row { display: block; }

/* Equal-height product cards + footer pinned to bottom */
.products .product {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
}
.products .product .price,
.products .product .product-footer,
.products .product .text-center:last-child {
  margin-top: auto; /* push footer/button down */
}

/* Desktop: force 4 columns with even gaps */
@media (min-width: 992px) {
  .products .row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .products .row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
  }
}

/* Tablet: 2 columns */
@media (min-width: 576px) and (max-width: 991.98px) {
  .products .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .products .row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
  }
}

/* Mobile: 1 column */
@media (max-width: 575.98px) {
  .products .row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .products .row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
  }
}

/* Optional: tone down the tiny setup-fee line under the button */
.products .product small { opacity: 0.8; }

/* Force price to show and look like the homepage */
.products .product .price,
.products .product .price .amount,
.products .product .price span,
.products .product .price .price {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #fff !important;
  font-size: 32px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
}
.products .product .price .price-cycle,
.products .product .price .cycle,
.products .product .price .term {
  font-size: 14px !important;
  font-weight: 600 !important;
  opacity: .9 !important;
}
/* ===== MIGRAHOSTING — Make Standard Cart look like homepage cards ===== */

/* Card container (keep our grid from earlier) */
.products .product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg,#2d3142 0%, #1f2230 100%);
  box-shadow: 0 18px 35px rgba(0,0,0,.25);
  border: 2px solid rgba(172, 143, 255, 0.10);
}

/* Title */
.products .product .product-title,
.products .product h4,
.products .product h3 {
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin: 0 0 8px;
}

/* Big price block (from dynamic min price or Tagline) */
.products .product .mh-display-price { margin: 2px 0 10px; }
.products .product .mh-display-price .mh-amount {
  display: inline-block;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.products .product .mh-display-price .mh-amount .mh-cycle {
  font-size: 16px;
  font-weight: 700;
  opacity: .9;
  margin-left: 4px;
}

/* Description line under price */
.products .product > p {
  color: rgba(255,255,255,.95);
  margin: 8px 0 12px;
  font-weight: 600;
}

/* Feature list with green checks */
.products .product ul { margin: 10px 0 16px; padding: 0; list-style: none; }
.products .product ul li {
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
  color: rgba(255,255,255,.95);
}
.products .product ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  font-weight: 800;
  color: #35d48a; /* green check */
}

/* CTA button — gradient, full width */
.products .product .btn,
.products .product a.btn,
.products .product .order-button,
.products .product .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(90deg,#6C3BFF 0%, #FF5D8F 100%) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(108,59,255,.35);
  transition: transform .06s ease;
}
.products .product .btn:hover { transform: translateY(-1px); }

/* Tiny footnote under button (uses any existing small/setup-fee line) */
.products .product small,
.products .product .setup-fee,
.products .product .priceCycle {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: rgba(255,255,255,.85) !important;
}

/* Keep footer at bottom */
.products .product .product-footer,
.products .product .text-center:last-child { margin-top: auto; }

/* “Most Popular” badge */
.products .product .mh-badge {
  position: absolute;
  top: -12px; left: 18px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg,#C28BFF 0%, #8B7CFF 100%);
  box-shadow: 0 6px 16px rgba(139,124,255,.35);
}

/* Card edges like homepage (subtle border + shadow ring) */
.products .product { outline: 1px solid rgba(255,255,255,.06); }
.products .product:hover { outline-color: rgba(255,255,255,.12); }

/* Match grid spacing from earlier fix (kept for completeness) */
@media (min-width: 992px) {
  .products .row { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; margin: 0 !important; }
  .products .row > [class*="col-"] { float:none !important; width:auto !important; padding:0 !important; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .products .row { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .products .row > [class*="col-"] { float:none !important; width:auto !important; padding:0 !important; }
}
@media (max-width: 575.98px) {
  .products .row { display: grid !important; grid-template-columns: 1fr; gap: 16px; }
  .products .row > [class*="col-"] { float:none !important; width:auto !important; padding:0 !important; }
}
/* Make last paragraph look like the tiny footnote */
.products .product p:last-of-type {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  opacity: .9;
}
