.dashboard-widget {
  border-radius: 0.25rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  display: block;
  margin-bottom: 20px;
  position: relative;
  background: #3a803e;
  color: #fff;
}

.dashboard-widget.is-layout-flow > * {
  margin-bottom: 0 !important;
}

.dashboard-widget h3 {
  font-size: 2.2rem !important;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.dashboard-widget p {
  font-size: 1rem;
  font-weight: 500;
}

.dashboard-widget > .inner {
  padding: 10px;
}

.dashboard-widget .icon {
  color: rgba(0, 0, 0, 0.15);
  z-index: 0;
}

.dashboard-widget .icon > i {
  font-size: 70px;
  position: absolute;
  right: 15px;
  top: 20px;
  transition: -webkit-transform 0.3s linear;
  transition: transform 0.3s linear;
  transition: transform 0.3s linear, -webkit-transform 0.3s linear;
}

.dashboard-widget:hover .icon > i {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.dashboard-widget > .dashboard-widget-footer {
  background-color: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 5px 0;
  position: relative;
  text-align: center;
  text-decoration: none;
  z-index: 10;
  font-weight: 500;
}

.dashboard-widget > .dashboard-widget-footer:hover {
  background-color: rgba(0, 0, 0, 0.15);
  color: #fff;
}

.ct-woo-badge-popular {
  background-color: #de283f !important;
  border-radius: 3px !important;
}

/* Top Buyers */
figure.leaderboard {
  background-image: linear-gradient(
    to right top,
    #6faa9a,
    #84baa0,
    #9ccaa6,
    #b6daac,
    #d2e9b3
  );
  padding: 30px;
  border-radius: 10px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.leaderboard table.top-buyers,
.leaderboard table.top-buyers th,
.leaderboard table.top-buyers td {
  border-width: 0;
  border-style: none;
}

.leaderboard table.top-buyers thead {
  border-style: none;
}

.leaderboard table.top-buyers thead th {
  padding: 0 12px 25px 0;
}

.leaderboard table.top-buyers thead th.badge {
  text-align: center;
}

.leaderboard table.top-buyers thead th.badge span {
  vertical-align: middle;
  padding-left: 5px;
  cursor: pointer;
}

.leaderboard table.top-buyers tbody tr {
  transition: all 0.2s ease-in-out;
}

.leaderboard table.top-buyers tbody tr:nth-child(odd) {
  background: #9ccba7;
}

.leaderboard table.top-buyers tbody tr:nth-child(even) {
  background: transparent;
}

.leaderboard table.top-buyers tbody tr:hover {
  background: #c9e4b1;
}

.leaderboard table.top-buyers tbody td {
  padding: 12px 15px 12px 0;
}

.leaderboard table.top-buyers tbody td.rank {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.leaderboard table.top-buyers tbody td.avatar {
  width: 8%;
  padding-right: 0;
}

.leaderboard table.top-buyers tbody td.name {
  font-weight: 700;
}

.leaderboard table.top-buyers tbody td.name .flex-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.leaderboard table.top-buyers tbody td.name .avatar {
  flex: none;
}

.leaderboard table.top-buyers tbody td.name .name {
  flex: 1 1 auto;
}

.leaderboard table.top-buyers tbody td.tree,
.leaderboard table.top-buyers tbody td.tier {
  font-weight: 500;
}

.leaderboard table.top-buyers tbody td.tree > svg {
  vertical-align: middle;
  padding-left: 5px;
}

.leaderboard table.top-buyers tbody td.badge {
  text-align: center;
}

.leaderboard table.top-buyers tbody td.badge svg {
  vertical-align: middle;
}

.leaderboard table.top-buyers img.avatar {
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  width: 42px;
  filter: drop-shadow(0px 4px 5px #4f898a);
}

@media only screen and (max-width: 600px) {
  figure.leaderboard {
    padding: 20px 10px;
  }

  .leaderboard table.top-buyers,
  .leaderboard table.top-buyers th,
  .leaderboard table.top-buyers td {
    font-size: 14px;
  }

  .leaderboard table.top-buyers thead th {
    font-weight: 500;
  }

  .leaderboard .top-buyers .hidden-mobile {
    display: none;
  }

  .leaderboard table.top-buyers tbody td.rank {
    font-size: 20px;
  }

  .leaderboard table.top-buyers tbody td.rank,
  .leaderboard table.top-buyers tbody td.name {
    font-weight: 500;
  }

  .leaderboard table.top-buyers tbody td.avatar {
    width: 10%;
  }

  .leaderboard table.top-buyers tbody td.tree {
    text-align: center;
  }

  .leaderboard table.top-buyers tbody td.badge svg {
    height: 20px;
  }
}

/* Top Buyers (plain) */
figure.leaderboard-plain {
  background: #fff;
}

.leaderboard-plain table.top-buyers,
.leaderboard-plain table.top-buyers th,
.leaderboard-plain table.top-buyers td {
  border-width: 0;
  border-style: none;
}

.leaderboard-plain table.top-buyers thead {
  border-style: none;
}

.leaderboard-plain table.top-buyers thead th {
  padding: 0 15px 25px 0;
}

.leaderboard-plain table.top-buyers thead th.badge {
  text-align: center;
}

.leaderboard-plain table.top-buyers thead th.badge span {
  vertical-align: middle;
  padding-left: 5px;
  cursor: pointer;
}

.leaderboard-plain table.top-buyers tbody tr {
  border-bottom: 1px solid #e8e9ea;
}

.leaderboard-plain table.top-buyers tbody td {
  padding: 18px 15px 18px 0;
}

.leaderboard-plain table.top-buyers tbody td.rank {
  text-align: center;
  font-weight: 500;
}

.leaderboard-plain table.top-buyers tbody td.avatar {
  width: 8%;
  padding-right: 0;
}

.leaderboard-plain table.top-buyers tbody td.name {
  font-weight: 500;
}

.leaderboard-plain table.top-buyers tbody td.name .flex-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.leaderboard-plain table.top-buyers tbody td.name .avatar {
  flex: none;
}

.leaderboard-plain table.top-buyers tbody td.name .name {
  flex: 1 1 auto;
}

.leaderboard-plain table.top-buyers tbody td.tree > svg {
  vertical-align: middle;
  padding-left: 5px;
}

.leaderboard-plain table.top-buyers tbody td.badge {
  text-align: center;
}

.leaderboard-plain table.top-buyers tbody td.badge svg {
  vertical-align: middle;
}

.leaderboard-plain table.top-buyers img.avatar {
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  width: 42px;
  filter: drop-shadow(0px 4px 3px #ccc);
}

@media only screen and (max-width: 600px) {
  .leaderboard-plain .top-buyers .hidden-mobile {
    display: none;
  }

  .leaderboard-plain table.top-buyers,
  .leaderboard-plain table.top-buyers th,
  .leaderboard-plain table.top-buyers td {
    font-size: 14px;
  }

  .leaderboard-plain table.top-buyers thead th {
    font-weight: 500;
  }

  .leaderboard-plain table.top-buyers tbody td.avatar {
    width: 10%;
  }

  .leaderboard-plain table.top-buyers tbody td.tree {
    text-align: center;
  }

  .leaderboard-plain table.top-buyers tbody td.badge svg {
    height: 20px;
  }
}

// Modal Popup
.dialog {
  padding: 20px;
  background: transparent;
  max-width: 90%;
  width: 800px;
  border-radius: 5px;
  border: 0;
  animation: fadeIn 1s ease both;
}
.dialog::backdrop {
  animation: fadeIn 1s ease both;
  background: rgb(0 0 0 / 30%);
  z-index: 2;
}
.dialog figure {
  background: #fff;
  box-shadow: 0 5px 30px 0 rgb(0 0 0 / 10%);
  border-radius: 5px;
}
.dialog .close {
  border: none;
  background: #606061;
  color: #ffffff;
  line-height: 30px;
  text-align: center;
  width: 30px;
  font-weight: bold;
  position: absolute;
  top: 6px;
  right: 10px;
  transition: ease filter, transform 0.3s;
  cursor: pointer;
  transform-origin: center;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  padding: 0;
}
dialog .close:hover {
  transform: scale(1.1);
  background: #3b813e;
  -moz-transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

table.leaderboard_indicator,
table.leaderboard_indicator th,
table.leaderboard_indicator td {
  border: 0;
  padding: 10px;
}

table.leaderboard_indicator thead {
  background: #d2e9b3;
  text-transform: uppercase;
  border: 0;
}

table.leaderboard_indicator thead th {
  font-weight: 500;
}

table.leaderboard_indicator td {
  border-bottom: 1px solid #e8e9ea !important;
}

table.leaderboard_indicator td svg {
  vertical-align: middle;
  height: 20px;
}

@media only screen and (max-width: 767px) {
  .dialog {
    max-width: 100%;
  }
}

/* Basic User Avatars */
form#basic-user-avatar-form {
  padding: 30px;
  margin-bottom: 35px;
  border: 1px dashed #333;
}

form#basic-user-avatar-form img {
  float: left;
  margin: 0 20px 20px 0;
  width: 120px;
}

form#basic-user-avatar-form p {
  margin-bottom: 15px;
  font-size: 14px;
}

form#basic-user-avatar-form input[type="submit"] {
  font-size: 14px;
  padding: 0 12px;
}

.avatar-message {
  display: block;
  color: red;
  font-size: 13px;
  padding-bottom: 5px;
}

/** Telegram CTA **/
.telegram-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* margin-top: 2.5rem; */
  margin-bottom: 2.5rem;
  border-radius: 0.25rem;
  background: #d9edf7;
  color: #31708f;
  border: 1px solid #bce8f1;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: left;
}

.telegram-cta p {
  margin-bottom: 0;
}

.telegram-cta .cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  border-radius: 0.25rem;
  border: 1px solid #31708f;
  padding: 0.5rem 0.75rem;
  margin-left: 0.5rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
}

.telegram-cta .cta-button:hover {
  color: #fff;
  background: #337ab7;
  border-color: #2e6da4;
}

.telegram-cta .cta-button svg {
  margin-left: 0.75rem;
  width: auto;
  height: 1.5rem;
}

@media only screen and (max-width: 600px) {
  .telegram-cta {
    display: block;
    text-align: center;
  }

  .telegram-cta p {
    margin-bottom: 1.5rem;
    line-height: 1.625;
  }

  .telegram-cta .cta-button {
    margin-left: 0;
  }
}

/* Widget Category */
.widget-category {
  background: #fcfcfc;
  border: 1px solid #efefef;
  padding: 30px;
}

.widget-category ul.wp-block-categories-list li {
  border-bottom: 1px solid #efefef;
  padding: 6px 0;
}

.widget-category ul.wp-block-categories-list li a span.count {
  float: right;
  border-radius: 50%;
  height: 22px;
  width: 22px;
  text-align: center;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 11px;
  background: #616161;
  color: #fff;
}

.widget-category ul.wp-block-categories-list li a:hover span.count {
  background: #4b9e21;
  color: #fff;
}

/* User Account */
.user-profile-section {
  padding: 30px 20px;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  text-align: center;
  font-size: 15px;
}

.user-profile-section:hover {
  border: 1px solid #4b9e21;
}

.user-profile-section img {
  border-radius: 50%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.user-profile-section div.name {
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 5px;
}

.user-profile-section div.state-country {
  font-size: 12px;
  color: #a3a3a3;
  margin-bottom: 20px;
}

.user-profile-section div.state-country svg {
  color: #a3a3a3;
  margin-right: 5px;
}

.user-profile-section div.role span {
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  color: #4b9e21;
  text-transform: capitalize;
  border: 1px solid #4b9e21;
}

.user-profile-section p:last-child {
  margin-bottom: 0 !important;
}

.woocommerce-MyAccount-navigation {
  border: 1px solid rgba(0, 0, 0, 0.05);
}
