/* Custom CSS for Pace Certo */

/* Cookie Consent Banner */
#cookie-consent-banner {
  transition: transform 0.3s ease-in-out;
}

#cookie-consent-banner.hidden {
  transform: translateY(100%);
}

/* Ad Container */
.ad-container {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Material Icons adjustments */
.material-symbols-outlined {
  font-variation-settings: "FILL"0, "wght"400, "GRAD"0, "opsz"24;
}

/* Custom Number Input Spinners */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Custom Number Input Container with Buttons */
.number-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.number-input-wrapper input[type="number"] {
  padding-right: 3rem !important;
}

.number-input-controls {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  z-index: 10;
  pointer-events: none;
}

.number-input-btn {
  pointer-events: auto;
}

.number-input-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.5rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  outline: none;
  backdrop-filter: blur(4px);
}

.dark .number-input-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.number-input-btn:hover {
  background: rgba(242, 70, 13, 0.12);
  border-color: rgba(242, 70, 13, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(242, 70, 13, 0.15);
}

.number-input-btn:active {
  background: rgba(242, 70, 13, 0.2);
  transform: translateY(0) scale(0.96);
  box-shadow: 0 1px 2px rgba(242, 70, 13, 0.2);
}

.number-input-btn .material-symbols-outlined {
  font-size: 1rem;
  color: #5a5a5a;
  transition: color 0.2s ease;
}

.dark .number-input-btn .material-symbols-outlined {
  color: #baa39c;
}

.number-input-btn:hover .material-symbols-outlined {
  color: #f2460d;
}

.number-input-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.number-input-btn:disabled:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.dark .number-input-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.number-input-btn:focus-visible {
  outline: 2px solid #f2460d;
  outline-offset: 2px;
}

/* Esconder controles de número no mobile */
@media (max-width: 767px) {
  .number-input-controls {
    display: none;
  }

  .number-input-wrapper input[type="number"] {
    padding-right: 1rem !important;
  }
}