.button,
.search-box button {
  color: #fff;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  border: none;
  -webkit-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 2.8em;
  margin-top: 21px;
  padding-right: 1.3em;
  padding-left: 1em
}
 
.button svg,
.search-box button svg {
  margin-right: .3em;
  display: block
}

.button svg path,
.search-box button svg path {
  -webkit-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out
}


.lead {
  margin-top: 9.5em;
  margin-bottom: 1.9em
}

.lead .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between
}

.lead__right {
  width: 58.8%;
  padding-top: 7px
}

.lead h3 {
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  font-size: 3.056em
}

.lead h3:after {
  content: "";
  height: 2px;
  display: block;
  width: 72px;
  margin-top: 11px
}

.lead p {
  line-height: 145.6%;
  margin: 0
}

.list-item {
  margin-bottom: 4em;
}

.list-item__actions {
  border-top: 1px solid #eeece4;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 2.45em;
  padding-top: 2.05em;
  padding-bottom: 14px
}

.list-item__actions svg {
  display: block;
  margin-right: 1.1em
}

.list-item__actions span {
  font-weight: 700;
  font-size: 1.278em;
  margin-right: 1.6em
}

.list-item__button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 2.2em;
  margin-bottom: 2.2em;
}

.list-item__button--empty {
  margin-top: 2.7em
}

.list-item__button .button,
.list-item__button .search-box button,
.search-box .list-item__button button {
  margin: 0 .4em;
  height: 2.4em;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center
}

.success {
  text-align: center;
  padding: 15px;
  display: none
}


.comments {
  padding-left: .6em;
  padding-right: .6em;
  padding-top: .3em
}

.comment {
  padding: 1.5em 1.05em 1.3em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between
}

.comment:last-child {
  border: none;
  padding-bottom: 0
}

.comment__name {
  font-weight: 700;
  font-size: 1.111em
}

.comment__date {
  font-size: .944em;
  margin-top: .25em
}

.comment p {
  margin: 0;
  line-height: 1.5
}

.comment__left {
  width: 26%
}

.comment__right {
  width: 65.7%;
  margin-top: .15em
}

.comment-form {
  max-width: 50em;
  width: 100%;
  margin: 0 auto;
  margin-top: 2em;
  display: none
}

input.text, input.title, input[type=email], input[type=password], input[type=tel], input[type=text], select, textarea {
  padding: 12px !important;
}

.comment-form__title {
  text-align: center;
  font-weight: 700;
  margin: 1.5em 0
}

.comment-form input,
.comment-form textarea {
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  display: block;
  font-size: .944em;
  resize: none;
  height: 2.941em
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none
}

.comment-form textarea {
  height: 7.176em;
  padding: 15px;
  font-family: Arial;
}

.comment-form__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 -10px;
}

.comment-form__row--right {
  margin-top: -1.1em
}

.comment-form__row--right .comment-form__row__item {
  text-align: right
}

.comment-form__row--right .comment-form__row__item .button,
.comment-form__row--right .comment-form__row__item .search-box button,
.search-box .comment-form__row--right .comment-form__row__item button {
  height: 2.4em;
  width: 7.5em;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center
}

.comment-form__row__item {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 0 10px;
  margin: 16px 0;
}

.pagination {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-top: 4.5em
}

.pagination,
.pagination__button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex
}

.pagination__button {
  opacity: .5;
  -webkit-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
  width: 30%;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center
}

.pagination__button:first-child svg {
  margin-right: .7em
}

.pagination__button:last-child {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end
}

.pagination__button:last-child svg {
  margin-left: .7em
}

.pagination__button:hover {
  opacity: 1
}

.pagination__button a {
  font-weight: 300;
  font-size: .944em;
  text-decoration: underline;
  -webkit-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out
}

.pagination__button a:hover {
  font-weight: 700
}

.pagination .links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 30%;
  font-size: 1.056em
}

.pagination .links,
.pagination .links a,
.pagination .links span {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center
}

.pagination .links a,
.pagination .links span {
  width: 1.263em;
  height: 1.263em;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
  margin: 0 .1em;
  padding-bottom: .3em
}

.pagination .links a {
  font-weight: 300
}

.pagination .links a:hover,
.pagination .links span {
  font-weight: 700;
}

.list,
.single-item-container {
  background-repeat: no-repeat;
  background-position: 100% 100%
}

.list {
  padding-bottom: 6.3em
}

.single-item-container {
  padding: 5.3em 0 3.3em
}

@media (max-width:767px) {
  .header {
    padding: 15px 0;
    top: 0
  }

  .header .button,
  .header .search-box button,
  .search-box .header button {
    font-size: .75em
  }

  .header__logo {
    margin: 0
  }

  .header img {
    max-width: 100px;
    margin: 0 auto
  }

  .hero {
    height: 80vh;
    padding-top: 0;
    height: auto;
    padding: 30px 0;
    height: 260px
  }

  .hero h1 {
    display: none;
    font-size: 60px
  }

  .hero h2 {
    font-size: 1.6em;
    margin-top: 2em;
  }

  .search-box {
    text-align: center;
    font-size: .7em;
    margin-top: 1em
  }

  .lead {
    margin-top: 50px
  }

  .lead .container {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
  }

  .lead__right {
    width: 100%;
    padding-top: 25px
  }

  .list-item {
    padding: 15px
  }

  .list-item__actions {
    padding: 15px 0;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
  }

  .list-item__actions span {
    margin-right: 0;
    margin-bottom: 15px
  }

  .list-item__button {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

  }

  .list-item__button .button,
  .list-item__button .search-box button,
  .search-box .list-item__button button {
    height: 2.4em;
    width: 100%;
    margin: 10px 0;
  }

  .share--email,
  .share--fb {
    margin-bottom: 10px
  }

  .comment {
    padding: 15px 0;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
  }

  .comment__left,
  .comment__right {
    width: 100%
  }

  .pagination__button {
    display: none
  }

  .pagination .links {
    width: 100%
  }
}



/* new style */

ul.comments_list {
  width: 100%;
}

.comments_list_wrap>ul {
  padding-bottom: 4em;
  border-bottom: 2px solid #dcdad9;
}

.comments_list_wrap>ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.comment_author_avatar {
  width: 65px;
    height: 65px;
    background: #fff;
    background: radial-gradient(circle,rgba(255, 255, 255, 1) 0%, rgba(246, 230, 168, 1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    box-shadow: 0 2px 8px #ccc;
    border: 1px solid #f6e6a8;
    float: left;
    position: relative;
    overflow: hidden;
}

.comment_content {
  padding-left: 0;
  margin-left: 10em;
  min-height: 8.5em;
  vertical-align: top;
}

.comment_content {
  padding-left: 105px;
}

.comment_content {
  background-color:rgba(245, 40, 145, 0);
  margin-left: 0 !important;
  height: auto;
  text-align: left;
  min-height: 0 !important;
  padding: 25px 25px 25px 91px;
  min-height: 75px;
}

.comment_info {
  font-size: 1em;
}

.comment_info {
  font-size: .875em;
  margin-bottom: .5em;
}

li.comment {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 28px 0 18px;
  display: inline-block;
  position: relative;
  width: 100%;
}

li.comment:first-child {
  border-top: 1px solid #ededed;
}

.comment_info>span.comment_author {
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.comment_date {
  float: right;
}

.comment_info>.comment_date>.comment_date_value {
  margin-left: 1em;
}

.comment_author, .comment_text {
overflow-wrap: break-word;
}

.fa-comment-dots {
  padding-right: 5px;
}

@media (max-width: 786px) {
  .comment_date {
    float: left;
  }
  
  .comment_author, .comment_text {
  display: inline-block;
  }

  .comment-form__row {
    display: block;
}

.comment-form__row__item {
  flex: none;
  padding: 0 10px;
  margin: 16px 0;
}

button.nekrolog__button {
  margin-top: 20px;
}

.comment-form__row--right .comment-form__row__item {
  text-align: center;
}

.list-item__button {
  margin-top: .3em;
  margin-bottom: 1.5em;
}

.comment-form__title {
  text-align: center;
  font-weight: 700;
  margin: .5em 0;
}

.comment-form {
  max-width: 50em;
  width: 100%;
  margin: 0 auto;
  margin-top: 0s;
}

}

/* Pływający przycisk na dole dla mobilnych */
.float {
  position: fixed;
  bottom: 150px;
  left: 15px;
  background-color: #1b242c;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0px 4px 10px #ccc;
  z-index: 999;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 25px;
  cursor: pointer;
  font-weight: 500;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.float-text {
  font-size: 14px;
}

.float:hover {
  transform: scale(1.05);
  background-color: #ad912f;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
  color: #fff;
  text-decoration: none;
}

.float:active {
  transform: scale(0.98);
  background-color: #ad912f;
  color: #000;
}

.my-float {
  margin-right: 15px;
  /* Większy odstęp */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 6px;
}

.float i.far,
.float i.fas {
  margin-right: 15px;
  /* Większy odstęp */
}

/* Animacje i efekty dla pływającego przycisku */
.float {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--kondolencje-primary-color-rgb), 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(var(--kondolencje-primary-color-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--kondolencje-primary-color-rgb), 0);
  }
}

.hidden-float {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

/* Media queries dla urządzeń mobilnych */
@media (max-width: 768px) {
  .float {
    left: 20px;
    padding: 14px;
    font-size: 14px;
  }

  .float-text {
    display: none;
  }

  .float i.far, .float i.fas {
    margin-right: 0;
    padding-right: 0;
  }
}


/* Przycisk zgłaszania kondolencji */
.report-comment-btn {
  background: transparent;
  border: none;
  color: #1b242c;
  cursor: pointer;
  font-size: 12px;
  margin-top: 0 !important;
  padding: 0 !important;
  transition: all 0.3s ease;
  border-radius: 3px;
  margin-right: 0;
  display: block !important;
  margin-left: auto !important;
  float: none !important;
  text-align: right;
  opacity: 0.5;
}

.comment_item:hover .report-comment-btn {
  opacity: 1;
}

.report-comment-btn i {
  margin-right: 4px;
}

/* Modal do zgłaszania komentarzy */
.report-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.report-modal.active {
  opacity: 1;
}

.report-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #ccc;
}

.report-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.report-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #000;
}

.report-modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #000;
  transition: color 0.2s ease;
}

.report-modal-close:hover {
  color: #e74c3c;
}

.report-form .form-group {
  margin-bottom: 15px;
}

.report-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--kondolencje-text-color);
}

.report-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #ccc;
  color: #000;
  min-height: 100px;
  font-family: Arial;
}

.report-form textarea:focus {
  border-color: #000;
  outline: none;
}

.report-form button {
  background-color: var(--kondolencje-button-color);
  color: var(--kondolencje-button-text);
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  margin: 20px auto 10px;
  font-weight: 600;
}

.report-form button i {
  margin-right: 12px;
  color: var(--kondolencje-button-text);
}

.report-form button:hover {
  background-color: var(--kondolencje-hover-color);
}

.reported-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(var(--kondolencje-primary-color-rgb), 0.8);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  display: none;
}

.comment_item.reported .reported-badge {
  display: inline-block;
}

/* Style dla przycisku zgłaszania na urządzeniach mobilnych */
@media (max-width: 599px) {
  .report-comment-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 5px;
    font-size: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  .report-comment-btn i {
    margin-right: 0;
  }

  /* Badge "Zgłoszony" po lewej stronie na mobilnych urządzeniach */
  .reported-badge {
    left: 5px;
    right: auto;
  }
}

/* Responsywność dla urządzeń mobilnych - modal */
@media (max-width: 768px) {
  .report-modal-content {
    width: 95%;
  }

  .report-form button {
    width: 100%;
  }

  .report-comment-btn {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 5px;
  }

  /* Badge "Zgłoszony" po lewej stronie na tabletach */
  .reported-badge {
    left: 10px;
    right: auto;
  }
}

.report-comment-btn:hover {
  background-color: rgba(var(--kondolencje-primary-color-rgb), 0.1);
}

