:root{
  --mcc-blue:#0a2e8a;
  --mcc-red:#e53935;
  --mcc-red-d:#cf2f2b;
  --mcc-border:#e7e8ef;
  --mcc-muted:#7a8399;
}

.mcc-card{
  max-width:860px;
  margin:-20px auto;
  padding:0;
  border-radius:18px;
  border:1px solid var(--mcc-border);
  box-shadow:0 10px 28px rgba(20,20,40,.3);
  background:#fff;
  overflow:hidden;
  font-family:'Open Sans', sans-serif;
}

.mcc-hero{
  padding:18px 18px 14px;
  background:var(--mcc-blue);
  color:#fff;
}

.mcc-hero-title{
  font-weight:800;
  font-size:22px;
  letter-spacing:.2px;
  line-height:1.15;
}

.mcc-hero-sub{
  opacity:.95;
  font-size:13px;
  margin-top:6px;
  line-height:1.35;
}

.mcc-body{
  padding:16px;
}

.mcc-field label{
  display:block;
  font-size:12px;
  color:#4c5264;
  margin:10px 0 6px;
}

.mcc-input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid #dfe3ef;
  font-size:14px;
  outline:none;
  background:#fff;
  -webkit-appearance:none;
  appearance:none;
  font-family:'Open Sans', sans-serif;
}

.mcc-input:focus{
  border-color:#8aa0ff;
  box-shadow:0 0 0 3px rgba(138,160,255,.18);
}

.mcc-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.mcc-col{
  flex:1 1 260px;
  min-width:220px;
}

.mcc-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.mcc-btn{
  border:0;
  border-radius:14px;
  padding:14px 18px;
  font-weight:800;
  cursor:pointer;
  font-size:16px;
  font-family:'Open Sans', sans-serif;
}

.mcc-primary{
  background:var(--mcc-red);
  color:#fff;
  box-shadow:0 12px 26px rgba(229,57,53,.25);
}

.mcc-primary:hover{
  background:var(--mcc-red-d);
}

.mcc-primary:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.mcc-alert{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff6f3;
  border:1px solid #ffd3c6;
  color:#7a2b18;
  font-size:13px;
}

.mcc-result{
  margin-top:18px;
  border-radius:18px;
  border:1px solid #eef0f6;
  overflow:hidden;
}

.mcc-result-top{
  padding:16px;
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
}

.mcc-badge{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  color:#0b6fd3;
  background:#eaf3ff;
  border:1px solid #cfe5ff;
  border-radius:999px;
  padding:4px 10px;
}

.mcc-range{
  font-size:26px;
  font-weight:800;
  margin-top:10px;
  color:#111827;
}

.mcc-meta{
  font-size:12px;
  color:var(--mcc-muted);
  margin-top:6px;
}

.mcc-cta{
  padding:16px;
  border-top:1px solid #eef0f6;
  display:flex;
  justify-content:center;
}

/* ===== MODAL ===== */

.mcc-modal{
  position:fixed;
  inset:0;
  z-index:99999999;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow:auto;
  padding:235px 12px 20px;   /* space for sticky header */
  -webkit-overflow-scrolling:touch;
  box-sizing:border-box;
}

.mcc-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(20,20,40,.45);
}

.mcc-modal-panel{
  position:relative;
  width:min(620px,94vw);
  max-height:calc(100dvh - 240px);
  background:#fff;
  border-radius:18px;
  border:1px solid var(--mcc-border);
  box-shadow:0 18px 60px rgba(20,20,40,.25);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  margin:0 auto;
}

.mcc-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid #eef0f6;
  background:#fff;
}

.mcc-modal-title{
  font-weight:800;
  font-size:16px;
}

.mcc-x{
  border:0;
  background:transparent;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  padding:4px 10px;
}

.mcc-modal-body{
  padding:14px 16px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  flex:1 1 auto;
}

.mcc-small{
  font-size:12px;
  color:var(--mcc-muted);
  margin-left:10px;
}

.mcc-muted{
  color:var(--mcc-muted);
}

.mcc-actions-modal{
  margin-top:12px;
  position:sticky;
  bottom:0;
  background:#fff;
  padding:12px 0 10px;
  border-top:1px solid #eef0f6;
  z-index:2;
}

/* lock background when modal open */

html.mcc-modal-open,
body.mcc-modal-open{
  overflow:hidden !important;
}

/* ===== TABLET ===== */

@media (max-width:1024px){

  .mcc-modal{
    padding:180px 12px 16px;
  }

  .mcc-modal-panel{
    max-height:calc(100dvh - 176px);
  }

}

/* ===== MOBILE ===== */

@media (max-width:640px){

  .mcc-modal{
    padding:105px 10px 14px;
  }

  .mcc-modal-panel{
    width:94vw;
    max-height:calc(100dvh - 120px);
  }

  .mcc-modal-body{
    max-height:none;
  }

  .mcc-actions-modal{
    padding:12px 0 12px;
  }

}
/* Improve Chrome date picker usability */

.mcc-input[type="date"]{
  min-height:48px;
  cursor:pointer;
}

/* Chrome / Edge calendar icon size */
.mcc-input[type="date"]::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:1;
  transform:scale(1.35);
  transform-origin:right center;
  padding:4px;
}

/* Make entire field clickable */
.mcc-input[type="date"]::-webkit-datetime-edit,
.mcc-input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.mcc-input[type="date"]::-webkit-datetime-edit-text,
.mcc-input[type="date"]::-webkit-datetime-edit-month-field,
.mcc-input[type="date"]::-webkit-datetime-edit-day-field,
.mcc-input[type="date"]::-webkit-datetime-edit-year-field{
  cursor:pointer;
}