/* ─── CloudHive SaaS Order Form - Unified Custom Styles ─── */

/* 1. Reset & Global Overrides for Configurator */
#order-standard_cart { font-family: inherit !important; }

/* Neutralize iCheck interference globally */
.iradio_square-blue, .icheckbox_square-blue, .iCheck-helper, .uniform-checker { 
    display: none !important; width: 0 !important; height: 0 !important; visibility: hidden !important; 
}

/* 2. Layout (Fluid & Responsive) */
.layout-custom {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .layout-custom { grid-template-columns: 1fr 340px; gap: 20px; }
}

@media (max-width: 992px) {
  .layout-custom { grid-template-columns: 1fr; }
  .sidebar-card-custom { position: static !important; width: 100%; margin-top: 20px; }
}

/* 3. Cards & Sections */
.card-custom {
  background: #fff;
  border: 1px dashed #d0cfe8;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}

.spec-box {
  background: #fff;
  border: 1px dashed #d0cfe8;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}
@media (max-width: 600px){ .spec-box { grid-template-columns: 1fr; } }
.spec-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #444;
  min-width: 0;
}
.spec-dot {
  flex: 0 0 auto;
  width: 6px; height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: #F5A623;
}
.spec-txt { overflow-wrap: anywhere; }
.spec-txt b { color: #1b1c1d; font-weight: 600; }

.section-custom { margin-bottom: 20px; }
.label-custom {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.section-divider-custom {
  border: none;
  border-top: 1px dashed #e8e7f5;
  margin: 4px 0 20px;
}

/* 4. Selectable Elements */
.billing-opt {
  border: 1px dashed #d0cfe8;
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  margin-bottom: 8px;
  transition: all .15s;
}
.billing-opt.active { border: 1.5px dashed #F5A623; background: rgba(245,166,35,.08); }

.grid3-custom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid4-custom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.opt-custom {
  border: 1px dashed #d0cfe8;
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  transition: all .15s ease-in-out;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.opt-custom:hover { border-color: #F5A623; background: rgba(245,166,35,.06); transform: translateY(-2px); }
.opt-custom.active { border: 1.5px dashed #F5A623; background: rgba(245,166,35,.08); box-shadow: 0 4px 15px -5px rgba(245,166,35,.2); }

.opt-icon-img { width: 32px; height: 32px; margin-bottom: 8px; object-fit: contain; }
.opt-icon { font-size: 24px; margin-bottom: 6px; line-height: 1; }
.flag-custom { font-size: 22px; margin-bottom: 6px; line-height: 1; display: block; }

.backup-row {
  border: 1px dashed #d0cfe8;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #fff;
}
.backup-row.active { border: 1.5px dashed #F5A623; background: rgba(245,166,35,.08); }

.check-custom {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1.5px solid #c0bfdf;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  font-size: 11px; color: transparent;
}
.backup-row.active .check-custom { background: #d98e00; border-color: #d98e00; color: #fff; }

/* 5. Floating Sidebar Summary */
.sidebar-card-custom {
  background: #fff;
  border: 1.5px dashed #F5A623;
  border-radius: 12px;
  padding: 1.25rem;
  align-self: start;
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  z-index: 100;
  transition: top 0.3s ease;
  box-shadow: 0 10px 30px -15px rgba(245,166,35,.1);
}

.ch-summary-premium-card {
    background: #ffffff !important;
    border: 1px solid #E7E7E7 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ch-summary-header {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 16px !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

/* 6. Stepper & Interactive Elements */
.ch-stepper { display: flex !important; align-items: center !important; gap: 8px !important; }
.ch-stepper-btn {
    width: 24px !important; height: 24px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    border-radius: 4px !important; background: rgba(245,166,35,.08) !important;
    color: #F5A623 !important; border: none !important; cursor: pointer !important;
    transition: all 0.2s !important; font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important; font-weight: 800 !important; padding: 0 !important; line-height: 1 !important;
}
.ch-stepper-btn:hover { background: #F5A623 !important; color: #ffffff !important; }

.ch-qty-input {
    width: 44px !important; height: 24px !important; padding: 0 !important;
    border: 1px dashed rgba(245,166,35,.4) !important; border-radius: 4px !important;
    background: #ffffff !important; text-align: center !important;
    font-family: 'Open Sans', sans-serif !important; font-size: 13px !important;
    font-weight: 700 !important; color: #F5A623 !important; outline: none !important;
}

.btn-main-custom {
  display: block; width: 100%;
  margin-top: 16px; padding: 13px;
  border: 1.5px dashed #F5A623; border-radius: 10px;
  background: transparent; color: #F5A623;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all .2s ease-in-out;
  font-family: inherit;
  text-transform: uppercase;
  text-align: center;
}
.btn-main-custom:hover { background: rgba(245,166,35,.10); border-color: #F5A623; color: #F5A623; transform: translateY(-1px); box-shadow: 0 0 16px rgba(245,166,35,.35), 0 4px 12px rgba(245,166,35,.15); }


/* ===== Responsive / adaptive (breakpoints only — desktop style unchanged) ===== */
@media (max-width: 900px) {
  .grid4-custom { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
  .grid4-custom { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  .layout-custom { gap: 16px !important; }
  .card-custom { padding: 1rem !important; }
  .billing-opt { width: 100% !important; }
}
@media (max-width: 380px) {
  .grid4-custom { grid-template-columns: 1fr 1fr !important; }
  .opt-name { font-size: 11px !important; }
}

/* ===== Premium backup row (checkbox config option) ===== */
.ch-backup-row { border: 2px dashed #d0cfe8; border-radius: 12px; padding: 16px; background: #f8f7fc; cursor: pointer; transition: all .2s ease; }
.ch-backup-row:hover { background: #f1f0fa; border-color: #b9b6e8; }
.ch-backup-row.active { border-color: #F5A623 !important; background: rgba(245,166,35,.08); }
.ch-backup-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ch-backup-info { display: flex; align-items: flex-start; gap: 12px; }
.ch-backup-check { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; border: 2px solid #d0cfe8; border-radius: 8px; background: #fff; transition: all .2s ease; }
.ch-backup-check i, .ch-backup-check svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity .2s ease; }
.ch-backup-row.active .ch-backup-check { background: #F5A623; border-color: #F5A623; }
.ch-backup-row.active .ch-backup-check i, .ch-backup-row.active .ch-backup-check svg { opacity: 1; }
.ch-backup-text { min-width: 0; }
.ch-backup-name { display: block; font-size: 14px; font-weight: 600; color: #1b1c1d; }
.ch-backup-desc { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #6b6f76; }
.ch-backup-price { font-size: 14px; font-weight: 600; color: #F5A623; white-space: nowrap; flex-shrink: 0; }
.ch-backup-sub { margin: 12px 0 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9a9da6; }

/* ===== Product config validation errors banner ===== */
.ch-validation-errors { background: #fef2f2; border: 1.5px dashed #f5a3a3; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; color: #b91c1c; }
.ch-validation-errors ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }

/* Empty option lucide icon (monitor-x) sizing/alignment */
.opt-icon-lucide { display:inline-block; margin-bottom: 8px; }
.opt-icon-lucide svg { width: 26px; height: 26px; }

/* optiontype 4 — quantity row */
.ch-qty-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px dashed #d0cfe8;border-radius:12px;background:#fff;}
.ch-qty-left{display:flex;align-items:center;gap:12px;min-width:0;}
.ch-qty-ico{width:40px;height:40px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border:1px dashed #d0cfe8;background:#fff;border-radius:10px;color:#9a9da6;}
.ch-qty-ico svg{width:20px;height:20px;}
.ch-qty-name{display:block;font-size:13px;font-weight:600;color:#1b1c1d;}
.ch-qty-unit{display:block;font-size:11px;color:#888;margin-top:2px;}
.ch-qty-stepper{width:80px;height:42px;text-align:center;border:1px dashed #d0cfe8;border-radius:9px;background:#fff;font-size:14px;font-weight:600;color:#1b1c1d;outline:none;}
.ch-qty-stepper:focus{border-style:solid;border-color:#F5A623;}

/* Prorata note */
.chx-prorata-note {
  font-size: 11px;
  color: #58B19F;
  text-align: left;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Hide native number steppers for styled quantity fields */
.ch-qty-stepper{
  -moz-appearance:textfield;
  appearance:textfield;
}
.ch-qty-stepper::-webkit-outer-spin-button,
.ch-qty-stepper::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
