.ksmart-feedback-rating {
  display: inline-block;
  padding-bottom: 16px;
  font-size: 16px;
}

.ksmart-feedback-summary {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font: inherit;
  line-height: 1.2;
}

.ksmart-feedback-summary:hover .feedback-wrapper,
.ksmart-feedback-summary:focus-visible .feedback-wrapper {
  text-decoration: underline;
}

.ksmart-feedback-star {
  color: #ffd000;
  font-size: 22px;
  line-height: 1;
  margin-right: 3px;
}
.ksmart-feedback-out-of,
.ksmart-feedback-total {
  opacity: .9;
}

.ksmart-feedback-modal[hidden] {
  display: none;
}

.ksmart-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ksmart-feedback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 48, .48);
}

.ksmart-feedback-dialog {
  position: relative;
  width: 75%;
  max-height: calc(100vh);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.ksmart-feedback-dialog-header {
  display: flex;
  align-items: center;
  padding: 0px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.ksmart-feedback-title-icon {
  flex: 0 0 60px;
  margin: 15px 0;
}

.ksmart-feedback-title-wrap {
  flex: 1;
  padding: 10px;
}

.ksmart-feedback-title-wrap h2 {
  margin: 0 0 5px;
  color: #1d2330;
  font-size: 18px;
  line-height: 1.2;
  text-align: left;
}

.ksmart-feedback-title-wrap p {
  margin: 0;
  color: #667085;
  font-size: 16px;
  text-align: left;
}

.ksmart-feedback-dialog-body {
  padding: 0 20px 20px;
}

.ksmart-feedback-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.ksmart-feedback-card {
  min-height: 198px;
  padding: 24px;
  border-radius: 18px;
  grid-column: span 2;
}

.ksmart-feedback-card-1 { background: #ffe0e3; }
.ksmart-feedback-card-2 { background: #fff2d8; }
.ksmart-feedback-card-3 { background: #d8f8e2; }
.ksmart-feedback-card-4 { background: #f0e2ff; }
.ksmart-feedback-card-5 { background: #dceffc; }

.ksmart-feedback-card-icon {
  display: grid;
  margin-bottom: 18px;
}

.ksmart-feedback-score {
  font-size: 28px;
  margin-bottom: 15px;
  text-align: left;
  color: var(--Greys-Blue-Grey-900, #151D48);
  font-style: normal;
  font-weight: 800;
  line-height: 37.973px; /* 133.333% */
}

.ksmart-feedback-score span {
  font-size: 20px;
  font-weight: 500;
}

.ksmart-feedback-question {
  color: #42506b;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
}

.ksmart-feedback-summary:focus-visible,
.ksmart-feedback-close:focus-visible {
  outline: 3px solid rgba(54, 150, 215, .35);
  outline-offset: 3px;
}

.ksmart-feedback-modal-open {
  overflow: hidden;
}

.ksmart-feedback-dialog-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #F1F8F7;
  border-radius: 12px;
  box-sizing: border-box;
  margin: 20px;
}

.ksmart-feedback-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f8fcf9;
}

.ksmart-feedback-title-icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.ksmart-feedback-title-wrap {
  flex: 1;
  min-width: 0;
}

.ksmart-feedback-title-wrap h2 {
  margin: 0 0 2px;
  color: var(--Gray-900, #181D27);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.ksmart-feedback-title-wrap .ksmart-feedback-rating {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0;
  color: #182b61;
  font-size: 12px;
  line-height: 1.3;
}

.ksmart-feedback-rating strong {
  color: var(--Greys-Blue-Grey-900, #151D48);
  font-size: 28px;
  font-style: normal;
  font-weight: 800;
}
.feedback-outof {
  color: var(--Greys-Blue-Grey-900, #151D48);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
}
.ksmart-feedback-count {
  margin-left: 2px;
  color: var(--Greys-Blue-Grey-900, #151D48);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
}
/* Close Button */
.ksmart-feedback-close {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  background: #fff;
  border: 1px solid #e2eaf0;
  border-radius: 12px;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgb(0 0 0 / 3%);
  transition: background-color 0.2s ease;
}

.ksmart-feedback-close:hover {
  background: #f7fafb;
}

.ksmart-feedback-close i {
  line-height: 1;
}


@media (min-width: 992px) {
  
  .ksmart-feedback-card:nth-child(4),
  .ksmart-feedback-card:nth-child(5) {
    grid-column: span 3;
  }
}
@media (max-width: 800px) {
  .ksmart-feedback-grid {
    grid-template-columns: 1fr;
  }


  .ksmart-feedback-dialog-header {
    gap: 12px;
    padding: 18px;
  }

  .ksmart-feedback-title-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .ksmart-feedback-title-wrap h2 {
    font-size: 18px;
    text-align: left;
  }

  .ksmart-feedback-title-wrap p {
    font-size: 14px;
    text-align: left;
  }

  .ksmart-feedback-dialog-body {
    padding: 18px;
  }
  
}
/* Mobile Overall Rating Header */
  @media (max-width: 576px) {
  .ksmart-feedback-dialog-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 40px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    padding: 14px 12px;
    box-sizing: border-box;
    border-radius: 14px;
    margin: 20px;
  }

  /* First row: thumbs-up on the left */
  .ksmart-feedback-title-icon {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 10px;
  }

  .ksmart-feedback-title-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  /* First row: close button on the right */
  .ksmart-feedback-close {
    grid-column: 3;
    grid-row: 1;
    width: 40px;
    height: 40px;
    margin: 0;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
  }

  /* Second row: title and rating */
  .ksmart-feedback-title-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .ksmart-feedback-title-wrap h2 {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.3;
    text-align: left;
  }

  .ksmart-feedback-title-wrap .ksmart-feedback-rating {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
  }

  .ksmart-feedback-rating strong {
    font-size: 28px;
    line-height: 1.1;
  }

  .ksmart-feedback-rating .feedback-outof {
    font-size: 17px;
  }

  .ksmart-feedback-rating .ksmart-feedback-count {
    margin-left: 2px;
    font-size: 13px;
  }

}


