section.user-account {
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

section.user-account .note {
  margin: 0 auto;
}

section.user-account .account-side-nav {
  width: 25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--clr-gray-100);
  padding: 1rem;
  border-radius: var(--radius-400);
}

section.user-account .account-side-nav a {
  width: 100%;
  height: 4rem;
  display: flex;
  align-items: center;
  color: var(--clr-gray-d100);
  transition: all 300ms ease-in-out;
  font-weight: 500;
  font-size: 1.5rem;
  padding: 0 1rem;
  border-radius: var(--radius-200);
}

section.user-account .account-side-nav a:hover,
section.user-account .account-side-nav a.active {
  background-color: white;
  color: var(--clr-primary);
}

.section {
  width: calc(100% - 25rem);
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  display: none;
  border: 0.1rem solid var(--clr-gray-200);
  border-radius: var(--radius-400);
}

.section .section-title {
  width: 100%;
  color: var(--clr-primary);
  padding: 1.5rem 0;
  border-bottom: 0.1rem solid var(--clr-gray-200);
  margin-bottom: 1.5rem;
}

.section-active {
  display: flex;
  animation-name: fadeIn;
  animation-duration: 2s;
}

.section form {
  width: 80%;
  align-items: flex-start;
}

.section form button {
  width: 50%;
}

section .account-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

section .account-actions a {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--clr-gray-d100);
  position: relative;
  padding: 0.5rem 0;
}

section .account-actions a::after {
  width: 0%;
  content: "";
  height: 0.2rem;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  transition: all 300ms ease-in-out;
}

section .account-actions a:hover::after {
  width: 100%;
}

section .account-actions a.logout {
  color: orange;
}
section .account-actions a.logout::after {
  background-color: orange;
}

section .account-actions a.delete-account {
  color: rgb(255, 0, 76);
}

section .account-actions a.delete-account::after {
  background-color: rgb(255, 0, 76);
}

section .account-actions a span {
  font-size: 1.8rem;
  transition: all 400ms ease-in-out;
}

section .account-actions a:hover span {
  margin-left: 0.4rem;
}

section.user-account .orders-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section.user-account .table-container {
  width: 100%;
}

section.user-account .filter-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

section.user-account .main-filter {
  padding: 0.5rem 1.5rem;
  background-color: var(--clr-gray-200);
  color: var(--clr-gray-d100);
  border-radius: var(--radius-200);
  transition: all 300ms ease-in-out;
  font-size: 1.5rem;
}

section.user-account .main-filter:hover {
  transform: scale(1.05);
}

section.user-account .main-filter.delivered {
  background-color: rgb(226, 249, 226);
  color: rgb(6, 186, 69);
}
section.user-account .main-filter.delivered:hover {
  color: white;
  background-color: rgb(6, 186, 69);
}
section.user-account .main-filter.pending {
  background-color: rgb(254, 249, 225);
  color: rgb(243, 142, 47);
}
section.user-account .main-filter.pending:hover {
  color: white;
  background-color: rgb(243, 142, 47);
}
section.user-account .main-filter.cancelled {
  background-color: rgb(250, 241, 246);
  color: rgb(186, 6, 111);
}
section.user-account .main-filter.cancelled:hover {
  color: white;
  background-color: rgb(186, 6, 111);
}

section.user-account .table-container td .status {
  width: 13rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-200);
}

section.user-account .table-container td.product-title {
  width: 50%;
}
section.user-account .table-container td.product-title a {
  width: 100%;
  font-weight: 600;
  color: rgb(24, 94, 233);
  text-align: left;
  text-decoration: underline;
}

section.user-account .table-container td .delivered {
  background-color: rgb(226, 249, 226);
  color: rgb(6, 186, 69);
}

section.user-account .table-container td .pending {
  background-color: rgb(254, 249, 225);
  color: rgb(243, 142, 47);
}

section.user-account .table-container td .cancelled {
  background-color: rgb(250, 241, 246);
  color: rgb(186, 6, 111);
}

section.user-account .table-container a.rate-product {
  color: rgb(0, 132, 255);
}

section.user-account .table-container a.rate-product:hover {
  text-decoration: underline;
}

.popup-container {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.788);
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-1rem);
  transition: all 300ms ease-in-out;
}

.popup-container.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.popup-container .popup-modal {
  width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius-400);
}

.popup-container .popup-modal h2 {
  width: 100%;
  height: 6rem;
  display: flex;
  align-items: center;
  border-bottom: 0.1rem solid var(--clr-gray-100);
}

.popup-container p {
  width: 100%;
}

.popup-container .link-group {
  width: 100%;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-container .link-group a {
  width: 12rem;
  padding: 0.5rem 1.2rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-200);
}

.popup-container .link-group a.close-popup {
  background-color: var(--clr-accent-darkest);
}

.popup-container .link-group a.confirm {
  background-color: rgb(186, 6, 111);
}

section.user-account .reviews {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section.user-account .review {
  width: 80%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  padding: 1rem;
  border-radius: var(--radius-200);
}

section.user-account .review .product-thumbnail {
  width: 10rem;
  height: 10rem;
  background-color: var(--clr-gray-100);
}

section.user-account .review .product-thumbnail img {
  object-fit: contain;
}

section.user-account .review .product-title {
  width: 50%;
  font-size: 1.8rem;
  font-weight: 800;
}

section.user-account .review .col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 950px) {
  .section form {
    width: 100%;
  }
}
@media (max-width: 800px) {
  section.user-account .account-side-nav {
    width: 100%;
  }

  .section {
    width: 100%;
  }

  section.user-account .table-container td.product-title {
    min-width: 40rem;
    font-weight: 600;
  }
}
