/* ---------------  My Account  --------------------- */
/* ---- general tabs style ---- */
.toggle__section {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
}
.toggle__section--headline ul li {
  margin-bottom: 1rem;
}
.toggle__section--headline h4 {
  cursor: pointer;
}
.toggle__section--content {
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
  background-color: var(--tabs-background);
  padding: 1rem 0 2rem 0;
}

.toggle__section--headline .tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 99%;
  will-change: width;
  padding: 5px 10px;
}
.tab__icon {
  width: 21px;
}
.tab__icon img {
  max-width: 100%;
  height: auto;
}

.toggle__section--headline .tab.active {
  background-color: #ddd;
  border-radius: 8px;
}
.section__content--title {
  color: var(--main-background);
}
/* --- End of general tabs style --- */
/* ---- My details ----- */
.section__content--details {
  display: flex;
  justify-content: space-evenly;
}
.profile__preview {
  border: 5px solid #fff;
  border-radius: 50%;
  min-height: 90px;
  min-width: 90px;
  max-height: 90px;
  max-width: 90px;
  overflow: hidden;
}
.section__content--profile {
  position: relative;
}
.section__content--profile .profile__upload input {
  display: none;
}
.section__content--profile .profile__upload label {
  width: 20px;
  cursor: pointer;
  position: absolute;
  bottom: -2px;
  right: 10px;
  height: 20px;
  background-color: var(--main-background);
  border-radius: 50%;
}
.profile__preview img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

.input__container--upload input {
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.input__container--preview {
  max-width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 15px;
  margin: 1rem auto;
  position: relative;
}
.input__container--preview img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.input__container--upload label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

/* ----- My details ------ */
/* ----- Payments ------ */
.section__content--payment form {
  width: 60%;
  margin: auto;
}
[name="bankSelection"] {
  border-radius: 15px;
}
/* ----- Payments ------ */
/* ----- language ------ */
.section__content--language {
  margin: auto;
  width: 100%;
}
.language__actions {
  width: -moz-fit-content;
  width: fit-content;
}
.language__actions--btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 3rem;
  padding: 10px 13px;
  border: 1px solid var(--main-background);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--main-transition);
  color: var(--main-background);
}
.language__actions--btn:hover {
  background-color: var(--main-background);
  opacity: 0.7;
  color: #000;
}
/* ----- language ------ */

/* --------------- End of My Account  ----------------- */

.input__width--center {
  width: 500px;
  gap: 20px;
}
/* Media query */
@media (max-width: 991px) {
  .toggle__section {
    display: block;
  }
  .toggle__section--headline ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
  }
  .toggle__section--headline .tab {
    width: auto;
    column-gap: 6px;
  }
  .toggle__section--content {
    margin: auto;
  }
}
/* End of media query  */

@media (max-width: 550px) {
  .input__width--center {
    width: 80%;
  }
}
