.l2sa-list {
  padding: 10px;
}

.l2sa-header-banner {
    background-color: #000000;
}

.l2sa-header-banner img {
    -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 2%, #000000);
    mask-image: linear-gradient(0deg, rgba(0,0,0,0) 2%, #000000);
}

.l2sa-form-rules-img img {
  mask-image: none;
}

.l2-sa-ads-sidebar img {
  mask-image: none;
}

/* Server card */

.l2sa-cat-name {
  color: #ffffff;
  text-align: left;  
}

.l2sa-block {
  padding: 0;
}

.l2sa-card {
  border-radius: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: rgb(48 45 59 / var(--tw-bg-opacity, 1));
  display: grid;
  grid-template-columns: 30px 200px 1fr 1fr 1fr;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid #302d3b;
}



.l2sa-card span {
  /* padding: 10px; */
  text-transform: uppercase;
}

.l2sa-block h4 {
  text-align: center;
  border-bottom: 0.5px solid #c0c0c0;
  font-size: 18px;
  padding-bottom: 5px;
}

.l2sa-block h4 i {
  margin: 0;
  padding: 0;
  padding-right: 8px;
  font-size: 20px;
  color: #ec6714;
}

.l2sa-card .sp-server-status{
  text-align: center;
  font-size: 16px;
  padding-left: 10px;
  color: #ec6714;
  max-width: 30px;
}

/* tooltip server status */

.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip-trigger {
  cursor: pointer;
}

.tooltip {
  width: 70px;
  position: absolute;
  text-align: center;
  bottom: calc(100% + 10px); 
  margin-left: 24px;
  /* left: 100%; */
  transform: translateX(-50%);
  background: rgb(255, 255, 255);
  color: #000000;
  padding: 4px 5px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s ease;
}

/* Стрелочка */
.tooltip::after {
  content: "";
  position: absolute;
  left: 20%;
  top:100%;
  width: 8px;
  height: 8px;
  background: rgb(255, 255, 255);
  transform: translateY(-50%) rotate(45deg);
}

/* Появление */
.tooltip-trigger:hover + .tooltip,
.tooltip-wrap:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}

/* ----- */

.l2sa-card .sp-server-name{
  text-align: left;
  padding-left: 11px;
  font-size: 14px;
  color: #ffffff;
  width: 200px;
}

.l2sa-card .sp-server-name.empty-server-list{
  color: #ee773c;
  text-transform: uppercase;
  font-size: 11px;
}

.sp-server-name a{
  text-decoration: none;
  color: #ffffff;
}

.sp-server-name a:hover{
  color: #ec6714;
}

.l2sa-card .sp-server-chronicle{
  text-align: right;
  font-size: 11.5px;
  color: #ffffff;
}

.l2sa-card .sp-server-rate{
  text-align: right;
  font-size: 11.5px;
  color: #ffffff;
}

.l2sa-card .sp-server-date{
  text-align: right;
  font-size: 11.5px;
  color: #ffffff;
  padding-right: 10px;
}

.l2sa-card-vip {
  border: linear-gradient(-45deg,#3e1138,#d45312,#651d5b);
  background: linear-gradient(-45deg,#3e1138,#d45312,#651d5b);
  background-size: 400% 400%;
  animation: gradient 4s ease infinite;
}

.l2sa-card-vip .sp-server-status i{
  color: #fff;
}

/* ========= */


/* .l2sa-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transform: translateY(-3px);
} */

/* .l2sa-card img {
  max-width: 100%;
  border-radius: 8px;
} */

/*  */


/* Add server form */

.l2sa-form {

  background: #302d3b;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  
}

.l2sa-form h3 {
  font-size: 18px;
  color: #fff;
}

.l2sa-form label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #fff;
}

.l2sa-form .l2sa-form-input {
  width: 100%;
  height: auto;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 15px;
}

.l2sa-form .l2sa-form-input-date {
    padding: 2px 15px;
    border-radius: 5px;
    height: auto;
    max-height: 10px;
}

/*  */

.l2sa-form-rules {
  background: #302d3b;
  border-radius: 10px;
  padding: 20px;
  margin: 5px 0;
  color: #fff;
  font-size: 14px;
  max-width: 100%;
}

.l2sa-form-rules-img {
  text-align: center;
  max-width: 100px;
}

.l2sa-form-rules img {
  width: 100%;
  max-width: 150px;
}

.l2sa-form-rules h3 {
  margin: 0 auto;
  padding: 0;
  font-size: 18px;
  color: #fff;
}

.l2sa-form-rules ul {
  margin: 0 auto;
  padding: inherit;
}

.l2sa-form-rules .l2sa-form-rules-war {
  color: #ee773c;
}

.l2sa-form-rules .l2sa-form-input-code {
  font-size: 13px;
  padding: 5px;
  height: max-content;
  resize: none;
  color: #000000;
}

body .l2sa-btn {
  width: 100%;
  background: #ee773c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 20px;
  margin-top: 30px;
  cursor: pointer;
  height: auto;
}

.l2sa-form .l2sa-btn {
  width: 100%;
  background: #ee773c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 20px;
  margin-top: 30px;
  cursor: pointer;
  height: auto;
}

.l2sa-btn:hover {
  background: #005f8d;
}

.l2sa-success {
  background: #e0ffe0;
  border: 1px solid #6c6;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.l2sa-error {
  background: #ffe0e0;
  border: 1px solid #c66;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}


/* Ads page blocks */

.l2sa-form-rules-ads {
  border-radius: 10px;
  padding: 0 20px;
  margin: 0 5px;
  color: #fff;
  font-size: 14px;
  max-width: 100%;
}

.l2sa-card-ads {
  border-radius: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  display: grid;
  grid-template-columns: 100%;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid #302d3b;
  text-align: left;
}

.l2sa-card-ads-banners {
  border: 1px solid #ee773c;
}

.l2sa-form-rules-ads h3 {
  margin: 0 auto;
  padding: 0;
  padding-bottom: 5px;
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
  border-bottom: 1px solid #fff;
}

.l2sa-form-rules-ads .l2sa-form-rules-ads-span {
  margin: 0 auto;
  padding: 0;
  font-size: 16px;
  color: #fff;
  text-align: left;
}

.l2sa-form-rules-ads-span-info {
  margin: 0 auto;
  padding: 0;
  font-size: 14px;
  color: #fff;
  text-align: center;
}

.l2sa-form-rules-ads-span-dec {
  color: #ee773c;
}

.l2sa-contacts-list{
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.l2sa-contacts-list .l2sa-card-ads {
  padding: 30px 10px;
}

.l2sa-contacts-list li {
  margin-bottom: 10px;
  width: 33%;  
}

.l2sa-contacts-list i {
  font-size: 40px;
}

/* Tabs */

.tabs {
  margin: 20px auto;
  font-family: Arial, sans-serif;
  width: 100%;
}

/* скрываем radio */
.tabs input {
  display: none;
}

/* кнопки */
.tab-buttons {
  margin-bottom: 10px;
  text-align: center;
}

/* .tab-buttons label {

} */

/* активная вкладка */
#tab1:checked ~ .tab-buttons label[for="tab1"],
#tab2:checked ~ .tab-buttons label[for="tab2"],
#tab3:checked ~ .tab-buttons label[for="tab3"] {
  /* font-weight: bold; */
  color: black;
}

/* контент */
.tab-content .content {
  display: none;
}

/* показываем активный */
#tab1:checked ~ .tab-content .content1 {
  display: block;
}

#tab2:checked ~ .tab-content .content2 {
  display: block;
}

#tab3:checked ~ .tab-content .content3 {
  display: block;
}

body .l2sa-btn-sort {
  background: #ee773c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 2px 7px;
  cursor: pointer;
  height: auto;
  font-size: 13px;
}

body .l2sa-btn-sort:hover {
  padding: 0 20px;
  background: #cc5a20;
  color: black;
}

body .l2sa-form-rules-ads-separator {
  width: 100%;
  border: 1px solid #5c5964;
  margin-top: 15px;
}

/* pass check modal */

.l2sa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99999;
}

.l2sa-modal-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 20px;
  width: 500px;
  border-radius: 6px;
  z-index: 99999;
}

.l2sa-modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

body .l2sa-modal-success-input {
  width: 100%;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 7px 20px;
  margin-top: 10px;
  height: auto;
}


/* ------ END MAIN CONTENT ------ */

/* ------ Animations ------ */

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}



/* ------ Media queries start ------ */

@media screen and (min-width: 360px) {

  body {
    padding: 0;
  }

  .l2sa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    width: 100%;
  }

  .l2sa-block {
    padding: 0 20px;
  }

  .l2sa-block h4 {
    text-align: center;
  }

  .l2sa-card {
    border-radius: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    /* border-bottom: 1px solid #f1f0f5; */
    background-color: rgb(48 45 59 / var(--tw-bg-opacity, 1));
    grid-template-columns: 5% 37% 18% 20% 20%;
    align-items: center;
    margin-bottom: 10px;
  }

  .l2sa-card span {
    flex:inherit; /* Все занимают равную ширину */
    text-align: center; /* Центрируем текст */
    font-size: 13px;
  }

  .wp-block-stackable-columns.alignfull>.stk-row:not(.alignfull) {
    width: 100% !important;
  }

  .l2sa-form-rules {
    margin: 20px 15px;
  }

  form .l2sa-form {
    margin: 20px 15px;
  }

}

@media screen and (min-width: 554px) {

  .entry-content .l2sa-servers-block {
    padding: 0;
  }

  .wp-block-stackable-columns {
    padding: 0;
  }

  .l2sa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }

  .l2sa-block {
    padding: 0 10px;
  }

  .l2sa-card {
    border-radius: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    /* border-bottom: 1px solid #f1f0f5; */
    background-color: rgb(48 45 59 / var(--tw-bg-opacity, 1));
    grid-template-columns: 5% 37% 18% 20% 20%;
    align-items: center;
    margin-bottom: 10px;
  }

  .wp-block-stackable-columns.alignfull>.stk-row:not(.alignfull) {
    width: 100% !important;
  }

}

@media screen and (min-width: 781px) {  

  .l2sa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }

  .l2sa-block {
    padding: 0;
  }

  .l2sa-card {
    border-radius: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    /* border-bottom: 1px solid #f1f0f5; */
    background-color: rgb(48 45 59 / var(--tw-bg-opacity, 1));
    grid-template-columns: 5% 37% 18% 20% 20%;
    align-items: center;
    margin-bottom: 10px;
  }

  .wp-block-stackable-columns.alignfull>.stk-row:not(.alignfull) {
    width: 100% !important;
  }

  .l2-sa-ads-sidebar:not(.is-not-stacked-on-mobile)>.wp-block-column {
    flex-basis:100%!important
  }



}

@media screen and (min-width: 900px) {

  .l2sa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }

  .l2sa-block {
    padding: 0;
  }

  .l2sa-block h4 {
    text-align: left;
  }

}


