/* 1줄 그리드 스타일 */
.address_grid_container {
  width: 100%;
  margin: 20px 0;
  box-sizing: border-box;
}

.address_grid_table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}

.address_grid_table thead {
  background-color: #07345e;
  color: #fff;
}

.address_grid_table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: bold;
  font-size: 14px;
  border-bottom: 2px solid #07345e;
}

.address_grid_table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.2s;
  position: relative;
}

.address_grid_table tbody tr:hover {
  background-color: #f5f5f5;
}

.address_grid_table tbody tr.pick {
  background-color: #fff;
  border-left: 5px solid #2196F3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.address_grid_table tbody tr.pick:hover {
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
}

/* 공동구매 배송지 초록색 스타일 */
.address_grid_table tbody tr.pick.group_purchase {
  background-color: #fff;
  border-left: 5px solid #007b27;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.address_grid_table tbody tr.pick.group_purchase:hover {
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.address_grid_table tr.pick.group_purchase .col_name::before {
  background-color: #007b27;
}

.address_grid_table tr.pick.group_purchase .address_selected_badge {
  background-color: #007b27;
}

.address_grid_table tr.pick.group_purchase .col_name {
  color: #007b27;
}

.address_grid_table tr.pick.group_purchase .btn_update {
  background-color: #007b27;
  color: #fff;
}

.address_grid_table tr.pick.group_purchase .btn_update:hover {
  background-color: #45a049;
}

.address_grid_table td {
  padding: 15px;
  vertical-align: top;
}

.address_grid_table .col_name {
  width: 15%;
  /* min-width: 120px; */
  font-weight: bold;
  position: relative;
  white-space: nowrap;
}

.address_grid_table .address_name_text {
  display: inline-block;
  vertical-align: middle;
}

/* 태블릿/PC에서 배송지명 행바꿈 */
@media all and (min-width: 768px) {
  .address_grid_table .col_name .address_name_text + .address_name_text {
    display: block;
    margin-top: 5px;
  }
}

.address_grid_table .address_selected_badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 8px;
  background-color: #2196F3;
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
  font-weight: normal;
  vertical-align: middle;
  white-space: nowrap;
}

.address_grid_table tr.pick .col_name::before {
  content: "✓";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #2196F3;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  font-weight: bold;
  margin-right: 8px;
  vertical-align: middle;
}

.address_grid_table .col_address {
  width: 50%;
  /* min-width: 300px; */
}

.address_grid_table .col_phone {
  width: 20%;
  /* min-width: 150px; */
}

.address_grid_table .col_action {
  width: 15%;
  /* min-width: 80px; */
  text-align: center;
}

.address_grid_table .material-icons {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 5px;
}

.address_grid_table .address_zip {
  display: inline-block;
  margin-right: 10px;
  font-weight: bold;
}

.address_grid_table .address_text {
  display: block;
  margin: 5px 0;
}

.address_grid_table .address_detail,
.address_grid_table .address_detail2 {
  display: block;
  font-size: 13px;
  color: #666;
  margin: 2px 0;
}

.address_grid_table tr.pick .address_detail,
.address_grid_table tr.pick .address_detail2 {
  color: #666;
}

.address_grid_table .address_country {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

.address_grid_table tr.pick .address_country {
  color: #666;
}

.address_grid_table tr.pick .col_name {
  color: #2196F3;
  font-weight: bold;
}

.address_grid_table .btn_delete {
  padding: 8px 15px;
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s;
}

.address_grid_table .btn_delete:hover {
  background-color: #c82333;
}

.address_grid_table tr.pick .btn_delete {
  background-color: #2196F3;
  color: #fff;
}

.address_grid_table tr.pick .btn_delete:hover {
  background-color: #1976D2;
}

.address_grid_table .btn_update {
  padding: 8px 15px;
  background-color: #2196F3;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s;
  /* width: 100%; */
  box-sizing: border-box;
}

.address_grid_table .btn_update:hover {
  background-color: #1976D2;
}

@media all and (min-width: 0px) and (max-width:768px) {
  .address_grid_container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 0;
    margin: 20px 0;
  }

  .address_grid_table {
    display: block;
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    box-sizing: border-box;
    table-layout: fixed;
  }

  .address_grid_table thead {
    display: none;
  }

  .address_grid_table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .address_grid_table tbody tr {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }

  .address_grid_table tbody tr.pick {
    border-left: 5px solid #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
  }

  .address_grid_table tbody tr.pick.group_purchase {
    border-left: 5px solid #007b27;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
  }

  .address_grid_table tbody td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    padding: 10px 0;
    border: none;
    text-align: left;
    clear: both;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .address_grid_table .col_name {
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
    white-space: normal;
  }

  /* 모바일에서 배송지명 붙어있게 */
  .address_grid_table .col_name .address_name_text {
    display: inline-block;
    vertical-align: middle;
  }

  .address_grid_table .address_selected_badge {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 8px;
    background-color: #2196F3;
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: normal;
    vertical-align: middle;
  }

  .address_grid_table tr.pick.group_purchase .address_selected_badge {
    background-color: #007b27;
  }

  .address_grid_table .col_name:before {
    content: "이름: ";
    display: inline-block;
    font-weight: bold;
    color: #07345e;
    margin-right: 8px;
    min-width: 55px;
  }

  .address_grid_table tr.pick .col_name::before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    max-width: 24px;
    background-color: #2196F3;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
    vertical-align: middle;
    box-sizing: border-box;
  }

  .address_grid_table tr.pick.group_purchase .col_name::before {
    background-color: #007b27;
  }

  .address_grid_table .col_address {
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
  }

  .address_grid_table .col_address:before {
    content: "주소: ";
    display: inline-block;
    font-weight: bold;
    color: #07345e;
    margin-right: 8px;
    min-width: 55px;
  }

  .address_grid_table .col_phone {
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
  }

  .address_grid_table .col_phone:before {
    content: "연락처: ";
    display: inline-block;
    font-weight: bold;
    color: #07345e;
    margin-right: 8px;
    min-width: 55px;
  }

  .address_grid_table .col_action {
    text-align: left;
    padding-top: 5px;
    border-bottom: none;
    margin-bottom: 0;
  }

  .address_grid_table .col_action:before {
    content: "";
    display: none;
  }

  .address_grid_table .btn_delete {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-top: 5px;
    box-sizing: border-box;
  }

  .address_grid_table .btn_update {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-top: 5px;
    box-sizing: border-box;
  }

  .address_grid_table .material-icons {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 5px;
  }

  .address_grid_table .address_zip {
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
  }

  .address_grid_table .address_text {
    display: block;
    margin: 5px 0 3px 0;
  }

  .address_grid_table .address_detail,
  .address_grid_table .address_detail2 {
    display: block;
    font-size: 13px;
    color: #666;
    margin: 3px 0;
  }

  .address_grid_table .address_country {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
  }
}

@media all and (min-width: 0px) and (max-width:411px) {
  .update_an_address_screen {
    margin: 0;
    padding: 2%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #07345e;
    overflow-x: hidden;
  }

  .address_grid_container {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    padding: 0;
    box-sizing: border-box;
  }

  .address_grid_table tbody tr {
    padding: 10px;
    margin-bottom: 12px;
  }

  .address_grid_table .col_name {
    font-size: 15px;
  }

  .address_grid_table .col_address,
  .address_grid_table .col_phone {
    font-size: 13px;
  }

  .address_grid_table .btn_delete {
    padding: 8px;
    font-size: 13px;
  }

  .address_grid_table .btn_update {
    padding: 8px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
  }

  .address_grid_table .material-icons {
    font-size: 16px;
  }

  .address_grid_table .address_text,
  .address_grid_table .address_detail,
  .address_grid_table .address_detail2 {
    font-size: 12px;
    word-break: keep-all;
  }

  .update_an_address_name {
    width: 60%;
    font-size: 18px;
    margin-bottom: 20px;
    float: left;
  }

  .update_an_address_add_btn {
    width: 40%;
    font-size: 10px;
    float: left;
  }

  .update_an_address_add_btn>button {
    width: 100px;
    height: 30px;
    float: right;
    border: 0px;
    background-color: #07345e;
    color: #fff;
  }

  .update_an_address_add_btn>button:hover {
    background-color: #088A68;
  }

  .update_an_address_box_div {
    width: 100%;
    float: left;
  }

  .update_an_address_box {
    width: 97%;
    border: 2px solid #088A68;
    float: left;
    margin: 5px;
    color: #088A68;
  }

  .update_an_address_box.pick {
    background-color: rgb(48, 107, 87);
    color: #fff;
  }

  .update_an_address_box_name {
    width: 100%;
    height: auto;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 23px;
  }

  .update_an_address_box_address {
    width: 100%;
    height: auto;
    font-size: 12px;
    line-height: 25px;
  }

  .update_an_address_box_address>h2 {
    margin-left: 45px;
  }

  .update_an_address_box_phone {
    margin-top: 15px;
    width: 100%;
    height: 25px;
    font-size: 12px;
    line-height: 25px;
  }

  .update_an_address_box_button {
    margin-top: 15px;
    width: 100%;
    height: 40px;
    font-size: 12px;
    background-color: #088A68;
    color: #fff;
    text-align: center;
    line-height: 35px;
  }

  .update_an_address_box_button>input[type=button], .update_an_address_box_button>input[type=submit] {
    border: 0px;
    background-color: #088A68;
    color: #fff;
  }
}

@media all and (min-width: 411px) and (max-width:768px) {
  .update_an_address_screen {
    margin: 0;
    padding: 2%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #07345e;
    overflow-x: hidden;
  }

  .address_grid_container {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    padding: 0;
    box-sizing: border-box;
  }

  .address_grid_table {
    font-size: 13px;
  }

  .address_grid_table th,
  .address_grid_table td {
    padding: 12px 10px;
    box-sizing: border-box;
  }

  .update_an_address_name {
    width: 50%;
    font-size: 18px;
    margin-bottom: 20px;
    float: left;
  }

  .update_an_address_add_btn {
    width: 50%;
    font-size: 11px;
    float: left;
  }

  .update_an_address_add_btn>button {
    width: 150px;
    height: 30px;
    float: right;
    border: 0px;
    background-color: #07345e;
    color: #fff;
  }

  .update_an_address_add_btn>button:hover {
    background-color: #088A68;
  }

  .update_an_address_box_div {
    width: 100%;
    float: left;
  }

  .update_an_address_box {
    width: 97%;
    border: 2px solid #088A68;
    float: left;
    margin: 5px;
    color: #088A68;
  }

  .update_an_address_box.pick {
    background-color: rgb(48, 107, 87);
    color: #fff;
  }

  .update_an_address_box_name {
    width: 100%;
    height: auto;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 23px;
  }

  .update_an_address_box_address {
    width: 100%;
    height: auto;
    font-size: 12px;
    line-height: 25px;
  }

  .update_an_address_box_address>h2 {
    margin-left: 45px;
  }

  .update_an_address_box_phone {
    margin-top: 15px;
    width: 100%;
    height: 25px;
    font-size: 12px;
    line-height: 25px;
  }

  .update_an_address_box_button {
    margin-top: 15px;
    width: 100%;
    height: 40px;
    font-size: 12px;
    background-color: #10588d;
    color: #fff;
    text-align: center;
    line-height: 35px;
  }

  .update_an_address_box_button>input[type=button], .update_an_address_box_button>input[type=submit] {
    border: 0px;
    background-color: #10588d;
    color: #fff;
  }
}

@media all and (min-width: 768px) and (max-width:1024px) {
  .update_an_address_screen {
    margin:2%;
    width: 96%;
    color: #07345e;
  }

  .update_an_address_name {
    width: 50%;
    font-size: 18px;
    margin-bottom: 20px;
    float: left;
  }

  .update_an_address_add_btn {
    width: 50%;
    font-size: 13px;
    float: left;
  }

  .update_an_address_add_btn>button {
    width: 300px;
    height: 30px;
    float: right;
    border: 0px;
    background-color: #07345e;
    color: #fff;
  }

  .update_an_address_add_btn>button:hover {
    background-color: #088A68;
  }

  .update_an_address_box_div {
    width: 100%;
    float: left;
  }

  .update_an_address_box {
    width: 98%;
    border: 2px solid #088A68;
    float: left;
    margin: 5px;
    color: #088A68;
  }

  .update_an_address_box.pick {
    background-color: rgb(48, 107, 87);
    color: #fff;
  }

  .update_an_address_box_name {
    width: 100%;
    height: auto;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 23px;
  }

  .update_an_address_box_address {
    width: 100%;
    height: auto;
    font-size: 11px;
    line-height: 25px;
  }

  .update_an_address_box_address>h2 {
    margin-left: 45px;
  }

  .update_an_address_box_phone {
    margin-top: 15px;
    width: 100%;
    height: 25px;
    font-size: 11px;
    line-height: 25px;
  }

  .update_an_address_box_button {
    margin-top: 15px;
    width: 100%;
    height: 40px;
    font-size: 11px;
    background-color: #176aa5;
    color: #fff;
    text-align: center;
    line-height: 35px;
  }

  .update_an_address_box_button>input[type=button], .update_an_address_box_button>input[type=submit] {
    border: 0px;
    background-color: #176aa5;
    color: #fff;
  }
}

@media all and (min-width: 1024px) and (max-width:1152px) {
  .update_an_address_screen {
    margin:2%;
    width: 96%;
    color: #07345e;
  }

  .update_an_address_name {
    width: 50%;
    font-size: 20px;
    margin-bottom: 20px;
    float: left;
  }

  .update_an_address_add_btn {
    width: 50%;
    font-size: 15px;
    float: left;
  }

  .update_an_address_add_btn>button {
    width: 300px;
    height: 30px;
    float: right;
    border: 0px;
    background-color: #07345e;
    color: #fff;
  }

  .update_an_address_add_btn>button:hover {
    background-color: #088A68;
  }

  .update_an_address_box_div {
    width: 100%;
    float: left;
  }

  .update_an_address_box {
    width: 98%;
    height: auto;
    border: 2px solid #088A68;
    float: left;
    margin: 5px;
    color: #088A68;
  }

  .update_an_address_box.pick {
    background-color: rgb(48, 107, 87);
    color: #fff;
  }

  .update_an_address_box_name {
    width: 100%;
    height: auto;
    font-size: 19px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 23px;
  }

  .update_an_address_box_address {
    width: 100%;
    height: auto;
    font-size: 15px;
    line-height: 25px;
  }

  .update_an_address_box_address>h2 {
    margin-left: 45px;
  }

  .update_an_address_box_phone {
    margin-top: 15px;
    width: 100%;
    height: 25px;
    font-size: 15px;
    line-height: 25px;
  }

  .update_an_address_box_button {
    margin-top: 15px;
    width: 100%;
    height: 40px;
    font-size: 15px;
    background-color: #088A68;
    color: #fff;
    text-align: center;
    line-height: 35px;
  }

  .update_an_address_box_button>input[type=button], .update_an_address_box_button>input[type=submit] {
    border: 0px;
    background-color: #088A68;
    color: #fff;
  }
}

@media all and (min-width: 1152px) {
  .update_an_address_screen {
    margin:2%;
    width: 96%;
    color: #07345e;
  }

  .update_an_address_name {
    width: 50%;
    font-size: 20px;
    margin-bottom: 20px;
    float: left;
  }

  .update_an_address_add_btn {
    width: 50%;
    font-size: 15px;
    float: left;
  }

  .update_an_address_add_btn>button {
    width: 300px;
    height: 30px;
    float: right;
    border: 0px;
    background-color: #07345e;
    color: #fff;
  }

  .update_an_address_add_btn>button:hover {
    background-color: #088A68;
  }

  .update_an_address_box_div {
    width: 100%;
    float: left;
  }

  .update_an_address_box {
    width: 98%;
    height: auto;
    border: 2px solid #07345e;
    float: left;
    margin: 5px;
    color: #07345e;
    overflow: hidden;
  }

  .update_an_address_box.pick {
    background-color: rgb(44 80 125);
    color: #fff;
  }

  .update_an_address_box_name {
    width: 100%;
    height: auto;
    font-size: 19px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 23px;
  }

  .update_an_address_box_address {
    width: 100%;
    height: auto;
    font-size: 15px;
    line-height: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .update_an_address_box_address>h2 {
    margin-left: 45px;
  }

  .update_an_address_box_phone {
    margin-top: 15px;
    width: 100%;
    height: 25px;
    font-size: 15px;
    line-height: 25px;
  }

  .update_an_address_box_button {
    margin-top: 15px;
    width: 100%;
    height: 40px;
    font-size: 15px;
    background-color: #10588d;
    color: #fff;
    text-align: center;
    line-height: 35px;
  }

  .update_an_address_box_button>input[type=button], .update_an_address_box_button>input[type=submit] {
    border: 0px;
    background-color: #10588d;
    color: #fff;
  }
}
