#mypageOrderList {
  padding-bottom: 72px;
}

#mypageOrderList .filter {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

#mypageOrderList .filter select {
  width: 103px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #E9E9E9;
  background: #FFF;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  appearance: none;
  -webkit-appearance: none;
  background: url('../images/mypage/order-list/icon-select-chevron.png') no-repeat right 15px center / 9px;
  cursor: pointer;
}

#mypageOrderList .filter select option {}
#mypageOrderList .filter .date-picker-block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

#mypageOrderList .filter .date-picker-block::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 38px;
  background-color: #e9e9e9;
}

#mypageOrderList .filter .date-picker-block .input {
  width: 128px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #E9E9E9;
  overflow: hidden;
}

#mypageOrderList .filter .date-picker-block .input input {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.02em;
  background: #FFF url('../images/mypage/order-list/icon-calendar.png') no-repeat right 14px center / 20px;
  padding-left: 16px;
  cursor: pointer;
}

#mypageOrderList .filter .date-picker-block span {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
}

#mypageOrderList .filter .date-picker-block .btn-apply {
  padding: 0 23px;
  height: 42px;
  border-radius: 10px;
  background: #000;
  color: #FFF;
  font-size: 13px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: -0.02em;
}



#mypageOrderList .total-count {
  color: #999;
  font-size: 14px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}



#mypageOrderList .order-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid #eee;
}

#mypageOrderList .order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #E9E9E9;
  padding: 28px 30px;
  min-width: 0;
}

#mypageOrderList .order-item:last-child {
  border-bottom: none;
}

#mypageOrderList .order-item .left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 46px;
}

#mypageOrderList .order-item .date-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  width: 87px;
}

#mypageOrderList .order-item .order-date {
  display: block;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
}

#mypageOrderList .order-item .order-id {
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 140%;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#mypageOrderList .order-item .product-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 382px;
}

#mypageOrderList .order-item .thumbnail {
  width: 106px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #F5F7FA;
  overflow: hidden;
  flex-shrink: 0;
  min-width: 0;
}

#mypageOrderList .order-item .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center ;
}

#mypageOrderList .order-item .product-block .text {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 106px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#mypageOrderList .order-item .product-info {

}

#mypageOrderList .order-item .product-name {
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 140%;
  margin-bottom: 4px;
}

#mypageOrderList .order-item .option {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
}

#mypageOrderList .order-item .etc {
  display: flex;
  align-items: center;
  gap: 8px;
}

#mypageOrderList .order-item .order-status {
  color: #DA3023;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.02em;
}

#mypageOrderList .order-item .tracking-number {
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#mypageOrderList .order-item .btn-block {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

#mypageOrderList .order-item .btn-block .btn {
  width: 120px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 60px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
}

#mypageOrderList .order-item .btn-block .btn-cart {
  width: 44px;
  border: 1px solid #E9E9E9;
  background: #FFF;
  flex-shrink: 0;
}

#mypageOrderList .order-item .btn-block .btn-cart img {
  width: 20px;
}

#mypageOrderList .order-item .btn-block .btn-white {
  border: 1px solid #E9E9E9;
  background: #FFF;
  color: #000;
}

#mypageOrderList .order-item .btn-block .btn-black {
  background: #000;
  border: none;
  color: #FFF;
}




/* 모달 공통 */
#mypageOrderList .modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s;
}

#mypageOrderList .modal.active {
  opacity: 1;
  visibility: visible;
  z-index: 9999999999;
}

#mypageOrderList .modal .dim {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  transition: 0.2s;
}

#mypageOrderList .modal.active .dim {
  opacity: 1;
  visibility: visible;
  z-index: 50;
}

#mypageOrderList .modal .container {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 0);
  width: 100%;
  max-width: 393px;
  z-index: 100;
  border-radius: 30px 30px 0 0;
  background: #fff;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s;
}

#mypageOrderList .modal.active .container {
  transform: translate(-50%, -100%);
}

#mypageOrderList .modal .modal-header,
#mypageOrderList .modal .modal-cont,
#mypageOrderList .modal .modal-footer {
  width: 100%;
}

#mypageOrderList .modal .modal-header {

}

#mypageOrderList .modal .modal-title {
  color: #111;
  font-size: 20px;
  font-weight: 700;
  line-height: 140%;
  padding-left: 4px;
  margin-bottom: 20px;
}

#mypageOrderList .modal .btn-close {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 24px;
  height: auto;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

#mypageOrderList .modal .btn-close img {
  width: 100%;
}

#mypageOrderList .modal .modal-cont {
  flex: 1;
}

#mypageOrderList .modal .modal-footer {
  padding-top: 20px;
}

#mypageOrderList .modal .btn-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#mypageOrderList .modal .btn-wrap.vertical {
  flex-direction: column;
}

#mypageOrderList .modal .btn {
  display: block;
  width: 100%;
  min-width: 0;
  height: 56px;
  line-height: 55px;
  border-radius: 200px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

#mypageOrderList .modal .btn:not(.small) {
  flex: 1;
}

#mypageOrderList .modal .btn-white {
  background: #fff;
  color: #000;
  border: 1px solid #EEE;
}

#mypageOrderList .modal .btn-black {
  background: #000;
  color: #fff;
}

#mypageOrderList .modal .btn-black:disabled {
  background-color: rgba(0, 0, 0, 0.1);
}

#mypageOrderList .modal .btn.small {
  width: 120px;
  flex-shrink: 0;
  border-radius: 500px;
}




/* 상품 공유하기 모달 */
#mypageOrderList .modal#productShareModal .container {
  height: 389px;
  padding-top: 26px;
}

#mypageOrderList .modal#productShareModal .modal-desc {
  color: #DA3023;
  font-size: 13px;
  font-weight: 600;
  line-height: 140%;
  padding-left: 4px;
  margin-bottom: 8px;
}

#mypageOrderList .modal#productShareModal .modal-title {
  margin-bottom: 18px;
}

#mypageOrderList .modal#productShareModal .product-info {
  border-radius: 14px;
  border: 1px solid rgba(238, 238, 238, 0.80);
  background: #FFF;
  box-shadow: 0 3px 14px 0 rgba(0, 0, 0, 0.06);
  padding: 20px 20px 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin-bottom: 4px;
}

#mypageOrderList .modal#productShareModal .product-info .text {
  flex: 1;
  min-width: 0;
}

#mypageOrderList .modal#productShareModal .product-info .cate {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  line-height: 140%;
  margin-bottom: 4px;
}

#mypageOrderList .modal#productShareModal .product-info .name {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  margin-bottom: 6px;
}

#mypageOrderList .modal#productShareModal .product-info .ingredient {
  border-radius: 4px;
  background: #F7F7F7;
  color: #666;
  font-size: 10px;
  font-weight: 400;
  line-height: 140%;
  padding: 1px 4px;
  display: inline-block;
}

#mypageOrderList .modal#productShareModal .product-info .img {
  width: 86px;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

#mypageOrderList .modal#productShareModal .product-info .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

#mypageOrderList .modal#productShareModal .btn-wrap {
  gap: 18px;
}

#mypageOrderList .modal#productShareModal .btn-share-kakao {
  display: block;
  background: #fde500 url('../images/mypage/icon-kakao.png') no-repeat left
  22px center / 20px;
  border: none;
  outline: none;
  text-align: center;
  color: #201d1e;
  position: relative;
}

#mypageOrderList .modal#productShareModal .btn-skip {
  color: #888;
  text-align: center;
  display: block;
  width: fit-content;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}





/* ----------------------------------------------------------- */
@media screen and (max-width: 950px) {
  #mypageOrderList .order-item {
    padding: 28px 0;
  }

  #mypageOrderList .order-item,
  #mypageOrderList .order-item .left {
    flex: unset;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }

  #mypageOrderList .order-item .date-block,
  #mypageOrderList .order-item .product-block,
  #mypageOrderList .order-item .btn-block {
    width: 100%;
  }

  #mypageOrderList .order-item .date-block {
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  #mypageOrderList .order-item .product-block {
    max-width: 100%;
  }

  #mypageOrderList .order-item .btn-block {

  }

  #mypageOrderList .order-item .btn-block .btn-white,
  #mypageOrderList .order-item .btn-block .btn-black {
    width: 100%;
    flex: 1;
    min-width: 0;
  }
}



@media screen and (max-width: 768px) {
  #mypageOrderList {
    padding-bottom: 40px;
  }

  #mypageOrderList .filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  #mypageOrderList .filter select {
    width: 100%;
  }

  #mypageOrderList .filter .date-picker-block::before {
    display: none;
  }

  #mypageOrderList .filter .date-picker-block .input {
    width: 100%;
    flex: 1;
  }

  #mypageOrderList .filter .date-picker-block .btn-apply {
    flex-shrink: 0;
    width: 71px;
  }

  #mypageOrderList .total-count {
    font-size: 13px;
    margin-bottom: 8px;
  }

  #mypageOrderList .order-item {
    padding: 20px 0;
  }

  #mypageOrderList .order-item .product-block {
    gap: 12px;
  }
}

@media screen and (max-width: 500px) {
  #mypageOrderList .modal .container {
    max-width: 100%;
  }
}