/* Main container for accordions */
.user_profile_address {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  padding-bottom: 100px;
  min-height: 480px;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  max-height: -webkit-fit-content;
  max-height: -moz-fit-content;
  max-height: fit-content;
}

/* Inpost addresses div */
.inpost_warsaw_posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 546px;
  width: 100%;
}

/* Highlighted inpost */
.highlighted_inpost {
  color: var(--purple1);
}

/* Help address div */
.help_addresses {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 30px;
}

/* Help address text */
.help_addresses .caption5 {
  color: var(--purple1);
  font-weight: 600;
}

/* Help address link */
.help_addresses > a {
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid var(--grey4);
}

/* Accordion collapsed state */
.address_accordion_summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

/* Warehouse + post adresses accordions */
.warehouse_address,
.post_address,
.warsaw_address {
  padding: 20px 20px 0px 20px;
  border: 1px solid var(--grey4);
  border-radius: 5px;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

/* Address accordion button div */
.address_accordion_btn_div {
  padding-left: 15px;
}

/* Active accordion */
.warehouse_address:has(.active_warehouse_accordion),
.post_address:has(.active_post_accordion),
.warsaw_address:has(.active_post_accordion) {
  border: 1px solid var(--purple1);
}

/* Accordion collapsed state informational text */
.informational_address_text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Accordion button for collapsing/expanding */
.address_accordion_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--purple1);
  cursor: pointer;
  background-color: inherit;
}

/* Accordion button icon */
.address_accordion_btn img {
  margin-top: 2px;
}

/* Accordion button icon */
.active_address_accordion img {
  transform: rotate(180deg);
}

/* Expanded accordion */
.expanded_accordion_general_info {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--grey2);
  border-bottom: 1px solid var(--grey2);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Expanded accordion specific section */
.accordion_section_info {
  display: flex;
  flex-direction: column;
}

/* Expanded accordion specific section */
.expanded_accordion_general_info > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Copy button icon */
.accordion_copy_btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background-color: inherit;
  border: none;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  cursor: pointer;
}

/* Expanded accordion last section */
.accordion_extra_info {
  padding-bottom: 20px;
  padding-top: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Post address accordion last 2 sections */
.post_accordion_extra_info,
.post_accordion_last_extra_info {
  padding-bottom: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Collapsed accordion purple text */
.informational_address_text .body4 {
  color: var(--purple1);
}

/* PL number */
.unique_pl {
  color: var(--purple1);
}

/* Expanded accordion specific section title */
.accordion_section_info .body3 {
  color: var(--grey1);
}

/* Expanded accordion last section title */
.accordion_extra_info .caption2 {
  color: var(--grey1);
}

/* Expanded post address accordion last section's red text */
.post_accordion_extra_info .caption2 {
  color: var(--red1);
}

/* Expanded post address accordion last section's grey text */
.post_accordion_last_extra_info .caption2 {
  color: var(--grey1);
}

/* Expanded accordions last section's purple text */
.highlight_info {
  color: var(--purple1);
}

/* Text after copy to clipboard (inactive) */
.active_copy_text,
.active_copy, .accordion_copy_btn picture:last-child {
  display: none;
}

/* Text after copy to clipboard (active) */
.activated_copy .active_copy_text,
.activated_copy .active_copy, .activated_copy picture:last-child {
  display: block;
}

/* Active copy icon */
.activated_copy .default_copy, .activated_copy picture:first-child {
  display: none;
}

/* Active copy text */
.active_copy_text {
  font-weight: 500;
  font-family: 'poppins';
}

/* Accordion transition effect to collapsed state */
.warehouse_address_accordion {
  max-height: 0px;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  pointer-events: none;
}

/* Accordion transition effect to expanded state */
.active_warehouse_accordion.warehouse_address_accordion {
  opacity: 1;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  max-height: 1000px;
  transition: max-height 0.5s ease, opacity 1.3s ease;
  pointer-events: all;
}

/* Post address accordion */
.post_address_accordion {
  max-height: 0px;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  pointer-events: none;
}

/* Post address accordion */
.active_post_accordion.post_address_accordion {
  opacity: 1;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  max-height: 1000px;
  transition: max-height 0.5s ease, opacity 1.3s ease;
  pointer-events: all;
}

/* Confirm button */
#confirm-delivery,
#confirm-delivery-warsaw {
  width: 100%;
  margin-bottom: 20px;
}

/* Tracking number */
#tracking-number,
#tracking-number-warsaw {
  width: 90%;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

@media screen and (max-width: 1100px) {
  /* Main container for accordions */
  .user_profile_address {
    padding-left: 50px;
    padding-right: 50px;
  }

  /* Help address div */
  .help_addresses {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media screen and (max-width: 950px) {
  /* Main container for accordions */
  .user_profile_address {
    flex-direction: column;
    gap: 12px;
  }

  /* Warehouse + post address accordions */
  .warehouse_address,
  .inpost_warsaw_posts {
    max-width: unset;
  }

  .post_address,
  .warsaw_address {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  /* Main container for accordions */
  .user_profile_address {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 20px;
    min-height: 380px;
  }

  /* Collapsed accordion text */
  .informational_address_text {
    gap: 0px;
  }

  /* Help address div */
  .help_addresses {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 20px;
  }

  /* Help address text */
  .help_addresses .caption5 {
    font-size: 13px;
  }

  /* Help address link */
  .help_addresses > a {
    padding: 10px 15px;
  }

  /* Help address link text */
  .help_addresses > a .btn4 {
    font-size: 14px;
  }

  /* Help address link icon */
  .help_addresses > a img {
    width: 16px;
    height: 16px;
  }

  /* Collapsed accordion button */
  .address_accordion_btn {
    width: 30px;
    height: 30px;
  }

  /* Collapsed accordion button icon */
  .address_accordion_btn img {
    width: 12px;
    height: auto;
  }

  /* Collapsed accordion purple text title */
  .informational_address_text .body4 {
    font-size: 12px;
    line-height: 18px;
  }

  /* Collapsed accordion black text title */
  .informational_address_text .h3 {
    font-size: 16px;
    line-height: 24px;
  }

  /* Expanded accordion container */
  .expanded_accordion_general_info {
    padding-top: 15px;
    padding-bottom: 15px;
    gap: 10px;
  }

  /* Expanded accordion extra info section */
  .accordion_extra_info {
    padding-top: 15px;
  }

  /* Copy to clipboard icon */
  .accordion_copy_btn img {
    width: 15px;
    height: 18px;
  }

  /* Expanded accordion section title */
  .accordion_section_info .body3 {
    font-size: 12px;
    line-height: 18px;
  }

  /* Expanded accordion section value */
  .accordion_section_info .body2 {
    font-size: 14px;
    line-height: 21px;
  }

  /* Expanded accordion extra info text */
  .accordion_extra_info .caption2 {
    font-size: 12px;
    line-height: 18px;
  }

  /* Active copy text */
  .active_copy_text {
    font-size: 10px;
    line-height: 18px;
  }

  /* Tracking number input */
  #tracking-number,
  #tracking-number-warsaw {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  /* Confirm delivery button */
  #confirm-delivery,
  #confirm-delivery-warsaw {
    height: 45px;
    margin-bottom: 15px;
  }

  /* Expanded post address accordion extra info text */
  .post_accordion_extra_info .caption2,
  .post_accordion_last_extra_info .caption2 {
    font-size: 12px;
    line-height: 18px;
  }

  /* Expanded post address accordion extra info container */
  .post_accordion_extra_info {
    padding-bottom: 15px;
  }
}

@media screen and (max-width: 479px) {
  /* Help addresses div */
  .help_addresses {
    flex-direction: column;
    align-items: start;
    gap: 5px;
  }
}
