.education_gamification-container {
  max-width: 700px;
  max-height: fit-content;
  padding: 20px;
  border: 1px solid #d1e3f8;
  border-radius: 12px;
  box-sizing: border-box;
}

#education_gamification-layout {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

#education_gamification-layout > * {
/*   height: 400px; */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  min-width: 0;
}

@media (min-width: 1025px) {
  #education_gamification-layout:not(.has-items) > * {
    height: 500px;
  }
  #education_gamification-layout.has-items > * {
    height: 400px;
  }
}

.education_character-wrapper {
  position: relative;
  flex: 1 1 auto;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

#education_child-image {
  height: 99%;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
}

#education_gamification-footer {
  width: 100%;
  max-width: 700px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
  box-sizing: border-box;
  align-items: stretch;
  text-align: left;
  font-family: sans-serif;
}

.education_recommended-text {
  font-size: 0.9rem;
  color: #555;
}

.education_recommended-sum {
  font-size: 1rem;
  font-weight: 600;
  color: #007acc;
  margin-bottom: 6px;
}

#education_progress-wrapper {
  width: 100%;
  height: 6px;
  background-color: #e9f5ff;
  border-radius: 50px;
  overflow: hidden;
}

#education_progress-bar {
  height: 100%;
  width: 0%;
  background-color: #007acc;
  border-radius: 50px;
  transition: width 0.3s ease;
}

.education_manual-label {
  font-size: 0.9rem;
  color: #444;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.education_manual-amount {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f8f8f8;
  max-width: 140px;
}

.education_manual-amount input {
  border: none !important;
  background: transparent;
  font-size: 1rem;
  width: 100%;
  outline: none;
}

.education_edit-icon {
  font-size: 1rem;
  color: #888;
  margin-left: 8px;
}

.education_gamification_manual-error {
  color: red;
  font-size: 12px;
  margin-top: 4px;
}

/* -----------------------------------------------------------------
   Right column with a list of selected banners
   -----------------------------------------------------------------*/
.education_selected-column {
  flex: 0 0 90px;
  width: 80px;
  max-height: 400px;
  overflow-y: auto;
  padding-left: 12px;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

.education_selected-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.education_selected-item {
  position: relative;
}

.education_selected-thumb {
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.education_selected-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.education_selected-remove {
  position: absolute;
  top: -7px;
  right: 0;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.education_selected-label {
  font-size: 12px;
  color: #333;
  text-align: center;
  margin-top: 4px;
  line-height: 1.3;
  padding: 0 4px;
}

/* -----------------------------------------------------------------
   TABLET 769–1024 px
   -----------------------------------------------------------------*/
@media (min-width:769px) and (max-width:1024px) {

  #education_gamification-layout {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .education_character-wrapper {
    width: 100%;
    height: 360px;
  }
	#education_child-image{
		height: 100%;
	}
  .education_selected-column {
    width: 100%;
    max-height: none;
    border-left: none;
    padding-left: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .education_selected-list {
    flex-direction: row;
    gap: 12px;
  }

  .education_selected-item {
    width: 220px;
    flex: 0 0 220px;
  }

  #education_gamification-layout > * { height: auto; }

  .education_gamification-container { max-width: 100%; padding: 16px; }
  #education_gamification-footer { padding: 0 12px; }
}

/* -----------------------------------------------------------------
   MOBILE ≤768 px
   -----------------------------------------------------------------*/
@media (max-width:767px){

  #education_gamification-layout {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 100%;
  }

  .education_character-wrapper {
    width: 100%;
    height: 320px;
  }

  .education_selected-column {
    width: 100%;
    max-height: none;
    border-left: none;
    padding-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .education_selected-list {
    flex-direction: row;
    gap: 8px;
  }

  .education_selected-item {
    width: 100px;
  }

  .education_gamification-container { max-width: 100%; padding: 12px; }
  #education_gamification-footer { padding: 0 8px; }
  #education_gamification-layout > * { height: 355px; justify-content: center; }
	
	  .education_manual-label {
    flex-wrap: wrap;
  }

  .education_gamification_manual-error {
    order: -1;      
    flex-basis: 100%;
    margin-top: 0;
    margin-bottom: 4px;
    text-align: right;
  }
}
