// =========================================================
// * Matcha Time Range Styles
// =========================================================
@mixin matcha-time-range-theme($theme) {
  .matcha-time-range-container {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: flex-start;

    // Responsividade
    @media (max-width: 768px) {
      flex-direction: column;
      gap: 12px;
    }

    // Os campos de hora dentro do range
    matcha-form-field {
      flex: 1;
      min-width: 0;

      &:first-child {
        flex-shrink: 0;
      }

      &:last-child {
        flex-shrink: 0;
      }
    }

    // Quando há erro de validação no range
    matcha-form-field.ng-invalid.ng-touched {
      matcha-time {
        .matcha-time-input {
          border-color: getRed($theme);
        }
      }
    }
  }
}