@import "//ui.dvmon.com/css/SUIT.css";

#mentors-payback,
#mentors-payback *
{
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  font-family: 'SUIT';
}


#mentors-payback {
  --mentors-payback-primary: #2e7d32;
  --mentors-payback-border: rgba(235, 237, 243, 0.7);
  position: relative;
  /*background: #fff;*/
  border-radius: 8px;
  padding: 106px 0px 0px 0px;
  margin-top: -106px;
  display: flex;
  flex-direction: column;
  gap: 32px;

  min-height: 962px;
}
#mentors-payback._loading:before {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -28px 0 0 -100px;
  content: ' ';
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.2);
  border-right: 4px solid transparent;
  animation: .6s rotation infinite linear;
  font-size: 0;
  z-index: 10;
}
#mentors-payback:after {
  position: absolute;
  top: 86px;
  left: -20px;
  bottom: -20px;
  right: -20px;
  content: '';
  opacity: 0;
  visibility: hidden;
  background: rgba(230,230,230,0.3);
  transition: opacity 300ms ease-out , 300ms visibility 0ms ease-out;
  border-radius: 8px;
  z-index: 9;
}
#mentors-payback._loading:after {
  opacity: 1;
  visibility: visible;
  transition: visibility 0ms ease-out, opacity 300ms ease-out;
}
#mentors-payback .mt-search,
#mentors-payback .mt-partners,
#mentors-payback .mt-page {
  z-index: 1;
}

#mentors-payback .mt-search {
  background: var(--mentors-payback-border);
  padding: 20px 32px 20px 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
}
#mentors-payback .mt-search[data-mode~=modal] {
  position: sticky;
  top: 0;
  z-index: 2;
  --mentors-payback-border: rgb(241,242,246);

  @media all and (max-width: 767px) {
    /*top: 68px;*/
  }
}

#mentors-payback .mt-search__dl {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  flex: auto;
}
#mentors-payback .mt-search__dt {
  font-size: 16px;
  color: #999;
  padding: 0px 8px 0px 16px;
  font-weight: 400;
  flex: none;
}
#mentors-payback .mt-search__dd {
  flex: auto 1;
}
#mentors-payback .mt-search__dd:last-child {
  flex: auto 3;
}

#mentors-payback .mt-search__select,
#mentors-payback .mt-search__input,
#mentors-payback .mt-search__submit,
#mentors-payback .mt-search__reset {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-size: 16px;
  min-width: 100px;
  border-radius: 4px;
  border: solid 1px var(--mentors-payback-border);
}
#mentors-payback .mt-search__select::placeholder,
#mentors-payback .mt-search__input::placeholder,
#mentors-payback .mt-search__submit::placeholder {
  color: #999;
}
#mentors-payback .mt-search__submit {
  background: #18402a;
  color: white;
  padding: 0 24px;
  border: none;
  outline: none;
  max-width: 120px;
  margin-left: 24px;
}
#mentors-payback .mt-search__reset {
  background: #666;
  color: white;
  padding: 0 24px;
  border: none;
  outline: none;
  max-width: 120px;
}

#mentors-payback .mt-search__select:first-child {
  margin-right: 8px;
}

#mentors-payback .mt-partners {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}

#mentors-payback .mt-partner {
  width: 100%;
  /*box-shadow: 0px 0px 8px rgba(0,0,0,0.03);*/
  padding: 16px 20px 20px 20px;
  border-radius: 8px;
  border: solid 1px var(--mentors-payback-border);
  transition: border 100ms ease-out, 300ms ease-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  height: 210px;
  overflow: hidden;
  position: relative;

  &[data-system="COMEPASS"]:before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    width: 64px;
    height: 64px;
    opacity: 0.7;
    background: url("/logo_comepass_right.svg") no-repeat ;
    background-position: calc(100% - 13px) calc(13px);
    background-size: 48px;
  }
}
#mentors-payback .mt-partner[data-payback='CLOSE'] {
  /*opacity: 0.7;*/
  filter: grayscale(100%);
}
#mentors-payback .mt-partner:hover:not([data-payback='CLOSE']),
#mentors-payback .mt-partner:active:not([data-payback='CLOSE']) {
  border: solid 1px #ccc;
}
#mentors-payback .mt-partner__city {
  display: inline-block;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  color: var(--mentors-payback-primary);
  width: fit-content;
  flex-shrink: 1;
  margin-left: 1px;
}
#mentors-payback .mt-partner__city:after {
  margin: 4px -3px 0px -3px;
  content: '';
  display: block;
  width: calc(100% + 6px);
  height: 1.5px;
  background: var(--mentors-payback-primary);
}
#mentors-payback .mt-partner__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray900);
  padding: 8px 0px 0px 0px;
  margin: 0px;
  line-height: 1;
  flex-shrink: 1;
}

#mentors-payback .mt-partner[data-payback='CLOSE'] .mt-partner__name {
  color: var(--gray600);
}
#mentors-payback .mt-partner__address {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: #777;
  word-break: keep-all;
  padding: 0px 0px 8px 0px;
  margin: auto 0;
}
#mentors-payback .mt-partner__button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #999;
  /*background: #18402a;*/
  color: white;
  font-size: 16px;
  font-weight: 500;
  height: 40px;
  border-radius: 4px;
  text-align: center;
  width: calc(100% + 16px);
  margin: auto -8px -8px -8px;
  cursor: no-drop;
  opacity: 0.7;
  flex-shrink: 1;
}
#mentors-payback .mt-partner__button:before {
  content: '선택하기';
}
#mentors-payback .mt-partner__button[data-payback='OPEN'] {
  background: #18402a;
  cursor: pointer;
  opacity: 1;
}
#mentors-payback .mt-partner__button[data-payback='OPEN']:before {
  content: '신청하기';
}
#mentors-payback .mt-partner__button[data-payback='SELECT'] {
  background: #18402a;
  cursor: pointer;
  opacity: 1;
}
#mentors-payback .mt-partner__button[data-payback='SELECT']:before {
  content: '선택하기';
}

#mentors-payback .mt-page {
  padding: 1px;
  display: flex;
  gap: 1px;
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: stretch;
  flex-direction: row;
  justify-content: center;
}
#mentors-payback .mt-page__item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  outline: solid 1px #EEE;
  padding-bottom: 2px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  z-index: 1;
  color: #666;
}
#mentors-payback .mt-page__item:hover {
  background: #f9f9f9;
  color: #000;
  font-weight: 900;
}
#mentors-payback .mt-page__item:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
#mentors-payback .mt-page__item:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
#mentors-payback .mt-page__item._active {
  background: #f9f9f9;
  color: #000;
  font-weight: 900;
  outline: solid 1px #ddd;
  z-index: 10;
}


#mentors-payback .mt-partners:empty,
#mentors-payback .mt-page:empty {
  display: none;
}

@keyframes rotation {
  0% { transform: rotate(  0deg) }
  100% { transform: rotate(360deg) }
}

@media screen and (max-width: 1100px) {
  #mentors-payback .mt-partners {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 766px) {
  #mentors-payback .mt-search {
    flex-wrap: wrap;
    padding: 20px 24px;
    justify-content: center;
  }
  #mentors-payback .mt-search__dl {
    width: 100%;
    flex-wrap: wrap;
  }
  #mentors-payback .mt-search__dt {
    display: none;
  }
  #mentors-payback .mt-search__reset,
  #mentors-payback .mt-search__submit {
    margin-left: 0px;
    margin-top: 8px;
  }
  #mentors-payback .mt-partners {
    gap: 16px;
    grid-template-columns: 1fr 1fr;
  }
  #mentors-payback .mt-page__item {
    font-size: 14px;
    height: 32px;
  }
}

@media screen and (max-width: 500px) {
  #mentors-payback .mt-partners {
    gap: 8px;
  }
  #mentors-payback .mt-partner {
    padding: 12px;
    gap: 8px;
    height: inherit;
  }
  #mentors-payback .mt-search__select,
  #mentors-payback .mt-search__input {
    font-size: 14px  !important;
    color: #000;
  }
  #mentors-payback .mt-partner__city,
  #mentors-payback .mt-partner__address {
    font-size: 12px;
  }
  #mentors-payback .mt-partner__address {
    padding-bottom: 4px;
  }

  #mentors-payback .mt-partner__name {
    padding-top: 4px;
    font-size: 16px;
  }
  #mentors-payback .mt-search__submit,
  #mentors-payback .mt-search__reset,
  #mentors-payback .mt-partner__button {
    font-size: 14px !important;
    height: 32px;
  }
  #mentors-payback .mt-partner__button {
    margin: auto -4px -4px -4px;
    width: calc(100% + 8px);
  }
}

.section:has(#mentors-payback) {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
}

.section__content:has(#mentors-payback) {
  padding-top: 0;
}
