/* Enhanced Adspace Size Selection Buttons */
/* From Uiverse.io by WhiteNervosa */

.size-btn {
  font-size: 18px;
  color: #e1e1e1;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  text-transform: uppercase;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
  margin: 0 1rem;
  padding: 1rem 1.5rem;
}

.size-btn:focus,
.size-btn:hover {
  color: #fff;
  outline: none;
}

.size-btn:focus:after,
.size-btn:hover:after,
.size-btn.active:after {
  width: 100%;
  left: 0%;
}

.size-btn:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}

.size-btn.active {
  color: #fff;
}

.size-btn.active:after {
  width: 100%;
  left: 0%;
  background-color: #4f9bff;
}

/* Container styling */
.size-controls {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.size-controls h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.size-controls .button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .size-btn {
    font-size: 16px;
    margin: 0 0.5rem;
    padding: 0.8rem 1rem;
  }
  
  .size-controls .button-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .size-btn {
    margin: 0;
    width: 200px;
  }
}

@media (max-width: 480px) {
  .size-btn {
    font-size: 14px;
    padding: 0.6rem 0.8rem;
    width: 180px;
  }
}