/* Floating wrapper (prawy dół) */
.mgcr-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  top: auto;
  z-index: 99999;
  font-family: inherit;
}

/* Przycisk (CTA) */
.mgcr-fab{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  border: 0;
  background: #ED1C24;
  color: #fff;
  font-weight: 900;
  cursor: pointer;

  /* większy niż było */
  padding: 16px 18px;
  font-size: 16px;
  min-height: 52px;

  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.mgcr-fab-text{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.mgcr-fab-title{
  font-size: 16px;
}

.mgcr-fab-sub{
  font-size: 12px;
  font-weight: 800;
  opacity: .92;
}

/* Badge */
.mgcr-badge{
  font-size: 12px;
  font-weight: 900;
  background: #ffffff;
  color: #ED1C24;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

/* Panel domyślnie schowany */
.mgcr-panel{
  position: absolute;
  right: 0;
  bottom: 58px;
  top: auto;

  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  overflow: hidden;

  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}

.mgcr-float.is-open .mgcr-panel{
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mgcr-panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.mgcr-title{
  font-weight: 900;
  font-size: 14px;
}

.mgcr-close{
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Kalkulator */
.mgcr-calculator{
  padding: 12px;
}

.mgcr-row{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.mgcr-row label{
  font-size: 13px;
  font-weight: 700;
}

.mgcr-row input{
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.mgcr-btn{
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #ED1C24;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.mgcr-result{
  margin-top: 12px;
}

.mgcr-best{
  padding: 10px;
  background: #f7f7f7;
  border-radius: 10px;
  margin-bottom: 10px;
}

.mgcr-table{
  width: 100%;
  border-collapse: collapse;
}

.mgcr-table th,
.mgcr-table td{
  border-bottom: 1px solid #eee;
  padding: 8px;
  text-align: left;
  font-size: 14px;
}

.mgcr-error{
  padding: 10px;
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 10px;
}

.mgcr-note{
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  line-height: 1.35;
}

/* Mobile */
@media (max-width: 640px){
  .mgcr-float{ right: 12px; bottom: 12px; }
  .mgcr-panel{
    width: 340px;
    max-width: calc(100vw - 24px);
    bottom: 58px;
  }
}
