.cropper-view-box {
    outline: 2px solid #ff2e2e;
    outline-color: #ff2e2e;
}

/* Canvas do Croppera */
#cropper-canvas {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #ccc;
}

.dpi-info {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
    text-align: center;
}


.cf7-photo_submit-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem; /* OdstÃ„â„¢py miÃ„â„¢dzy elementami */
  max-width: 100%; /* Upewnij siÃ„â„¢, Ã…Â¼e kontener jest responsywny */
  margin: 0 auto;
  padding: 1rem;
}

.cf7-photo_submit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(33.33% - 1rem); /* Trzy elementy w jednym wierszu */
  max-width: 300px; /* Maksymalna szerokoÃ…â€ºÃ„â€¡ elementu */
  height: 150px;
  background: #ffffff0f;
  border-radius: 2px;
  transition: background 0.3s;
  background-size: contain;
}

@media (max-width: 768px) {
  .cf7-photo_submit {
    width: calc(50% - 1rem); /* Dwa elementy w jednym wierszu na mniejszych ekranach */
  }
}

@media (max-width: 480px) {
  .cf7-photo_submit {
    width: calc(100% - 1rem); /* Jeden element na wiersz na maÃ…â€šych ekranach */
  }
}

.cf7-photo_submit:hover {
  cursor: pointer;
  background: #ebebeb;
}

.cf7-photo_submit.cf7-photo_submit--image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.cf7-photo_submit.cf7-photo_submit--image:hover {
  cursor: default;
}

.cf7-photo_submit-input {
  display: none;
}

.cf7-photo_submit-text {
  width: 100%;
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: none;
  padding: 3px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
  border: solid 1px #ff000085 !important;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.65+100 */
  border-radius: 0!important;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;
  background: linear-gradient(to bottom, rgb(0 0 0 / 37%) 0%, rgb(0 0 0 / 70%) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.cf7-photo_submit-plus {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ff2e2e;
  pointer-events: none;
}

.cf7-photo_submit-plus:after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: '+';
  font-size: 36px;
  color: #fff;
}

.cf7-photo_submit--image .cf7-photo_submit-plus {
  display: none;
}

.cf7-photo_submit-uploadLabel {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ff2e2e;
  text-align: center;
  pointer-events: none;
}

.cf7-photo_submit--image .cf7-photo_submit-uploadLabel {
  display: none;
}

.cf7-photo_submit-delete {
  display: none;
  position: absolute;
  top: 10px;
  right: 70px;
  width: 24px;
  height: 24px;
  background: #ff2e2e;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 13px;
  padding-left: 6px;
  padding-top: 5px;
}

.cf7-photo_submit-delete:hover {
  background: #ffffff;
  color: #ff2e2e;
}

.cf7-photo_submit--image .cf7-photo_submit-delete {
  display: inline-block;
}

.cf7-photo_submit-crop {
  position: absolute;
  top: 10px;
  right: 40px;
  width: 24px;
  height: 24px;
  background: #37ad2b;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 13px;
  padding-left: 5px;
  padding-top: 6px;
  display: none;
}

.cf7-photo_submit-crop:hover {
  background: #ffffff;
  color: #37ad2b;
}

.cf7-photo_submit--image .cf7-photo_submit-crop {
  display: inline-block;
}

.cf7-photo_submit-view {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: #3331e6;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 13px;
  padding-left: 5px;
  padding-top: 6px;
  display: none;
}

.cf7-photo_submit-view:hover {
  background: #ffffff;
  color: #3331e6;
}

.cf7-photo_submit--image .cf7-photo_submit-view {
  display: inline-block;
}

/* Stylizacja lightboxa */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(7 7 7 / 89%);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.visible {
    display: flex;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0px 20px rgb(113 113 113 / 19%);
}

.lightbox-content img {
    display: block;
    width: 100%;
    height: auto;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1010;
}

.lightbox-close:hover {
    color: #ff5555;
}

.lightbox canvas {
    width: auto !important;
    height: auto !important;
    max-width: 95%;
    max-height: 95%;
}


.lightbox .lightbox-buttons-bar {
    display: flex;
    justify-content: center;
    width: 100%;
	gap: 10px;
    margin-top: 10px;
    position: inherit;
    bottom: 37px;
}

.lightbox .cropper-container.cropper-bg {
    /*border: solid #000 40px;*/
}

.lightbox-buttons-bar span {
    color: #fff;
    text-shadow: #000000 1px 0 10px;
    position:absolute;
    top: 5px;
    left: 20px;
}

.btn-cancel {
    color: #fff;
    background-color: #6c757d;
    border: 1px solid #6c757d;
}

.btn-cancel:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

.btn-cancel:focus {
    box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
}

.btn-cancel:active {
    background-color: #565e64;
    border-color: #51585e;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-save {
    color: #fff;
    background-color: #37ad2b;
    border: 1px solid #37ad2b;
}

.btn-save:hover {
    color: #37ad2b;
    background-color: #fff;
    border-color: #146c43;
}

.btn-save:focus {
    box-shadow: 0 0 0 0.2rem rgba(60, 153, 110, 0.5);
}

.btn-save:active {
    background-color: #146c43;
    border-color: #13653f;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}


/* Tło całej strony za modalem */
#progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95); /* ciemne przyciemnienie strony */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
}

/* Duże, ciemno-grafitowe okno z poświatą */
#progress-modal-content {
    background-color: #060606;
    /* border-radius: 12px; */
    box-shadow: 0 0 30px rgb(255 0 0 / 15%); /* jasna poświata */
    padding: 30px 40px;
    text-align: center;
    width: 90%;
    max-width: 800px;
    color: #f5f5f5;
}

/* Miniaturka zdjęcia */
#progress-thumbnail {
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    border-radius: 1px;
    margin-bottom: 20px;
    /* background: #111; */
}

/* Główna informacja tekstowa */
#progress-text {
    font-size: 16px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Komunikat ostrzegawczy */
#progress-warning {
    font-size: 14px;
    margin-bottom: 20px;
    color: #ffbbbb;
    font-style: italic;
}

/* Kontener paska postępu */
.uwf-bar-body {
    background: #181818;
    border: 2px solid #181818;
    /* border-radius: 8px; */
    overflow: hidden;
    height: 22px;
    width: 100%;
    margin: 0 auto;
}

/* Pasek wypełnienia */
.uwf-bar-bar {
    background: #ff2e2e;
    width: 0%;
    height: 100%;
    line-height: inherit;
    color: #fff;
    font-size: 11px;
    text-align: center;
    box-shadow: 0 0 20px #ff2e2e;
    transition: width 0.3s ease-in-out;
}

.upload-anim {
    background: repeating-linear-gradient(to right, #ff2e2e 0%, #37ad2b 50%, #ff2e2e 100%);
    background-size: 200% auto;
  background-position: 0 100%;
  animation: gradient 2s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
box-shadow: none;
}

@keyframes gradient { 
  0%   { background-position: 0 0; }
  100% { background-position: -200% 0; }
}

.progress-done .progress-modal-content {
    box-shadow: 0 0 30px rgb(22 255 0 / 15%) !important;
}

.progress-done .uwf-bar-bar {
    background: #076200;
}

#progress-thumbnail {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background-color: #000;
  opacity: 0;
  transition: opacity 1.2s ease, filter 1.2s ease;
}

.blur-on {
  filter: blur(20px);
}

.blur-off {
  filter: blur(0);
}

.cf7-photo_submit-delete, .cf7-photo_submit-dpi {
    display: none !important;
}