@import url("variables.css");

.saved-ads-main-container, .my-ads-main-container {
  width: 100%;
  height: 100%;
}

.no-saved-ads, .no-my-ads {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.no-saved-ads-main-container, .no-my-ads-main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.no-saved-ads-main-container img,
.no-my-ads-main-container img  {
  width: 150px;
}

.no-saved-ads-main-container p,
.no-my-ads-main-container p {
  font-size: 18px;
  margin-top: 20px;
  font-weight: bold;
  text-align: center;
}

.no-saved-ads-main-container button,
.no-my-ads-main-container button {
  padding: 12px 20px;
  background-color: var(--third-color);
  color: white;
  border-radius: 5px;
  margin-top: 20px;
}

.saved-ads table, .my-ads-old table {
  width: 100%;
}

.saved-ads th, .my-ads-old th {
  text-align: start;
  padding: 10px;
}

.saved-ads td, .my-ads-old td {
  padding: 10px;
}

.saved-title {
  font-size: 16px;
  margin: 0;
  padding: 0;
  font-weight: 650;
}

.saved-ads tr, .my-ads-old tr {
  border-bottom: 1px solid var(--border-color);
}

.saved-ads a, .my-ads-old a {
  text-decoration: none;
  color: var(--blue-color);
}

.saved-price {
  color: black;
  font-weight: 700;
  margin: 0;
  display: inline-block;
  text-decoration: underline;
}

.saved-price-old {
  color: black;
  text-decoration: line-through;
  display: inline-block;
  margin: 0;
}

/* .saved-ads thead {
    padding: 20px;
} */

.saved-ads thead tr, .my-ads-old thead tr {
  border-bottom: 1px solid var(--border-color);
  color: var(--greytext);
}

.table-image {
  width: 80px;
  height: 80px;
}
.table-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-damage.damage {
  color: red;
}

.saved-price-close-container {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  background-color: red;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  background-image: url("../../public/src/close-icon-white.svg");
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
}

.delete-edit-buttons {
  padding: 7px 7px;
  margin: 2px;
  text-align: center;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.delete-edit-buttons img {
  width: 20px;
  height: 20px;
}

.reasons-div {
  display: flex;
  gap: 5px;
}

.reason {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--fourth-color);
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.5s ease;
}

.reason span {
  display: inline-block;
}

.reason:hover {
  background-color: var(--fourth-color);
  /* color: white; */
}

.delete-backgound-container,
.newsletter-backgound-container,
.renew-background-container {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  padding: 20px;
  display: none;
  justify-content: center;
  align-items: center;
}

.delete-main-container,
.newsletter-main-container,
.renew-main-container {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background-color: white;
  transform: scale(0);
  opacity: 0;
}

.delete-main-container.active,
.newsletter-main-container.active,
.renew-main-container.active {
  animation: showDeleteConfirm 0.3s ease-in-out forwards;
}

.delete-main-container.close,
.newsletter-main-container.close,
.renew-main-container.close {
  animation: deleteDeleteConfirm 0.3s ease-in-out forwards;
}

.renew-btn{
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid var(--main-color);
  border-radius: 10px;
  color: var(--main-color);
  display: flex;
  align-items: center;
  gap: 5px;
  transition-duration: 300ms;
}
#icon-path{
  width: 20px;
  height: 20px;
}
.icon-path{
  fill: var(--main-color);
  transition-duration: 300ms;
}
.icon-path:hover{
  fill: white;
}

.renew-btn:hover{
  background-color: var(--main-color);
  color: white;
}
.renew-btn:hover .icon-path{
  fill: white;
}

@keyframes showDeleteConfirm {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes deleteDeleteConfirm {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.delete-main-container p {
  margin: 0;
  padding: 0;
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}

.delete-confirm {
  width: 100%;
  background-color: #041e42;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  cursor: pointer;
}
.my-ads-old thead{
  width: 100%;
}

.delete-confirm img {
  width: 20px;
  margin-top: -2px;
  margin-right: 5px;
}
.saved-actions .main {
  display: flex;
  flex-direction: column;
}

.table-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loadmorecontainer-myads {
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
  display: none;
  flex-direction: column;
}

.loadmorebutton-myads {
  color: var(--main-color) !important;
  font-size: 16px;
}

.loadmorebutton-myads:hover {
  font-weight: bold;
}

.loadmoreindicator-myads {
  width: 100%;
  max-width: 200px;
  height: 6px;
  margin-bottom: 10px;
  background-color: #ffdbdb;
  border-radius: 3px;
}

.loadmoreindicatormain-myads {
  width: 70%;
  height: 100%;
  background-color: var(--main-color);
  border-radius: 3px;
}
.my-ad-title{
  max-width: 200px;
}

@media screen and (max-width: 767px) {
  .saved-date {
    display: none;
  }

  .table-image {
    width: 60px;
    height: 60px;
  }
  .my-ad-created{
    display: none;
  }
  .renew-btn{
    padding: 5px 10px;
    gap: 2px;
  }
}

@media screen and (max-width: 600px) {
  .renew-label{
    display: none;
  }
  .expiration_label{
    font-size: 10px;
  }
  .saved-damage,
  .saved-brand,
  .saved-price2,
  .saved-image {
    display: none;
  }
  .saved-actions .main {
    display: flex;
    flex-direction: row;
    justify-content: end;
  }
  .table-image {
    display: none;
  }
  .table-image-head {
    display: none;
  }
  .table-price {
    display: none;
  }

  .my-ad-image, .my-ad-price, .my-ad-created {
    display: none;
  }
  .my-ad-title {
    max-width: 150px;
  }
}

@media screen and (max-width: 500px) {
  .saved-state {
    display: none;
  }
}
