/* nowezgloszenia.css */

.panelk-modal{
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow:auto;
  border-radius: 26px;
  box-shadow: 0 18px 70px rgba(0,0,0,.28);
  background:#fff;
}

/* header */
.panelk-modal--form{ padding: 0; }

.panelk-form-header{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 16px 16px 10px;
}

.panelk-back{
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  cursor: pointer;
  font-size: 22px;
}

.panelk-form-title{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.panelk-body{ padding-top: 0; }

/* stack */
.panelk-stack{ display:grid; gap: 14px; padding: 12px 16px 18px; }

.panelk-field{
  background: rgba(0,0,0,.03);
  border-radius: 18px;
}

.panelk-input{
  width: 100%;
  border: 0;
  outline: none;
  padding: 18px 18px;
  font-size: 20px;
  background: transparent;
  box-sizing: border-box;
}

.panelk-input::placeholder{ color: rgba(0,0,0,.45); }

.panelk-input:focus{
  box-shadow: 0 0 0 3px rgba(90,58,168,.18);
  border-radius: 18px;
}

.panelk-link{
  border: 0;
  background: transparent;
  color: #5a3aa8;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
  padding: 6px 10px;
  cursor: pointer;
}

.panelk-link--big{ padding-left: 12px; }

/* payment */
.panelk-pay{
  background: rgba(0,0,0,.03);
  border-radius: 20px;
  padding: 14px 14px 12px;
}

.panelk-pay-title{
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}

.panelk-pay-row{
  display:flex;
  gap: 14px;
  margin-bottom: 12px;
}

.panelk-pill{
  border: 2px solid rgba(0,0,0,.35);
  background: #fff;
  border-radius: 16px;
  /* padding: 14px 26px;
  font-size: 20px; */
  font-weight: 900;
  cursor: pointer;
}

.panelk-pill.is-active{
  border-color: transparent;
  background: #1a82b9;
  color: #fff;
  box-shadow: 0 8px 18px rgba(90,58,168,.22);
}

.panelk-pay-hint{
  font-size: 16px;
  color: rgba(0,0,0,.65);
}

/* urgent row */
.panelk-urgent-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px;
}

.panelk-urgent{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}

.panelk-urgent input{ width: 22px; height: 22px; }

/* round buttons */
.panelk-datebtn{
  flex: 1;
  border: 2px solid rgba(0,0,0,.35);
  background: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

/* photos */
.panelk-photos{ display:grid; gap: 12px; padding-top: 6px; }
.panelk-photos-title{ font-size: 20px; font-weight: 900; padding-left: 6px; }

.panelk-photos-list{
  background: rgba(0,0,0,.03);
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 16px;
  color: rgba(0,0,0,.7);
}
.panelk-photoitem{ padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.panelk-photoitem:last-child{ border-bottom: 0; }

/* actions */
.panelk-actions{
  display:flex;
  gap: 14px;
  padding-top: 6px;
}

.panelk-btn{
  border: 0;
  border-radius: 999px;
  padding: 16px 18px;
  font-size: 20px;
  cursor: pointer;
  flex: 1;
}

.panelk-btn--ghost{
  background: #dbe7f6;
  color: #000;
  font-weight: 900;
}

.panelk-btn--primary{
  background: #b7d2f4;
  color: #000000;
  font-weight: 900;
}

/* confirm PILNE */
.panelk-overlay--top{ z-index: 10010; }

.panelk-confirm{
  width: min(520px, calc(100vw - 36px));
  background: rgba(244,238,250, 0.98);
  border-radius: 26px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.panelk-confirm-title{
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin: 4px 0 12px;
}

.panelk-confirm-text{
  font-size: 22px;
  line-height: 1.35;
  color: rgba(0,0,0,.72);
  margin-bottom: 18px;
}

.panelk-confirm-ok{
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.panelk-confirm-cancel{
  width: 100%;
  text-align: right;
  padding: 6px 2px;
}

/* DATETIME modal center */
.panelk-dtmodal{
  width: min(560px, calc(100vw - 36px));
  background: rgba(255,255,255, 0.98);
  border-radius: 26px;
  padding: 20px 18px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.panelk-dt-title{
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
}

.panelk-dt-hint{
  font-size: 16px;
  color: rgba(0,0,0,.65);
  line-height: 1.35;
  margin-bottom: 14px;
}

.panelk-dt-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.panelk-dt-field{
  background: rgba(0,0,0,.03);
  border-radius: 18px;
  padding: 10px 12px;
}

.panelk-dt-label{
  font-size: 14px;
  font-weight: 800;
  color: rgba(0,0,0,.55);
  margin-bottom: 6px;
}

.panelk-dt-input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 18px;
  padding: 8px 2px;
}

.panelk-dt-actions{
  display:flex;
  gap: 12px;
}

/* INFO modal (zamiast alert) */
.panelk-infobox{
  width: min(520px, calc(100vw - 36px));
  background: rgba(255,255,255, 0.98);
  border-radius: 26px;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.panelk-infobox-title{
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
}

.panelk-infobox-text{
  font-size: 18px;
  line-height: 1.35;
  color: rgba(0,0,0,.72);
  margin-bottom: 14px;
}

.panelk-infobox-close{
  width: 100%;
}


/* Adres jako przycisk */
.panelk-addrbtn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor:pointer;
  border: 0;
  text-align:left;
}

.panelk-addrbtn-label{
  font-size: 20px;
  font-weight: 900;
  color: rgba(0,0,0,.75);
}

.panelk-addrbtn-value{
  font-size: 18px;
  font-weight: 800;
  color: rgb(26, 130, 185);
}

/* Modal adresu */
.panelk-addrmodal{
  width: min(620px, calc(100vw - 36px));
  background: rgba(255,255,255, 0.98);
  border-radius: 26px;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.panelk-addr-title{
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

.panelk-addr-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.panelk-addr-field{
  background: rgba(0,0,0,.03);
  border-radius: 18px;
  padding: 10px 12px;
}

.panelk-addr-field--full{
  grid-column: 1 / -1;
}

.panelk-addr-label{
  font-size: 14px;
  font-weight: 900;
  color: rgba(0,0,0,.55);
  margin-bottom: 6px;
}

.panelk-addr-input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 18px;
  padding: 8px 2px;
}

.panelk-addr-actions{
  display:flex;
  gap: 12px;
}


.panelk-form-header--center{
  justify-content: center;
  padding-top: 18px;
}

.panelk-form-header--center .panelk-form-title{
  text-align: center;
  width: 100%;
}


/* Photos header + counter */
.panelk-photos-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 6px;
}

.panelk-photos-count{
  font-size: 16px;
  font-weight: 900;
  color: rgba(0,0,0,.55);
}

/* Thumbnails grid */
.panelk-photos-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 720px){
  .panelk-photos-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


@media (max-height: 915px) {
    .panelk-modal{
        max-height: 99%;
        
    }
    .panelk-overlay{
    background: radial-gradient(1200px 520px at 50% -10%, rgba(14,165,233,.14), rgba(14,165,233,0) 60%), rgba(15,23,42,.42);
    backdrop-filter: blur(10px) saturate(1.05);
    }
}


.panelk-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.panelk-thumb-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.panelk-thumb-x{
  position:absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  cursor:pointer;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  background: rgba(0,0,0,.55);
}
