/* Chrome, Safari, Edge, Opera */
.ctrl input[type="number"]::-webkit-outer-spin-button,
.ctrl input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.ctrl input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield; 
}

#koszt, #czas , #liczba, #obrot {
    border-color:white;
}

.emp-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px clamp(12px, 4vw, 24px); 
}

.emp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.emp-grid h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0.25em 0 0.5em;
  font-weight: 800;
}

.emp-grid .lead {
  color: #475569;
  max-width: 60ch;
}

.emp-card {
  background: #2e3640;
  border-radius: 18px;
  color: white;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 16px;
}

.emp-card h2 {
  margin: 0 0 3%;
  font-size: 18px;
  font-weight: 700;
  color:white;
}

.hint {
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 12px;
}

.row {
  margin: 18px 0;
}

.row label {
  display: block;
  font-size: 14px;
  color: #d5d8dc;
  margin-bottom: 8px;
  font-weight: 600;
  padding-top:3%;
}

.ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom:8% !important;
}

.ctrl input[type="number"] {
  flex: 1;
  background: transparent;
  border: 0;
  border: 3px solid #3a4451;
  color: white;
  padding: 10px 8px;
  font-size: 22px;
  font-weight: 800;
}

.unit {
  font-weight: 700;
  opacity: 0.75;
}

.spin {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.spin button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #3a4451;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.emp-submit {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #ff3b2f;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 18px;
  margin-top: 8px;
  cursor: pointer;
}

.footnote {
  opacity: 0.7;
  font-size: 12px;
  margin-top: 8px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 18, 24, 0.55);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 2147483646; 
}

.overlay.active {
  display: grid;
}

.modal {
  background: #2e3640;
  color: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  max-width: 680px;
  width: 100%;
  padding: 28px 28px 24px;
  position: relative;
  padding-top: 56px;    
  padding-bottom: 0;
  z-index: 2147483647;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 26px;
  cursor: pointer;
}

.modal .price {
  font-size: 46px;
  font-weight: 900;
  text-align: center;
  margin: 8px 0 2px;
}

.brand {
  text-align: center;
  color: white;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 22px;
}

#calc-red-text-strong {
    color: #ff3b2f;
}

.lead , .hint {
    line-height:26px;
}

.emp-intro{
  position: sticky;
  top: 16px;        
  align-self: start;
  z-index: 1;       
}

body.admin-bar .emp-intro,
body.admin-bar .emp-card{
  top: 48px;
}

.emp-intro { 
  position: sticky; 
  top: calc(80px + 16px); 
  align-self:start; 
  z-index: 1; 
}

.emp-card { 
  position: sticky; 
  top: calc(80px + 16px); 
}

body.admin-bar .emp-intro,
body.admin-bar .emp-card{
  top: calc(80px + 16px + 32px); 
}

.modal-badge{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%); 
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 2;
}

.modal-badge img{
  width: 42px;         
  height: 42px;
  object-fit: contain;  
}

.modal h3 { 
    font-size: 22px; 
    color:white;
    text-align:center;
    margin-bottom: 10px;
    margin-top:0;
}

.overlay.active {
  display: grid;
  align-items: flex-start;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + var(--overlay-top)) 12px
           calc(env(safe-area-inset-bottom, 0px) + 12px);
}

.modal{
  width: min(640px, calc(100vw - 24px));
  max-height: calc(
      100vh
      - env(safe-area-inset-top, 0px)
      - env(safe-area-inset-bottom, 0px)
      - var(--overlay-top)
      - 24px 
  );
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 16px 16px 18px;
  padding-top: 76px;                
  border-radius: 18px;
}

.modal-badge {
  width: 60px; height: 60px;
  transform: translate(-50%, -20%); 
}

.modal-badge img{ width: 34px; height: 34px; }
.modal h3{ font-size: clamp(18px, 4.6vw, 22px); margin: 6px 0 8px; }
.modal .price{ font-size: clamp(28px, 9vw, 40px); line-height: 1.05; }

  :root{ --overlay-top: 96px; }    
  .modal{ padding: 14px 14px 16px; padding-top: 82px; border-radius: 16px; }
  .modal-badge{ width: 56px; height: 56px; transform: translate(-50%, 25%); }
  .modal-badge img{ width: 30px; height: 30px; }
}

.modal .wpcf7-form{
  display: flex;
  flex-direction: column;
}

.modal .wpcf7-form .row{
  display: contents;
}

.modal .wpcf7-form .wpcf7-response-output{
  order: 20;             
  margin: 10px 0 0;       
}

.modal .wpcf7-form .col-md-6{
  order: 30;
}

.emp-wrap .spin button,
.emp-wrap .submit,
.emp-wrap .close {
  touch-action: manipulation; 
}

.wpcf7-spinner {
    margin-top:10px;
}

/* Info box */

.emp-card .hint-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.emp-card .hint-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #cbd5e1;              
  text-decoration: none;  
  cursor: pointer;
  font-size: 12px;
}

.emp-card .hint-icon{
  width: clamp(18px, 2.2vw, 22px);
  height: auto;
  flex: 0 0 auto;
}

.emp-card .hint-tooltip{
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(42ch, 88vw);         
  padding: 12px 14px;
  border-radius: 12px;
  background: #2b333c;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  font-size: clamp(12px, 1.2vw, 14px); 
  line-height: 1.45;
  white-space: pre-line;           
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.emp-card .hint-tooltip::before{
  content: "";
  position: absolute;
  top: -6px;
  left: 24px;
  border: 6px solid transparent;
  border-bottom-color: #2b333c;
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,.2));
}

.emp-card .hint-trigger:hover + .hint-tooltip,
.emp-card .hint-trigger:focus + .hint-tooltip,
.emp-card .hint-more:focus-within .hint-tooltip, 
.emp-card .hint-tooltip.is-open{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.emp-card .hint-tooltip.follow,
.emp-card .hint-tooltip.leaving{
  position: fixed;
  left: 0; top: 0;
  transform: none;
  pointer-events: none;
  z-index: 100000;
  transition: opacity .12s ease, visibility .12s;
}

.emp-card .hint-tooltip.follow::before,
.emp-card .hint-tooltip.leaving::before{
  display: none;
}

.emp-card .hint-tooltip.follow {
  position: fixed;      
  left: 0; top: 0;      
  transform: none;
  pointer-events: none; 
  z-index: 9999;
}
.emp-card .hint-tooltip.follow::before{
  display: none;        
}

.emp-card .hint-tooltip {
  z-index: 100000 !important;
}
.emp-card .hint-tooltip.follow {
  z-index: 100000 !important; 
}

.emp-calculator .row:nth-of-type(2) .hint-trigger{
  display: grid;                    
  grid-template-columns: auto 1fr;
  align-items: start;               
  gap: 8px;
  text-align: left;         
  padding-top:2%;
}

.emp-calculator .row:nth-of-type(2) .hint-trigger h2{
  margin: 0;                        
  line-height: 1.25;
  text-align: left;
  padding-bottom:5%;
}

.emp-calculator .row:nth-of-type(2) .hint-icon{
  align-self: start;                
  margin-top: .15em;                
}

.emp-calculator .row:nth-of-type(2) .hint-more{
  position: relative;
  display: inline-grid;
  grid-template-columns: auto 1fr;   
  align-items: start;
  gap: 8px;
  width: max-content;                
  max-width: 100%;
  margin-bottom:3%;
}

.emp-calculator .row:nth-of-type(2) .hint-trigger{
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  line-height: 1;
}

.emp-calculator .row:nth-of-type(2) .hint-title{
  margin: 0;
  line-height: 1.6;
  text-align: left;
}

.emp-calculator .row:nth-of-type(2) .hint-more:hover .hint-tooltip{
  opacity: 1; visibility: visible; transform: translateY(0);
}

.emp-btn{
  display: inline-block;
  border: 0;
  border-radius: 20px;
  background: #ff3b2f;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  margin-top:3%;
  padding-bottom: 9px;
}

.emp-btn:focus-visible{ 
  outline: 2px solid #fff; 
  outline-offset: 2px; 
}

.emp-drop{
  margin-bottom: 5px;
  border: 1px solid #3a4451;
  border-radius: 12px;
  padding: 10px 12px;
  background: #2b333c;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
}
.emp-drop.is-open{
  margin-top: 10px;
  margin-bottom: 10px;
  max-height: 560px; 
  opacity: 1;
  transform: translateY(0);
}

.emp-drop .line,
.emp-drop .sum{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.emp-drop .l-label{ 
  color:#e2e8f0; 
  font-weight:600; 
}

.emp-drop .l-ctrl{ display:flex; align-items:center; gap:8px; }
.emp-drop .l-ctrl input[type="number"]{
  width: 160px;
  background: transparent;
  border: 3px solid #3a4451;
  color: #fff;
  padding: 8px 10px;
  font-size: 18px;
  font-weight: 800;
  box-sizing: border-box;
}

.emp-drop .unit{ 
  font-weight:700; 
  opacity:.75; 
}

.emp-drop .sum{
  border-top: 1px dashed #475569;
  padding-top: 10px;
  margin-top: 12px;
}

.emp-drop .sum-label{ 
  color:#fff; 
  font-weight:800; 
}

.emp-drop #costs-sum{ background: rgba(255,255,255,.04); }


.emp-calculator input[type="number"]::-webkit-outer-spin-button,
.emp-calculator input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.emp-calculator input[type="number"]{
  -moz-appearance: textfield;
  appearance: textfield;
}

.emp-calculator .row .ctrl > input[type="number"]{
  flex: 0 0 auto;
}

.emp-calculator .row .ctrl > input[type="number"],
.emp-calculator .row .ctrl > input[type="text"]{
  flex: 0 0 auto;
  background: transparent;
  color: #fff;
  border: 3px solid white;
  border-radius: 28px;
  padding: 12px 18px;
  font-size: 22px;
  font-weight: 800;
  box-shadow: none;
}

.emp-calculator .row .ctrl > input[type="number"]:focus,
.emp-calculator .row .ctrl > input[type="text"]:focus{
  outline: none;
  border-color: #fff;
}

.emp-drop .l-ctrl input[type="number"],
.emp-drop .l-ctrl input[type="text"]{
  width: 160px;
  background: transparent;
  border: 3px solid white;
  color: #fff;
  padding: 8px 10px;
  font-size: 18px;
  border-radius: 28px;
  font-weight: 800;
  box-sizing: border-box;
}

@media (max-width: 480px){
  .emp-card .hint-tooltip{
    left: 0;
    right: 0;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce){
  .emp-card .hint-tooltip{
    transition: none;
  }
}

@media (max-width: 800px) {
  .emp-grid {
    grid-template-columns: 1fr;
  }
  .emp-card {
    position: static !important;
    top: auto !important;
  }
  
  .modal {
      font-size:14px;
  }
  
  .modal .price {
      font-size : 35px;
  }
  
  .modal h3 {
      font-size : 18px;
  }
}

@media (max-width: 800px){
  .emp-wrap .emp-intro,
  .emp-wrap .emp-card{
    position: static !important;
    top: auto !important;
    align-self: auto !important;
  }
}

@media (max-width: 800px){
:root {
  --overlay-top: 88px;
}
}

@media (max-width: 800px) {
  .emp-wrap {
    padding: 24px clamp(12px, 4vw, 22px);
    padding-left: calc(clamp(12px, 4vw, 22px) + env(safe-area-inset-left));
    padding-right: calc(clamp(12px, 4vw, 22px) + env(safe-area-inset-right));
    box-sizing: border-box;
  }

  .emp-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
}


.emp-calculator { width: 100%; max-width: 100%; }

.emp-calculator .ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.emp-calculator .ctrl > input[type="number"],
.emp-calculator .ctrl > input[type="text"]{
  flex: 1 1 auto;
  min-width: 0;
  width: auto;            
  box-sizing: border-box; 
}

.emp-calculator .unit,
.emp-calculator .spin { flex: 0 0 auto; }


@media (max-width: 1000px){
  .emp-wrap{
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
  }
}

.emp-grid, .emp-card{ box-sizing: border-box; }


@media (max-width: 1000px){
  .emp-calculator{
    width: 95%;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .emp-wrap {
      padding-left: 0;
	  padding-right: 0;
  }

	.emp-card h2 {
		font-size:13px;
	}
}

@media (max-width: 500px){
  .emp-calculator{
    width: 85%;
    max-width: 85%;
  }
	
	.emp-card h2 {
		font-size:11px;
	}
}

.emp-wrap { 
  box-sizing: border-box;
}

.emp-grid { 
  grid-template-columns: 1.1fr 0.9fr;
}

.emp-intro,
.emp-calculator {
  justify-self: stretch;
  width: 100%;
  margin: 0;
}

@media (max-width: 800px){
  .emp-grid{
    grid-template-columns: 1fr;
    column-gap: 0;     
    row-gap: 28px;     
  }
  .emp-intro,
  .emp-calculator{
    grid-column: 1 / -1 !important;
  }
}

.emp-wrap .row,
.emp-wrap .container,
.emp-wrap [class*="col-"],
.emp-wrap .wpb_column,
.emp-wrap .elementor-container{
  padding-left: 0 !important;
  padding-right: 0 !important;
}




.emp-grid{
  grid-template-columns: minmax(0,1fr) clamp(340px, 44vw, 560px);
  gap: clamp(20px, 3vw, 32px);
}

.emp-grid > *{ min-width: 0; }

.emp-calculator .row .ctrl > input[type="number"],
.emp-calculator .row .ctrl > input[type="text"]{
  flex: 1 1 auto !important;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
}

.emp-card{ max-width: 100%; min-width: 0; }

.emp-grid > * { min-width: 0; }

.emp-calculator,
.emp-card{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}

@media (max-width: 800px){
  .emp-grid{ grid-template-columns: 1fr; }
}

.emp-wrap{ 
    padding-inline: clamp(16px, 4vw, 24px); 
    box-sizing: border-box; 
    padding-left:0;
    padding-right:0;
}


@media (max-width: 900px){
  .emp-drop .l-ctrl input[type="number"], .emp-drop .l-ctrl input[type="text"] {
      width:130px;
  }
}

@media (max-width: 400px) {
    .emp-drop .l-label , 
    .emp-drop .sum-label {
        font-size:11px;
    }
}