/* 複数届け先設定 | allocater */
.configurator__destination {
  .hinto {
    display: none;
  }

  #destination-list {
    display: flex;
    flex-direction: column;
  }

  #destination-list > .message.alert {
    display: none;
  }

  .toggle-add-dst {
    display: none;
  }

  #cart-configurator #add-destination {
    display: block;
    order: -1;
    margin: 80px 0 0;

    &::before {
      content: "お届け先を選択してください";
      display: block;
      border-bottom: 1px solid #333;
      font-size: 2rem;
      font-weight: 700;
      padding: 12px 0;
    }
  }

  @media screen and (max-width: 768px) {
    #cart-configurator #add-destination {
      margin: 30px auto 0;
      width: calc(100% - 40px);
    }
  }

  .message.alert {
    width: 100%;
    margin: 0;
    padding: 16px;
    font-size: 18px;
  }

  #add-destination ol {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto 0;
  }

  #add-destination li {
    width: calc((100% - 40px) / 3);
    padding: 20px 20px 24px;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }

  #add-destination .person-contents {
    width: 100%;
    padding: 0;
  }

  #add-destination button.btn {
    left: 0;
    width: 100%;
    margin: 25px 0 0;
    padding: 20px 10px;
    color: #555 !important;
    background: transparent;
    border: 1px solid #1C1B19;
    font-size: 1.166667em;
    transition: all 0.3s ease;
    
    &:hover {
      color: #fff !important;
      background: #1C1B19;
      opacity: 0.7;
    }
  }

  #add-destination .control {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
  }

  #cart-configurator #add-destination div.btn-group {
    margin: 20px 0 0;
    padding: 0;
    text-align: right;
  }

  #cart-configurator #add-destination div.btn-group button {
    position: relative;
    padding: 0 0 0 28px;
    border: none;
    color: #555 !important;
    background-color: transparent;
    font-size: 1.5em;
    transition: all 0.3s ease;

    &::before {
      position: absolute;
      width: 24px;
      height: 24px;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      background: url(../img/shared/cart/icon_plus.svg) center center / cover no-repeat;
      content: "";
    }

    &:hover {
      text-decoration: underline;
      opacity: 0.7;
    }
  }

  @media screen and (max-width: 768px) {
    .message.alert {
      font-size: 16px;
    }

    #add-destination ol {
      margin: 30px auto 0;
    }

    #add-destination li {
      width: 100%;
      padding: 20px 16px;
    }

    #add-destination .addresses {
      margin: 10px 0 0;
    }

    #add-destination button.btn {
      margin: 10px 0 0;
      padding: 16px 10px;
    }
    
    #add-destination .control {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      width: 100%;
    }
    
    #cart-configurator #add-destination div.btn-group {
      margin: 20px 0 0;
    }
    
    #cart-configurator #add-destination div.btn-group button {
      padding: 0 0 0 26px;
      font-size: 1.166667em;
        &::before {
          width: 22px;
          height: 22px;
        }
    }
  }

  #cart-configurator div.cart-configurator-wrapper div.formrow-submit.configurator button.btn {
    margin: 0 auto;
  }

  #cart-configurator div.cart-configurator-wrapper div.formrow-submit.configurator div.edit-cart button.btn {
    background-color: transparent;
    color: #ff9933 !important;
    font-size: 16px;
    text-decoration: underline;
    width: auto;
  }

  ol.destinations {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 20px;
    position: relative;
    margin: 80px 0 0;
    padding: 70px 20px 40px;
    border-radius: 8px;
    background-color: #f5f5f5;
    box-sizing: border-box;

    &::before {
      content: "選択中のお届け先";
      top: 20px;
      left: 30px;
      font-size: 18px;
      font-weight: 700;
      position: absolute;
    }
  }

  .message.alert + ol.destinations {
    margin: 20px 0 0;
  }

  .destinations li {
    display: flex;
    flex-direction: column;
    width: calc((100% - 40px) / 3);
  }

  div.person {
    height: 100%;
    border: 1px solid #555;
    /* border-radius: 12px; */
    background-color: #fff;
    margin: 10px 0 0;
  }

  div.person-label {
    position: relative;
    padding: 7px 7px 7px 15px;
    border-bottom: 1px solid #555;
    /* border-radius: 12px 12px 0 0; */
    background-color: #555;
    color: #fff;
  }

  div.person-label::before {
    margin-right: 5px;
    content: "✓ ";
  }

  div.person-contents {
    padding: 16px 16px 20px;
  }

  div.person-contents .names .name {
    margin: 5px 0 0;
  }

  div.person-contents .addresses {
    margin: 10px 0px 0px;
    padding: 10px 0px 0px;
    border-top: 1px solid #cccccc;
  }

  div.person-contents .addresses .place {
    display: flex;
    flex-direction: column;
  }

  div.person-contents .addresses .address {
    margin: 5px 0 0;
  }

  div.person-contents .phone-numbers {
    margin: 10px 0 0;
  }

  div.person-contents .phone-numbers .phone-number {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  div.person-contents .phone-numbers .phone-number .label {
    padding: 3px 10px 4px;
    border-radius: 50px;
    font-size: 0.8em;
    color: #fff;
    background-color: #767881;
  }

  #destination-list div.control button.btn.configuretor.remove-dst {
    position: relative;
    padding: 0 13px 0 28px;
    border: none;
    color: #555 !important;
    background-color: transparent;
    font-size: 1.33333em;
    transition: all 0.3s ease;

    &::before {
      position: absolute;
      width: 24px;
      height: 24px;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      background: url(../img/shared/cart/icon_minus.svg) center center / cover no-repeat;
      content: "";
    }

    &:hover {
      text-decoration: underline;
      opacity: 0.7;
    }
  }

  .destinations .control {
    order: -1;
    text-align: right;
  }

  @media screen and (max-width: 768px) {
    ol.destinations {
      /* position: fixed;
      bottom: 129px;
      left: 0;
      width: 100%; */

      gap: 28px 20px;
      margin: 40px 0 0;
      padding: 70px 20px 40px;
      border-radius: 0;
      z-index: 100;

      &::before {
        top: 25px;
        left: 20px;
      }
    }
    .destinations li {
      width: 100%;
    }

    div.person-contents {
      padding: 10px 16px 16px;
    }

    div.person-contents .kana {
      font-size: 0.666667em;
    }

    div.person-contents .addresses {
      font-size: 1.1666667em;
    }
    
    div.person-contents .phone-numbers .phone-number {
      font-size: 1.1666667em;
    }

    div.person-contents .phone-numbers .phone-number .label {
      font-size: 0.7142857em;
    }

    /* #cart-configurator .formrow-submit.configurator {
      position: fixed;
      bottom: 0;
      width: 100%;
      padding: 20px 0 0;
      background-color: #f5f5f5;
      z-index: 100;
    } */

    #cart-configurator .formrow-submit.configurator > .proceed-to-allocation,
    #cart-configurator .formrow-submit.configurator > .edit-cart {
      padding: 0;
    }

    #cart-configurator .formrow-submit.configurator > .edit-cart {
      margin: 10px 0 0;
    }

    #cart-configurator .formrow-submit.configurator > .edit-cart button {
      height: 30px;
    }

    #destination-list div.control button.btn.configuretor.remove-dst {
      padding: 0 13px 0 26px;
      font-size: 1.1666667em;
        &::before {
          width: 22px;
          height: 22px;
        }
    }
  }
}

/* 商品の振り分け */
#configurator__allocation {
  .cart-configurator {
    margin-top: 40px;
  }

  div.breadcrumbs {
    display: none;
  }

  div#page-title {
    display: block;
    border-bottom: 1px solid #333;
    font-size: 18px;
    font-weight: 700;
  }

  .hinto {
    display: none;
  }

  .destinations {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0 0;
  }

  .destinations > li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px 40px;

    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    border-radius: 8px;
  }

  .destinations > li > div:nth-child(2) {
    width: 65%;
  }

  .destinations > li div.person {
    flex: 1;
    border: 1px solid #555;
    /* border-radius: 12px; */
    background-color: #fff;
    margin: 0;
  }

  .destinations > li div.person-label {
    position: relative;
    border-bottom: 1px solid #555;
    /* border-radius: 12px 12px 0 0; */
    background-color: #555;
    color: #fff;
  }

  .destinations > li div.person-label::before {
    margin-right: 3px;
    content: "✓ ";
  }

  .destinations > li div.person-contents {
    padding: 16px 16px 20px;
  }

  div.person.person-null div.person-contents div.names div.name {
    font-size: 1.5em;
  }

  .destinations > li div.person-contents .kana {
    font-size: 0.666667em;
  }
  
  .destinations > li div.person-contents .addresses {
    margin: 10px 0px 0px;
    padding: 10px 0px 0px;
    border-top: 1px solid #cccccc;
    font-size: 1.1666667em;
  }
  
  .destinations > li div.person-contents .addresses .place {
    display: flex;
    flex-direction: column;
  }
  
  .destinations > li div.person-contents .phone-numbers {
    margin: 10px 0 0;
  }
  
  .destinations > li div.person-contents .phone-numbers .phone-number {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .destinations > li div.person-contents .label {
    padding: 3px 10px 4px;
    border-radius: 50px;
    font-size: 0.8em;
    color: #fff;
    background-color: #767881;
  }

  .destinations .itemdetails {
    width: 100%;
  }

  .destinations .itemdetails > li {
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #555;

    & + li {
      margin-top: 20px;
    }
  }

  .destinations div.item-thumbnail-img-sm {
    width: 110px;
    height: 110px;
  }

  .destinations div.goods-text div.unit-price {
    text-align: left;
  }

  #cart-configurator .destinations ul.itemdetails div.qty {
    margin: 0;
  }

  #cart-configurator .destinations ul.itemdetails div.qty select {
    width: 60px;
    padding: 5px 0;
    text-align: center;
    font-size: 18px;
  }

  .destinations div.goods-with-control div.item div.goods.entry-item div.goods-text {
    margin-left: 0;
    padding: 0 20px;
    width: 100%;
  }

  .destinations div.goods-with-control div.item div.goods.entry-item div.goods-text div.goods-text-heading div.item-name .code {
    font-size: 12px;
    display: block;
  }

  #cart-configurator div.cart-configurator-wrapper div.formrow-submit.configurator button.btn {
    margin: 0 auto;
  }

  #cart-configurator div.cart-configurator-wrapper div.formrow-submit.configurator div.edit-destination button.btn {
    background-color: transparent;
    color: #ff9933 !important;
    font-size: 16px;
    text-decoration: underline;
    width: auto;
  }

  @media screen and (max-width: 768px) {
    .cart-configurator {
      width: calc(100% - 40px);
      margin: 40px auto 0;
    }

    .destinations {
      gap: 30px;
      margin: 30px 0 0;
    }

    .destinations > li {
      flex-direction: column;
      gap: 40px;
      padding: 20px 20px 30px;
    }

    .destinations > li > div:nth-child(2) {
      width: 100%;
    }

    .destinations > li div.person {
      width: 100%;
      margin: 6px 0 0;
      border: 1px solid #555;
    }

    .destinations > li div.person-contents {
      padding: 8px 16px 10px;
    }

    .destinations .itemdetails {
      width: 100%;
    }

    .destinations .itemdetails > li {
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding-bottom: 12px;
      border-bottom: 1px solid #555;

      & + li {
        margin-top: 20px;
      }
    }

    .destinations .itemdetails > li div.goods {
      gap: 10px;
    }

    .destinations .itemdetails > li div.item div.goods.entry-item div.goods-text div.goods-text-heading div.item-name .code,
    .destinations .itemdetails > li div.goods .unit-price,
    .destinations .itemdetails > li div.goods .paymentmethod-restriction,
    .destinations .itemdetails > li div.goods .item-options {
      display: none;
    }

    .destinations .itemdetails > li .item-thumbnail-img-wrapper {
      margin: 0;
    }

    .destinations .itemdetails > li div.item-thumbnail-img-sm {
      margin: 0;
    }

    .destinations div.goods-with-control div.item div.goods.entry-item div.goods-text {
      margin: 4px 0 0;
      padding: 0;
    }

    .destinations div.goods-with-control div.item div.goods.entry-item div.goods-text div.goods-text-heading div.item-name {
      font-size: 1.33333em;
    }

    .destinations > li div.person-contents .label {
      font-size: 0.66667em;
    }

    .destinations div.item-thumbnail-img-sm {
      width: 80px;
      height: 80px;
    }

    #cart-configurator .destinations ul.itemdetails div.qty select {
      font-size: 14px;
    }
  }
}
